summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAxel Huebl <axel.huebl@plasma.ninja>2022-04-20 01:18:46 -0700
committerGitHub <noreply@github.com>2022-04-20 02:18:46 -0600
commit778eee15797aaebc2018c3a6f1ef7a1ebc0c5817 (patch)
tree70524000a015831c5653e0e9a6766769ec0e8717 /var
parenta43a633b2ad3a8dd79c24ab059104020b840d41f (diff)
downloadspack-778eee15797aaebc2018c3a6f1ef7a1ebc0c5817.tar.gz
spack-778eee15797aaebc2018c3a6f1ef7a1ebc0c5817.tar.bz2
spack-778eee15797aaebc2018c3a6f1ef7a1ebc0c5817.tar.xz
spack-778eee15797aaebc2018c3a6f1ef7a1ebc0c5817.zip
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.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/warpx/package.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/warpx/package.py b/var/spack/repos/builtin/packages/warpx/package.py
index e9802e4619..a4a5e6755b 100644
--- a/var/spack/repos/builtin/packages/warpx/package.py
+++ b/var/spack/repos/builtin/packages/warpx/package.py
@@ -192,6 +192,9 @@ class Warpx(CMakePackage):
# 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):