Skip to content

EBs: Should not Fail 2D or RZ if not used #3385

Open
@ax3l

Description

@ax3l

When compiling with -DWarpX_EB=ON -DWarpX_PSATD=ON, the RZ geometry cannot be used anymore.

This can be seen by running the Examples/Physics_applications/laser_acceleration/inputs_rz test, which does not use EB (or PSATD).

./warpx.RZ.MPI.HIP.DP.PDP.OPMD.PSATD.EB.QED ../../Examples/Physics_applications/laser_acceleration/inputs_rz 
Initializing HIP...
HIP initialized.
MPI initialized with 1 MPI processes
MPI initialized with thread support level 3
AMReX (22.09) initialized
0::Assertion `do_electrostatic!=ElectrostaticSolverAlgo::None' failed, file "/ccs/home/huebl/src/warpx/Source/WarpX.cpp", line 680, Msg: 
### ERROR   : Currently, the embedded boundary in RZ only works for
#            electrostatic solvers.
 !!!
SIGABRT
See Backtrace.0 file for details
MPICH ERROR [Rank 0] [job id ] [Mon Sep 12 14:53:37 2022] [crusher068] - Abort(6) (rank 0 in comm 496): application called MPI_Abort(comm=0x84000000, 6) - process 0

The current unconditional assert should check if EBs are used at runtime.

Related to #3280

Metadata

Metadata

Labels

bugSomething isn't workingbug: affects latest releaseBug also exists in latest release versioncomponent: boundaryPML, embedded boundaries, et al.geometry: RZaxisymmetric 2D and quasi-3D

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions