Skip to content

Commit

Permalink
CTest follow-up: add missing checksum files
Browse files Browse the repository at this point in the history
  • Loading branch information
EZoni committed Sep 9, 2024
1 parent e2bb0de commit e762369
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Examples/Tests/electrostatic_dirichlet_bc/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,15 @@
# Possible running time: ~ 19 s

import glob
import os
import sys

import numpy as np
import yt

sys.path.insert(1, "../../../../warpx/Regression/Checksum/")
import checksumAPI

files = sorted(glob.glob("diags/diag1*"))[1:]
assert len(files) > 0

Expand All @@ -39,3 +44,8 @@

assert np.allclose(potentials_lo, expected_potentials_lo, rtol=0.1)
assert np.allclose(potentials_hi, expected_potentials_hi, rtol=0.1)

# compare checksums
testname = os.path.split(os.getcwd())[1]
filename = sys.argv[1]
checksumAPI.evaluate_checksum(testname, filename)
5 changes: 5 additions & 0 deletions Regression/Checksum/benchmarks_json/test_2d_dirichlet_bc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"lev=0": {
"phi": 10817.97280547637
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"lev=0": {
"phi": 10817.97280547637
}
}

0 comments on commit e762369

Please sign in to comment.