1
0
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:
Daniel Richtmann 2018-04-03 14:50:48 +02:00
parent 74f79c5ac7
commit 2530bfed01
No known key found for this signature in database
GPG Key ID: B33C490AF0772057

View File

@ -90,12 +90,11 @@ public:
int, coarseSolverMaxInnerIter);
MultiGridParams(){};
};
MultiGridParams mgParams;
// clang-format on
void checkParameterValidity(MultiGridParams const &params) {
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;