From 03b2fe60ff49748aaff8402824ea0457eef24d5c Mon Sep 17 00:00:00 2001 From: Edoardo Zoni <59625522+EZoni@users.noreply.github.com> Date: Wed, 8 Mar 2023 20:52:56 -0800 Subject: New user input for grid type (collocated, staggered, hybrid) (#3683) * Introduce `warpx.grid_type` parameter * Replace `or` with `||` * Update examples with new user input syntax * Fix `if` condition * Improve error message * Fix `if` condition * Fix bugs * Fix warning * Fix RZ * Debugging * Fix RZ * Fix bug * Clean up * More changes: - set default algo parameters with hybrid grid - all hybrid input parameters under warpx name * Set default field gathering algo for hybrid grids * Update documentation --- Source/FieldSolver/WarpX_QED_Field_Pushers.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/FieldSolver/WarpX_QED_Field_Pushers.cpp') diff --git a/Source/FieldSolver/WarpX_QED_Field_Pushers.cpp b/Source/FieldSolver/WarpX_QED_Field_Pushers.cpp index e134ede7f..bd6886480 100644 --- a/Source/FieldSolver/WarpX_QED_Field_Pushers.cpp +++ b/Source/FieldSolver/WarpX_QED_Field_Pushers.cpp @@ -46,9 +46,9 @@ void WarpX::Hybrid_QED_Push (amrex::Vector a_dt) { WARPX_ALWAYS_ASSERT_WITH_MESSAGE( - WarpX::do_nodal != 0, + WarpX::grid_type == GridType::Collocated, "Error: The Hybrid QED method is " - "currently only compatible with the nodal scheme." + "currently only implemented on a collocated grid." ); for (int lev = 0; lev <= finest_level; ++lev) { Hybrid_QED_Push(lev, a_dt[lev]); -- cgit v1.2.3