1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-08-23 22:47:10 +01:00

Assertion updates to macros (mostly) with backtrace.

WIlson flow to include options for DBW2, Iwasaki, Symanzik.
View logging for data assurance
This commit is contained in:
2025-08-07 15:48:38 +00:00
parent 41f344bbd3
commit 9e6a4a4737
306 changed files with 2013 additions and 1928 deletions

View File

@@ -312,7 +312,7 @@ void Benchmark(int Ls, Coordinate Dirichlet,bool sloppy)
FGrid->Barrier();
exit(-1);
}
assert (n2e< 1.0e-4 );
GRID_ASSERT (n2e< 1.0e-4 );
}
if (1)
@@ -370,7 +370,7 @@ void Benchmark(int Ls, Coordinate Dirichlet,bool sloppy)
n2e= norm2(err);
std::cout<<GridLogMessage << "norm dag diff "<< n2e<< " Line "<<__LINE__ <<std::endl;
assert((n2e)<1.0e-4);
GRID_ASSERT((n2e)<1.0e-4);
FermionField src_e (FrbGrid);
FermionField src_o (FrbGrid);
@@ -429,13 +429,13 @@ void Benchmark(int Ls, Coordinate Dirichlet,bool sloppy)
err = r_eo-result;
n2e= norm2(err);
std::cout<<GridLogMessage << "norm diff "<< n2e<<std::endl;
assert(n2e<1.0e-4);
GRID_ASSERT(n2e<1.0e-4);
pickCheckerboard(Even,src_e,err);
pickCheckerboard(Odd,src_o,err);
std::cout<<GridLogMessage << "norm diff even "<< norm2(src_e)<<std::endl;
std::cout<<GridLogMessage << "norm diff odd "<< norm2(src_o)<<std::endl;
assert(norm2(src_e)<1.0e-4);
assert(norm2(src_o)<1.0e-4);
GRID_ASSERT(norm2(src_e)<1.0e-4);
GRID_ASSERT(norm2(src_o)<1.0e-4);
}