Skip to content

Commit

Permalink
++
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipDeegan committed Oct 16, 2024
1 parent 063ee22 commit d924e92
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/amr/solvers/solver_ppc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ void SolverPPC<HybridModel, AMR_Types>::fillMessengerInfo(
template<typename HybridModel, typename AMR_Types>
void SolverPPC<HybridModel, AMR_Types>::saveState_(level_t& level, ModelViews_t& views)
{
PHARE_LOG_SCOPE(1, "SolverPPC::saveState_");

for (auto& state : views)
{
std::stringstream ss;
Expand All @@ -232,6 +234,8 @@ void SolverPPC<HybridModel, AMR_Types>::saveState_(level_t& level, ModelViews_t&
template<typename HybridModel, typename AMR_Types>
void SolverPPC<HybridModel, AMR_Types>::restoreState_(level_t& level, ModelViews_t& views)
{
PHARE_LOG_SCOPE(1, "SolverPPC::restoreState_");

for (auto& state : views)
{
std::stringstream ss;
Expand Down Expand Up @@ -452,6 +456,7 @@ void SolverPPC<HybridModel, AMR_Types>::moveIons_(level_t& level, ModelViews_t&
TimeSetter setTime{views, newTime};

{
PHARE_LOG_SCOPE(1, "SolverPPC::moveIons_updatePopulations");
auto dt = newTime - currentTime;
for (auto& state : views)
ionUpdater_.updatePopulations(state.ions, state.electromagAvg, state.layout, dt, mode);
Expand All @@ -460,7 +465,10 @@ void SolverPPC<HybridModel, AMR_Types>::moveIons_(level_t& level, ModelViews_t&
// this needs to be done before calling the messenger
setTime([](auto& state) -> auto& { return state.ions; });

fromCoarser.fillIonGhostParticles(views.model().state.ions, level, newTime);
{
PHARE_LOG_SCOPE(1, "SolverPPC::moveIons_fillIonGhostParticles");
fromCoarser.fillIonGhostParticles(views.model().state.ions, level, newTime);
}
fromCoarser.fillIonPopMomentGhosts(views.model().state.ions, level, newTime);

for (auto& state : views)
Expand Down

0 comments on commit d924e92

Please sign in to comment.