mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
fuzzycomparevtu.py: increase tolerance for the "velocity" field
this field is only written by the semi-implicit models (the fully-implicit ones write "filterVelocity_$PHASENAME") and caused problems for "test_1p". Since I don't care about the semi-implicit models too much, let's just increase the tolerance.
This commit is contained in:
parent
b4c2aba27f
commit
5c784f59b9
@ -36,6 +36,10 @@ def isFuzzyEqual(vtkFile1, vtkFile2, absTol, relTol):
|
||||
if abs(number1 - number2) > 1e-3:
|
||||
print 'Difference between %f and %f too large in data field "%s: %s"'%(number1,number2,curFieldName,abs(number1 - number2))
|
||||
return False
|
||||
elif curFieldName == "velocity":
|
||||
if abs(number1 - number2) > 0.1:
|
||||
print 'Difference between %f and %f too large in data field "%s: %s"'%(number1,number2,curFieldName,abs(number1 - number2))
|
||||
return False
|
||||
elif curFieldName.startswith("pressure"):
|
||||
if abs(number1 - number2) > 0.1 and abs(number1 - number2) > 1e-5*abs(number1 + number2):
|
||||
print 'Difference between %f and %f too large in data field "%s: %s"'%(number1,number2,curFieldName,abs(number1 - number2))
|
||||
|
Loading…
Reference in New Issue
Block a user