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

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

import os
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 = os.path.split(os.getcwd())[1]

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