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:
parent
b540dc1cee
commit
5bc0857412
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user