Skip to content

Commit

Permalink
Disabling projection div cleaner when diffusion div cleaner is enable…
Browse files Browse the repository at this point in the history
…d for Yee algorithm.
  • Loading branch information
clarkse committed Aug 21, 2024
1 parent aeb2d1f commit 8f4db40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/WarpX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1132,7 +1132,8 @@ WarpX::ReadParameters ()

// Update default to external projection divb cleaner if external fields are loaded,
// the grids are staggered, and the solver is compatible with the cleaner
if (m_p_ext_field_params->B_ext_grid_type != ExternalFieldType::default_zero
if (!do_divb_cleaning
&& m_p_ext_field_params->B_ext_grid_type != ExternalFieldType::default_zero
&& m_p_ext_field_params->B_ext_grid_type != ExternalFieldType::constant
&& grid_type != GridType::Collocated
&& (WarpX::electromagnetic_solver_id == ElectromagneticSolverAlgo::Yee
Expand Down

0 comments on commit 8f4db40

Please sign in to comment.