From 778eee15797aaebc2018c3a6f1ef7a1ebc0c5817 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Wed, 20 Apr 2022 01:18:46 -0700 Subject: 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. --- var/spack/repos/builtin/packages/warpx/package.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'var') 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): -- cgit v1.2.3-70-g09d2