aboutsummaryrefslogtreecommitdiff
path: root/Examples/Physics_applications/plasma_acceleration/PICMI_inputs_plasma_acceleration.py
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2020-06-03 14:40:32 -0700
committerGravatar GitHub <noreply@github.com> 2020-06-03 14:40:32 -0700
commit22c5f32eb1ec0f61e3a17cb2e2b2dcb0d411eacd (patch)
tree15236b2b4535ed840a02b7f2ba0a92d248897118 /Examples/Physics_applications/plasma_acceleration/PICMI_inputs_plasma_acceleration.py
parent36b4ef471cbc72b739cee2027f4dc420e1d20608 (diff)
downloadWarpX-22c5f32eb1ec0f61e3a17cb2e2b2dcb0d411eacd.tar.gz
WarpX-22c5f32eb1ec0f61e3a17cb2e2b2dcb0d411eacd.tar.zst
WarpX-22c5f32eb1ec0f61e3a17cb2e2b2dcb0d411eacd.zip
Add checksum regression tests (#1065)
* add a checksum module for regtests * All capabilities to checksum tests * update tests to generate a clean benchmark * call checksum tests from analysis scripts * Add checksum json benchmarks * add missing script, better printing and increase tol * eol * fix permission, and bump tolerance * chmod +x checksumAPI.py * update benchmarks, probably old ones were wrong due to parallelization * remove unused variable, thanks lgtm * special handling when the benchmark is 0 * non-zero but very small CFL for 1 step for init tests * reset erroneous Python benchmarks * slightly bump tolerance for initial distribution test * too small dr results in nans * improve prints, tolerance handling, and fix tests * typo * enable tolerance and fields/particles optional comparison to fix tests * more minor cleaning in space charge initialization tests * update Python benchmarks for serial runs * Run Python tests with 1 rank instead of 2 * fields that are zero should not be in reg tests * Add developer documentation on checksum regression tests Co-authored-by: Tools <warpx@lbl.gov>
Diffstat (limited to 'Examples/Physics_applications/plasma_acceleration/PICMI_inputs_plasma_acceleration.py')
-rw-r--r--Examples/Physics_applications/plasma_acceleration/PICMI_inputs_plasma_acceleration.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/Examples/Physics_applications/plasma_acceleration/PICMI_inputs_plasma_acceleration.py b/Examples/Physics_applications/plasma_acceleration/PICMI_inputs_plasma_acceleration.py
index 01c322508..7fad60f19 100644
--- a/Examples/Physics_applications/plasma_acceleration/PICMI_inputs_plasma_acceleration.py
+++ b/Examples/Physics_applications/plasma_acceleration/PICMI_inputs_plasma_acceleration.py
@@ -55,14 +55,13 @@ field_diag = picmi.FieldDiagnostic(name = 'diag1',
grid = grid,
period = max_steps,
data_list = ['Ex', 'Ey', 'Ez', 'Jx', 'Jy', 'Jz', 'part_per_cell'],
- write_dir = 'diags',
- warpx_file_prefix = 'plotfiles/plt')
+ write_dir = '.',
+ warpx_file_prefix = 'Python_PlasmaAcceleration_plt')
part_diag = picmi.ParticleDiagnostic(name = 'diag1',
period = max_steps,
species = [beam, plasma],
- data_list = ['ux', 'uy', 'uz', 'weighting', 'Ex', 'Ey', 'Ez'],
- write_dir = 'diags')
+ data_list = ['ux', 'uy', 'uz', 'weighting', 'Ex', 'Ey', 'Ez'])
sim.add_diagnostic(field_diag)
sim.add_diagnostic(part_diag)