Skip to content

Commit

Permalink
Fix for fill abl inflow (#862)
Browse files Browse the repository at this point in the history
  • Loading branch information
marchdf committed Jun 22, 2023
1 parent b41395c commit 5ae3533
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion amr-wind/wind_energy/ABLFillInflow.H
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace amr_wind {
*
* \sa ABLBoundaryPlane
*/
class ABLFillInflow : public FieldFillPatchOps<FieldBCNoOp>
class ABLFillInflow : public FieldFillPatchOps<FieldBCDirichlet>
{
public:
ABLFillInflow(
Expand Down
12 changes: 7 additions & 5 deletions amr-wind/wind_energy/ABLFillInflow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ABLFillInflow::ABLFillInflow(
const amrex::AmrCore& mesh,
const SimTime& time,
const ABLBoundaryPlane& bndry_plane)
: FieldFillPatchOps<FieldBCNoOp>(
: FieldFillPatchOps<FieldBCDirichlet>(
field, mesh, time, FieldInterpolator::CellConsLinear)
, m_bndry_plane(bndry_plane)
{}
Expand All @@ -21,7 +21,8 @@ void ABLFillInflow::fillpatch(
const amrex::IntVect& nghost,
const FieldState fstate)
{
FieldFillPatchOps<FieldBCNoOp>::fillpatch(lev, time, mfab, nghost, fstate);
FieldFillPatchOps<FieldBCDirichlet>::fillpatch(
lev, time, mfab, nghost, fstate);

m_bndry_plane.populate_data(lev, time, m_field, mfab);
}
Expand All @@ -33,7 +34,7 @@ void ABLFillInflow::fillpatch_from_coarse(
const amrex::IntVect& nghost,
const FieldState fstate)
{
FieldFillPatchOps<FieldBCNoOp>::fillpatch_from_coarse(
FieldFillPatchOps<FieldBCDirichlet>::fillpatch_from_coarse(
lev, time, mfab, nghost, fstate);

m_bndry_plane.populate_data(lev, time, m_field, mfab);
Expand All @@ -46,7 +47,8 @@ void ABLFillInflow::fillphysbc(
const amrex::IntVect& nghost,
const FieldState fstate)
{
FieldFillPatchOps<FieldBCNoOp>::fillphysbc(lev, time, mfab, nghost, fstate);
FieldFillPatchOps<FieldBCDirichlet>::fillphysbc(
lev, time, mfab, nghost, fstate);

m_bndry_plane.populate_data(lev, time, m_field, mfab);
}
Expand Down Expand Up @@ -87,7 +89,7 @@ void ABLFillInflow::fillpatch_sibling_fields(
}
}

FieldFillPatchOps<FieldBCNoOp>::fillpatch_sibling_fields(
FieldFillPatchOps<FieldBCDirichlet>::fillpatch_sibling_fields(
lev, time, mfabs, ffabs, cfabs, nghost, lbcrec, fstate, itype);

for (int i = 0; i < static_cast<int>(mfabs.size()); i++) {
Expand Down

0 comments on commit 5ae3533

Please sign in to comment.