Skip to content

Commit

Permalink
CI: Add BTD Tests
Browse files Browse the repository at this point in the history
Add tests for the new BTD diagnostics, so that parallely working
developers can easier test this.

Currently covered features:
- field BTD (particles are still WIP)
- openPMD & plotfiles
  • Loading branch information
ax3l committed May 20, 2021
1 parent 5208f4e commit a451b4d
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 4 deletions.
18 changes: 17 additions & 1 deletion Examples/Modules/RigidInjection/inputs_2d_BoostedFrame
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,22 @@ beam.projected = true
beam.focused = false

# Diagnostics
diagnostics.diags_names = diag1
diagnostics.diags_names = diag1 btd_openpmd btd_pltfile
diag1.intervals = 10000
diag1.diag_type = Full

btd_openpmd.diag_type = BackTransformed
btd_openpmd.do_back_transformed_fields = 1
btd_openpmd.num_snapshots_lab = 2
btd_openpmd.dt_snapshots_lab = 1.8679589331096515e-13
btd_openpmd.fields_to_plot = Ex Ey Ez Bx By Bz jx jy jz rho
btd_openpmd.format = openpmd
btd_openpmd.buffer_size = 32

btd_pltfile.diag_type = BackTransformed
btd_pltfile.do_back_transformed_fields = 1
btd_pltfile.num_snapshots_lab = 2
btd_pltfile.dt_snapshots_lab = 1.8679589331096515e-13
btd_pltfile.fields_to_plot = Ex Ey Ez Bx By Bz jx jy jz rho
btd_pltfile.format = openpmd
btd_pltfile.buffer_size = 32
18 changes: 17 additions & 1 deletion Examples/Modules/boosted_diags/inputs_3d_slice
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,22 @@ slice.dt_slice_snapshots_lab = 3.3356409519815207e-12
slice.particle_slice_width_lab = 2.e-6

# Diagnostics
diagnostics.diags_names = diag1
diagnostics.diags_names = diag1 btd_openpmd btd_pltfile
diag1.intervals = 10000
diag1.diag_type = Full

btd_openpmd.diag_type = BackTransformed
btd_openpmd.do_back_transformed_fields = 1
btd_openpmd.num_snapshots_lab = 4
btd_openpmd.dz_snapshots_lab = 0.001
btd_openpmd.fields_to_plot = Ex Ey Ez Bx By Bz jx jy jz rho
btd_openpmd.format = openpmd
btd_openpmd.buffer_size = 32

btd_pltfile.diag_type = BackTransformed
btd_pltfile.do_back_transformed_fields = 1
btd_pltfile.num_snapshots_lab = 4
btd_pltfile.dz_snapshots_lab = 0.001
btd_pltfile.fields_to_plot = Ex Ey Ez Bx By Bz jx jy jz rho
btd_pltfile.format = openpmd
btd_pltfile.buffer_size = 32
4 changes: 2 additions & 2 deletions Regression/WarpX-tests.ini
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ buildDir = .
inputFile = Examples/Modules/RigidInjection/inputs_2d_BoostedFrame
runtime_params =
dim = 2
addToCompileString =
addToCompileString = USE_OPENPMD=TRUE
restartTest = 0
useMPI = 1
numprocs = 2
Expand All @@ -213,7 +213,7 @@ buildDir = .
inputFile = Examples/Modules/boosted_diags/inputs_3d_slice
runtime_params =
dim = 3
addToCompileString =
addToCompileString = USE_OPENPMD=TRUE
restartTest = 0
useMPI = 1
numprocs = 2
Expand Down

0 comments on commit a451b4d

Please sign in to comment.