mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 21:50:45 +01:00
IO norm check on relative norm
This commit is contained in:
parent
b540dc1cee
commit
5bc0857412
@ -47,7 +47,8 @@ namespace Grid {
|
|||||||
namespace QCD {
|
namespace QCD {
|
||||||
|
|
||||||
#define GRID_FIELD_NORM "FieldNormMetaData"
|
#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
|
// Encode word types as strings
|
||||||
|
Loading…
x
Reference in New Issue
Block a user