1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-08-18 12:11:53 +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

@@ -54,7 +54,7 @@ void copy2fTo1fFermionField(FermionField1f &out, const FermionField2f &in, int g
std::cout << "dim_2f " << dim_2f << std::endl;
std::cout << "dim_1f " << dim_1f << std::endl;
assert(dim_1f[gpdir] == 2*dim_2f[gpdir]);
GRID_ASSERT(dim_1f[gpdir] == 2*dim_2f[gpdir]);
LatticeInteger xcoor_1f(out.Grid()); //5d lattice integer
LatticeCoordinate(xcoor_1f,gpdir);

View File

@@ -139,7 +139,7 @@ int main (int argc, char ** argv)
// for(int n=0;n<poles.size();n++){
// a = a + residues[n]/(x+poles[n]);
// }
assert(Sqrt.order==degree);
GRID_ASSERT(Sqrt.order==degree);
combined = Sqrt.norm*src;
for(int i=0;i<degree;i++){

View File

@@ -110,10 +110,10 @@ int main (int argc, char ** argv)
std::cout<<GridLogMessage << "x^(1/4) : "<<ssx<<" "<<assx<<std::endl;
std::cout<<GridLogMessage << "x^(-1/2): "<<isx<<" "<<aisx<<std::endl;
std::cout<<GridLogMessage << "x^(-1/4): "<<issx<<" "<<aissx<<std::endl;
assert(fabs(sx-asx)<1.0e-6);
assert(fabs(ssx-assx)<1.0e-6);
assert(fabs(isx-aisx)<1.0e-6);
assert(fabs(issx-aissx)<1.0e-6);
GRID_ASSERT(fabs(sx-asx)<1.0e-6);
GRID_ASSERT(fabs(ssx-assx)<1.0e-6);
GRID_ASSERT(fabs(isx-aisx)<1.0e-6);
GRID_ASSERT(fabs(issx-aissx)<1.0e-6);
Grid_finalize();
}