Skip to content

Commit

Permalink
Fixes to get compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
cgilet committed Jan 19, 2024
1 parent 54c9b94 commit f4c34a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/boundary_conditions/Make.package
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

CEXE_sources += boundary_conditions.cpp
CEXE_sources += incflo_fillpatch.cpp incflo_fillphysbc.cpp
CEXE_sources += incflo_set_bcs.cpp
10 changes: 6 additions & 4 deletions src/projection/incflo_apply_nodal_projection.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include <AMReX_BC_TYPES.H>
#include <AMReX_PhysBCFunct.H>
#include <incflo.H>
#include <prob_bc.H>
#include <memory>

using namespace amrex;
Expand Down Expand Up @@ -107,15 +109,15 @@ void incflo::ApplyNodalProjection (Vector<MultiFab const*> density,
vel.push_back(&(m_leveldata[lev]->velocity));
vel[lev]->setBndry(0.0);
if (!proj_for_small_dt && !incremental) {
//set_inflow_velocity(lev, time, *vel[lev], 1);
IntVect nghost(1);
PhysBCFunct<GpuBndryFuncFab<IncfloVelFill> > physbc
(geom[lev], bcrec, IncfloVelFill{m_probtype, m_bc_velocity});
physbcf(*vel[lev], 0, AMREX_SPACEDIM, 1, time, 0);
(geom[lev], get_velocity_bcrec(), IncfloVelFill{m_probtype, m_bc_velocity});
physbc(*vel[lev], 0, AMREX_SPACEDIM, nghost, time, 0);

//FIXME? Not sure we really need this
// We make sure to only fill "nghost" ghost cells so we don't accidentally
// over-write good ghost cell values with unfilled ghost cell values
vel.EnforcePeriodicity(0,AMREX_SPACEDIM,IntVect::Unit,gm.periodicity());
vel[lev]->EnforcePeriodicity(0, AMREX_SPACEDIM, nghost, geom[lev].periodicity());

}
}
Expand Down

0 comments on commit f4c34a1

Please sign in to comment.