WarpX 22.04+: Fix RZ Test (#30185)

In WarpX 22.04, we introduced the openPMD `thetaMode` for fields in
RZ geometry. That means we need to name the fields differently than
the reconstructured Cartesian slice that we default to in plotfiles.
This commit is contained in:
Axel Huebl 2022-04-20 01:18:46 -07:00 committed by GitHub
parent a43a633b2a
commit 778eee1579
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -192,6 +192,9 @@ def _get_input_options(self, post_install):
# test openPMD output if compiled in
if '+openpmd' in spec:
cli_args.append('diag1.format=openpmd')
# RZ: New openPMD thetaMode output
if dims == 'rz' and spec.satisfies('@22.04:'):
cli_args.append('diag1.fields_to_plot=Er Et Ez Br Bt Bz jr jt jz rho')
return cli_args
def check(self):