aboutsummaryrefslogtreecommitdiff
path: root/Examples/Tests/initial_plasma_profile/analysis.py
blob: 3ba67f9f5af54686203771985b8d0680ea04a6d3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#! /usr/bin/env python

# Copyright 2020 Michael Rowan
#
# This file is part of WarpX.
#
# License: BSD-3-Clause-LBNL


import sys
import yt
yt.funcs.mylog.setLevel(50)

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

# Name of the plotfile
fn = sys.argv[1]

test_name = fn[:-9] # Could also be os.path.split(os.getcwd())[1]

checksumAPI.evaluate_checksum(test_name, fn, rtol=1e-4, do_particles=False)