mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-10 07:55:35 +00: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);
|
||||
MultiGridParams(){};
|
||||
};
|
||||
MultiGridParams mgParams;
|
||||
// clang-format on
|
||||
|
||||
void checkParameterValidity(MultiGridParams const ¶ms) {
|
||||
|
||||
auto correctSize = mgParams.nLevels - 1;
|
||||
auto correctSize = params.nLevels - 1;
|
||||
|
||||
assert(correctSize == params.blockSizes.size());
|
||||
assert(correctSize == params.smootherTol.size());
|
||||
@ -533,6 +532,8 @@ int main(int argc, char **argv) {
|
||||
|
||||
Grid_init(&argc, &argv);
|
||||
|
||||
MultiGridParams mgParams;
|
||||
|
||||
typename WilsonCloverFermionR::ImplParams wcImplparams;
|
||||
WilsonAnisotropyCoefficients wilsonAnisCoeff;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user