aboutsummaryrefslogtreecommitdiff
path: root/Examples/Tests/magnetostatic_eb/analysis_rz.py
blob: 00c270e597cc342542a390afbe80f4f2289b82d8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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, rtol=2.e-6, do_particles=False)
else:
    checksumAPI.evaluate_checksum(test_name, fn, do_particles=False)