aboutsummaryrefslogtreecommitdiff
path: root/Examples/Physics_applications/laser_acceleration/PICMI_inputs_laser_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/laser_acceleration/PICMI_inputs_laser_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/laser_acceleration/PICMI_inputs_laser_acceleration.py')
-rw-r--r--Examples/Physics_applications/laser_acceleration/PICMI_inputs_laser_acceleration.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Examples/Physics_applications/laser_acceleration/PICMI_inputs_laser_acceleration.py b/Examples/Physics_applications/laser_acceleration/PICMI_inputs_laser_acceleration.py
index 3adecf330..06b3426f3 100644
--- a/Examples/Physics_applications/laser_acceleration/PICMI_inputs_laser_acceleration.py
+++ b/Examples/Physics_applications/laser_acceleration/PICMI_inputs_laser_acceleration.py
@@ -102,7 +102,9 @@ solver = picmi.ElectromagneticSolver(grid=grid, method='CKC', cfl=1.)
field_diag1 = picmi.FieldDiagnostic(name = 'diag1',
grid = grid,
- period = 10)
+ period = 10,
+ write_dir = '.',
+ warpx_file_prefix = 'Python_LaserAccelerationMR_plt')
part_diag1 = picmi.ParticleDiagnostic(name = 'diag1',
period = 10,