Skip to content

Commit

Permalink
Addressing stability issues with introducing refinement levels on a r…
Browse files Browse the repository at this point in the history
…estart (Exawind#942)

putting postsolve into PDE initialize and regrid
-- will remove redundancy of fillpatch operations in future PR
  • Loading branch information
mbkuhn authored Dec 15, 2023
1 parent cf66ebe commit 8ad77c3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions amr-wind/equation_systems/PDE.H
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ public:
m_fields, m_sim.has_overset(), variable_density,
m_sim.has_mesh_mapping()));
m_src_op.init_source_terms(m_sim);

// Post-solve operations should also apply after initialization
m_post_solve_op(m_time.current_time());
}

//! Perform update actions after a regrid is performed
Expand All @@ -90,6 +93,9 @@ public:
m_adv_op.reset(new AdvectionOp<PDE, Scheme>(
m_fields, m_sim.has_overset(), variable_density,
m_sim.has_mesh_mapping()));

// Post-solve operations should also apply after a regrid
m_post_solve_op(m_time.current_time());
}

//! Return the object holding the fields necessary for solving this PDE
Expand Down

0 comments on commit 8ad77c3

Please sign in to comment.