mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 21:50:45 +01:00
WilsonMG: Move params instance from global scope to test main function
This commit is contained in:
parent
74f79c5ac7
commit
2530bfed01
@ -90,12 +90,11 @@ public:
|
|||||||
int, coarseSolverMaxInnerIter);
|
int, coarseSolverMaxInnerIter);
|
||||||
MultiGridParams(){};
|
MultiGridParams(){};
|
||||||
};
|
};
|
||||||
MultiGridParams mgParams;
|
|
||||||
// clang-format on
|
// clang-format on
|
||||||
|
|
||||||
void checkParameterValidity(MultiGridParams const ¶ms) {
|
void checkParameterValidity(MultiGridParams const ¶ms) {
|
||||||
|
|
||||||
auto correctSize = mgParams.nLevels - 1;
|
auto correctSize = params.nLevels - 1;
|
||||||
|
|
||||||
assert(correctSize == params.blockSizes.size());
|
assert(correctSize == params.blockSizes.size());
|
||||||
assert(correctSize == params.smootherTol.size());
|
assert(correctSize == params.smootherTol.size());
|
||||||
@ -533,6 +532,8 @@ int main(int argc, char **argv) {
|
|||||||
|
|
||||||
Grid_init(&argc, &argv);
|
Grid_init(&argc, &argv);
|
||||||
|
|
||||||
|
MultiGridParams mgParams;
|
||||||
|
|
||||||
typename WilsonCloverFermionR::ImplParams wcImplparams;
|
typename WilsonCloverFermionR::ImplParams wcImplparams;
|
||||||
WilsonAnisotropyCoefficients wilsonAnisCoeff;
|
WilsonAnisotropyCoefficients wilsonAnisCoeff;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user