Skip to content

Commit

Permalink
make sure branch works without overset (Exawind#917)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbkuhn committed Oct 11, 2023
1 parent 009784f commit c4f0799
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions amr-wind/incflo_advance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -420,11 +420,13 @@ void incflo::ApplyPredictor(bool incremental_projection)
(density_new).vec_const_ptrs(), new_time, m_time.deltaT(),
incremental_projection);

if (m_sharpen_hsp_replace) {
amr_wind::overset::ReapplyModifiedGradP(sim());
}
if (m_sharpen_gradp) {
amr_wind::overset::ReapplyOversetGradP(*gp_copy, sim());
if (sim().has_overset()) {
if (m_sharpen_hsp_replace) {
amr_wind::overset::ReapplyModifiedGradP(sim());
}
if (m_sharpen_gradp) {
amr_wind::overset::ReapplyOversetGradP(*gp_copy, sim());
}
}

if (m_verbose > 2) {
Expand Down

0 comments on commit c4f0799

Please sign in to comment.