Skip to content

Commit

Permalink
add analysis default
Browse files Browse the repository at this point in the history
  • Loading branch information
aeriforme committed Sep 17, 2024
1 parent 296f9df commit 8cfb3e3
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env python3

import os
import re
import sys

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

# this will be the name of the plot file
fn = sys.argv[1]

# Get name of the test
test_name = os.path.split(os.getcwd())[1]

# Run checksum regression test
if re.search("single_precision", fn):
checksumAPI.evaluate_checksum(test_name, fn, output_format="openpmd", rtol=2.0e-6)
else:
checksumAPI.evaluate_checksum(test_name, fn, output_format="openpmd")

0 comments on commit 8cfb3e3

Please sign in to comment.