Skip to content

Commit

Permalink
Move input of galerkin_scheme upward to before the implicit check of …
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgrote authored Jan 15, 2024
1 parent 82f7f1e commit 12a265c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Source/WarpX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1210,6 +1210,11 @@ WarpX::ReadParameters ()
// Use same shape factors in all directions, for gathering
if (field_gathering_algo == GatheringAlgo::MomentumConserving) { galerkin_interpolation = false; }

{
const ParmParse pp_interpolation("interpolation");
pp_interpolation.query("galerkin_scheme",galerkin_interpolation);
}

// With the PSATD solver, momentum-conserving field gathering
// combined with mesh refinement does not seem to work correctly
// TODO Needs debugging
Expand Down Expand Up @@ -1377,12 +1382,6 @@ WarpX::ReadParameters ()

}

{
const ParmParse pp_interpolation("interpolation");

pp_interpolation.query("galerkin_scheme",galerkin_interpolation);
}

{
const ParmParse pp_warpx("warpx");

Expand Down

0 comments on commit 12a265c

Please sign in to comment.