diff --git a/Grid/parallelIO/IldgIO.h b/Grid/parallelIO/IldgIO.h index 15017be3..db07cac0 100644 --- a/Grid/parallelIO/IldgIO.h +++ b/Grid/parallelIO/IldgIO.h @@ -47,8 +47,10 @@ namespace Grid { namespace QCD { #define GRID_FIELD_NORM "FieldNormMetaData" -#define GRID_FIELD_NORM_CHECK(FieldNormMetaData_,n2ck) \ -assert(0.5*fabs(FieldNormMetaData_.norm2 - n2ck)/(FieldNormMetaData_.norm2 + n2ck) < 1.0e-5 ); +#define GRID_FIELD_NORM_CALC(FieldNormMetaData_, n2ck) \ +0.5*fabs(FieldNormMetaData_.norm2 - n2ck)/(FieldNormMetaData_.norm2 + n2ck) +#define GRID_FIELD_NORM_CHECK(FieldNormMetaData_, n2ck) \ +assert(GRID_FIELD_NORM_CALC(FieldNormMetaData_, n2ck) < 1.0e-5); ///////////////////////////////// // Encode word types as strings @@ -249,9 +251,9 @@ class GridLimeReader : public BinaryIO { ///////////////////////////////////////////// if(FieldNormMetaData_.norm2 != 0.0){ RealD n2ck = norm2(field); - std::cout << GridLogMessage << "Field norm: metadata= "<