Skip to content

Commit a451b4d

Browse files
committed
CI: Add BTD Tests
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
1 parent 5208f4e commit a451b4d

File tree

3 files changed

+36
-4
lines changed

3 files changed

+36
-4
lines changed

Examples/Modules/RigidInjection/inputs_2d_BoostedFrame

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,22 @@ beam.projected = true
5151
beam.focused = false
5252

5353
# Diagnostics
54-
diagnostics.diags_names = diag1
54+
diagnostics.diags_names = diag1 btd_openpmd btd_pltfile
5555
diag1.intervals = 10000
5656
diag1.diag_type = Full
57+
58+
btd_openpmd.diag_type = BackTransformed
59+
btd_openpmd.do_back_transformed_fields = 1
60+
btd_openpmd.num_snapshots_lab = 2
61+
btd_openpmd.dt_snapshots_lab = 1.8679589331096515e-13
62+
btd_openpmd.fields_to_plot = Ex Ey Ez Bx By Bz jx jy jz rho
63+
btd_openpmd.format = openpmd
64+
btd_openpmd.buffer_size = 32
65+
66+
btd_pltfile.diag_type = BackTransformed
67+
btd_pltfile.do_back_transformed_fields = 1
68+
btd_pltfile.num_snapshots_lab = 2
69+
btd_pltfile.dt_snapshots_lab = 1.8679589331096515e-13
70+
btd_pltfile.fields_to_plot = Ex Ey Ez Bx By Bz jx jy jz rho
71+
btd_pltfile.format = openpmd
72+
btd_pltfile.buffer_size = 32

Examples/Modules/boosted_diags/inputs_3d_slice

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,22 @@ slice.dt_slice_snapshots_lab = 3.3356409519815207e-12
116116
slice.particle_slice_width_lab = 2.e-6
117117

118118
# Diagnostics
119-
diagnostics.diags_names = diag1
119+
diagnostics.diags_names = diag1 btd_openpmd btd_pltfile
120120
diag1.intervals = 10000
121121
diag1.diag_type = Full
122+
123+
btd_openpmd.diag_type = BackTransformed
124+
btd_openpmd.do_back_transformed_fields = 1
125+
btd_openpmd.num_snapshots_lab = 4
126+
btd_openpmd.dz_snapshots_lab = 0.001
127+
btd_openpmd.fields_to_plot = Ex Ey Ez Bx By Bz jx jy jz rho
128+
btd_openpmd.format = openpmd
129+
btd_openpmd.buffer_size = 32
130+
131+
btd_pltfile.diag_type = BackTransformed
132+
btd_pltfile.do_back_transformed_fields = 1
133+
btd_pltfile.num_snapshots_lab = 4
134+
btd_pltfile.dz_snapshots_lab = 0.001
135+
btd_pltfile.fields_to_plot = Ex Ey Ez Bx By Bz jx jy jz rho
136+
btd_pltfile.format = openpmd
137+
btd_pltfile.buffer_size = 32

Regression/WarpX-tests.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ buildDir = .
194194
inputFile = Examples/Modules/RigidInjection/inputs_2d_BoostedFrame
195195
runtime_params =
196196
dim = 2
197-
addToCompileString =
197+
addToCompileString = USE_OPENPMD=TRUE
198198
restartTest = 0
199199
useMPI = 1
200200
numprocs = 2
@@ -213,7 +213,7 @@ buildDir = .
213213
inputFile = Examples/Modules/boosted_diags/inputs_3d_slice
214214
runtime_params =
215215
dim = 3
216-
addToCompileString =
216+
addToCompileString = USE_OPENPMD=TRUE
217217
restartTest = 0
218218
useMPI = 1
219219
numprocs = 2

0 commit comments

Comments
 (0)