Open ax3l opened 1 year ago
It would be nice to have a runtime helper function do determine whether the EB are being used (impl. function or STL or constructive geometry) - instead of using compilation flags.
Regular 2D simulations also crash if EBs are on, even if not used: #3686.
It would be nice to have a runtime helper function do determine whether the EB are being used (impl. function or STL or constructive geometry) - instead of using compilation flags.
@WeiqunZhang are you able help with that? :) I think you are code author of these input routines.
Discussed today: We can also add a plain runtime option
warpx.embedded_boundaries = true
Also gives us the opportunity to raise an error if EBs are to be used in inputs but were not compiled.
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).The current unconditional assert should check if EBs are used at runtime.
Related to #3280