Skip to content

Commit

Permalink
replace hard-coded new_time() in ABLFillInflow with actual time argument
Browse files Browse the repository at this point in the history
  • Loading branch information
mbkuhn committed Oct 21, 2024
1 parent 87d545e commit f50752c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions amr-wind/wind_energy/ABLFillInflow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ void ABLFillInflow::fillphysbc(
FieldFillPatchOps<FieldBCDirichlet>::fillphysbc(
lev, time, mfab, nghost, fstate);

m_bndry_plane.populate_data(lev, m_time.new_time(), m_field, mfab);
m_bndry_plane.populate_data(lev, time, m_field, mfab);
}

void ABLFillInflow::fillpatch_sibling_fields(
Expand Down Expand Up @@ -105,10 +105,7 @@ void ABLFillInflow::fillpatch_sibling_fields(

if (!plane_data_unchanged) {
for (int i = 0; i < static_cast<int>(mfabs.size()); i++) {
// use new_time to populate boundary data instead of half-time
// to avoid interpolating from precursor data
m_bndry_plane.populate_data(
lev, m_time.new_time(), m_field, *mfabs[i], 0, i);
m_bndry_plane.populate_data(lev, time, m_field, *mfabs[i], 0, i);
}
}
}
Expand Down

0 comments on commit f50752c

Please sign in to comment.