1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-09 23:45:36 +00:00

IO norm check on relative norm

This commit is contained in:
Antonin Portelli 2019-02-10 22:12:47 +00:00
parent b540dc1cee
commit 5bc0857412

View File

@ -47,7 +47,8 @@ namespace Grid {
namespace QCD {
#define GRID_FIELD_NORM "FieldNormMetaData"
#define GRID_FIELD_NORM_CHECK(FieldNormMetaData_,n2ck) assert(fabs(FieldNormMetaData_.norm2 - n2ck < 1.0e-5 ));
#define GRID_FIELD_NORM_CHECK(FieldNormMetaData_,n2ck) \
assert(0.5*fabs(FieldNormMetaData_.norm2 - n2ck)/(FieldNormMetaData_.norm2 + n2ck) < 1.0e-5 );
/////////////////////////////////
// Encode word types as strings