aboutsummaryrefslogtreecommitdiff
path: root/Examples/Modules
diff options
context:
space:
mode:
authorGravatar Edoardo Zoni <59625522+EZoni@users.noreply.github.com> 2022-07-22 14:45:14 -0700
committerGravatar GitHub <noreply@github.com> 2022-07-22 14:45:14 -0700
commita4be76993e18c1f5adc5c25fcdf0602838a54ff2 (patch)
tree36001e14bceeaf985b5302aebead4cf26e0c1045 /Examples/Modules
parent812456172e3223687e986ed27a95c6d402723120 (diff)
downloadWarpX-a4be76993e18c1f5adc5c25fcdf0602838a54ff2.tar.gz
WarpX-a4be76993e18c1f5adc5c25fcdf0602838a54ff2.tar.zst
WarpX-a4be76993e18c1f5adc5c25fcdf0602838a54ff2.zip
CI: Add Missing Regression Analysis (NCI corrector) (#3252)
Diffstat (limited to 'Examples/Modules')
-rwxr-xr-xExamples/Modules/nci_corrector/analysis_ncicorr.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Examples/Modules/nci_corrector/analysis_ncicorr.py b/Examples/Modules/nci_corrector/analysis_ncicorr.py
index d3849e707..118b03fed 100755
--- a/Examples/Modules/nci_corrector/analysis_ncicorr.py
+++ b/Examples/Modules/nci_corrector/analysis_ncicorr.py
@@ -8,6 +8,7 @@
# License: BSD-3-Clause-LBNL
+import os
import re
import sys
@@ -17,6 +18,9 @@ import yt
yt.funcs.mylog.setLevel(0)
+sys.path.insert(1, '../../../../warpx/Regression/Checksum/')
+import checksumAPI
+
fn = sys.argv[1]
use_MR = re.search( 'nci_correctorMR', fn ) != None
@@ -43,3 +47,6 @@ print("energy threshold (from benchmark): %s" %energy_threshold)
print("energy from this run: %s" %energy)
assert( energy < energy_threshold )
+
+test_name = os.path.split(os.getcwd())[1]
+checksumAPI.evaluate_checksum(test_name, filename)