-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added documentation of GAUSS_SUBDIVIDED; added tag in quadAttribute; …
…added Defaults.h
- Loading branch information
Avirup Sircar
committed
Jan 26, 2024
1 parent
d82ad8d
commit 77de8fc
Showing
8 changed files
with
196 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/****************************************************************************** | ||
* Copyright (c) 2021. * | ||
* The Regents of the University of Michigan and DFT-EFE developers. * | ||
* * | ||
* This file is part of the DFT-EFE code. * | ||
* * | ||
* DFT-EFE is free software: you can redistribute it and/or modify * | ||
* it under the terms of the Lesser GNU General Public License as * | ||
* published by the Free Software Foundation, either version 3 of * | ||
* the License, or (at your option) any later version. * | ||
* * | ||
* DFT-EFE is distributed in the hope that it will be useful, but * | ||
* WITHOUT ANY WARRANTY; without even the implied warranty * | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * | ||
* See the Lesser GNU General Public License for more details. * | ||
* * | ||
* You should have received a copy of the GNU Lesser General Public * | ||
* License at the top level of DFT-EFE distribution. If not, see * | ||
* <https://www.gnu.org/licenses/>. * | ||
******************************************************************************/ | ||
|
||
/* | ||
* @author Avirup Sircar | ||
*/ | ||
#include <quadrature/Defaults.h> | ||
#include <limits.h> | ||
|
||
namespace dftefe | ||
{ | ||
namespace quadrature | ||
{ | ||
/** | ||
* @brief Setting all the QuadratureRuleAdaptiveDefaults | ||
*/ | ||
const double QuadratureRuleAdaptiveDefaults::SMALLEST_CELL_VOLUME = 1e-12; | ||
const unsigned int QuadratureRuleAdaptiveDefaults::MAX_RECURSION = 1000; | ||
/** | ||
* @brief Setting all the QuadratureRuleAttributesDefaults | ||
*/ | ||
const size_type QuadratureRuleAttributesDefaults::NUM_1D_POINTS = 0; | ||
const std::string QuadratureRuleAttributesDefaults::TAG = std::string(); | ||
|
||
/** | ||
* @brief Setting all the QuadratureRuleGaussSubdividedDefaults | ||
*/ | ||
const size_type | ||
QuadratureRuleGaussSubdividedDefaults::NUM_CELLS_FOR_ADAPTIVE_REFERENCE = | ||
5; | ||
|
||
} // end of namespace quadrature | ||
} // end of namespace dftefe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
/****************************************************************************** | ||
* Copyright (c) 2021. * | ||
* The Regents of the University of Michigan and DFT-EFE developers. * | ||
* * | ||
* This file is part of the DFT-EFE code. * | ||
* * | ||
* DFT-EFE is free software: you can redistribute it and/or modify * | ||
* it under the terms of the Lesser GNU General Public License as * | ||
* published by the Free Software Foundation, either version 3 of * | ||
* the License, or (at your option) any later version. * | ||
* * | ||
* DFT-EFE is distributed in the hope that it will be useful, but * | ||
* WITHOUT ANY WARRANTY; without even the implied warranty * | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * | ||
* See the Lesser GNU General Public License for more details. * | ||
* * | ||
* You should have received a copy of the GNU Lesser General Public * | ||
* License at the top level of DFT-EFE distribution. If not, see * | ||
* <https://www.gnu.org/licenses/>. * | ||
******************************************************************************/ | ||
|
||
/* | ||
* @author Avirup Sircar | ||
*/ | ||
|
||
#ifndef dftefeQuadratureDefaults_h | ||
#define dftefeQuadratureDefaults_h | ||
|
||
#include <utils/TypeConfig.h> | ||
#include <string> | ||
|
||
namespace dftefe | ||
{ | ||
namespace quadrature | ||
{ | ||
class QuadratureRuleAdaptiveDefaults | ||
{ | ||
public: | ||
// | ||
// smallest cell volume to recurse to | ||
// | ||
static const double SMALLEST_CELL_VOLUME; | ||
|
||
// | ||
// maximum recursion of divisions for adaptive quad | ||
// | ||
static const unsigned int MAX_RECURSION; | ||
|
||
}; // end of class QuadratureRuleAdaptiveDefaults | ||
|
||
class QuadratureRuleAttributesDefaults | ||
{ | ||
public: | ||
// | ||
// default 1d points for checking isCartesianTensorStructured | ||
// | ||
static const size_type NUM_1D_POINTS; | ||
|
||
// | ||
// default string tag | ||
// | ||
static const std::string TAG; | ||
|
||
}; // end of class QuadratureRuleAttributesDefaults | ||
|
||
class QuadratureRuleGaussSubdividedDefaults | ||
{ | ||
public: | ||
// | ||
// NUM_CELLS_FOR_ADAPTIVE_REFERENCE | ||
// | ||
static const size_type NUM_CELLS_FOR_ADAPTIVE_REFERENCE; | ||
|
||
}; // end of class QuadratureRuleGaussSubdividedDefaults | ||
|
||
|
||
} // end of namespace quadrature | ||
} // end of namespace dftefe | ||
#endif // dftefeQuadratureDefaults_h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters