Skip to content

Commit

Permalink
start lev != 0
Browse files Browse the repository at this point in the history
  • Loading branch information
marchdf committed Jun 6, 2024
1 parent 3edfa68 commit 74912f8
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions amr-wind/core/FieldFillPatchOps.H
Original file line number Diff line number Diff line change
Expand Up @@ -278,21 +278,31 @@ public:
m_mesh.Geom(lev), physbc, i);
}
} else {
amrex::PhysBCFunct<amrex::GpuBndryFuncFab<Functor>> cphysbc(
m_mesh.Geom(lev - 1), bcrec, bc_functor());

amrex::PhysBCFunct<amrex::GpuBndryFuncFab<Functor>> fphysbc(
m_mesh.Geom(lev), bcrec, bc_functor());
AMREX_D_TERM(
amrex::PhysBCFunct<amrex::GpuBndryFuncFab<Functor>> cphysbcx(
m_mesh.Geom(lev - 1), bcrec, bc_functor_face(0));
, amrex::PhysBCFunct<amrex::GpuBndryFuncFab<Functor>> cphysbcy(
m_mesh.Geom(lev - 1), bcrec, bc_functor_face(1));
, amrex::PhysBCFunct<amrex::GpuBndryFuncFab<Functor>> cphysbcz(
m_mesh.Geom(lev - 1), bcrec, bc_functor_face(2)););

AMREX_D_TERM(
amrex::PhysBCFunct<amrex::GpuBndryFuncFab<Functor>> fphysbcx(
m_mesh.Geom(lev), bcrec, bc_functor_face(0));
, amrex::PhysBCFunct<amrex::GpuBndryFuncFab<Functor>> fphysbcy(
m_mesh.Geom(lev), bcrec, bc_functor_face(1));
, amrex::PhysBCFunct<amrex::GpuBndryFuncFab<Functor>> fphysbcz(
m_mesh.Geom(lev), bcrec, bc_functor_face(2)););

amrex::Array<
amrex::PhysBCFunct<amrex::GpuBndryFuncFab<Functor>>,
AMREX_SPACEDIM>
cphysbc_arr = {AMREX_D_DECL(cphysbc, cphysbc, cphysbc)};
cphysbc_arr = {AMREX_D_DECL(cphysbcx, cphysbcy, cphysbcz)};

amrex::Array<
amrex::PhysBCFunct<amrex::GpuBndryFuncFab<Functor>>,
AMREX_SPACEDIM>
fphysbc_arr = {AMREX_D_DECL(fphysbc, fphysbc, fphysbc)};
fphysbc_arr = {AMREX_D_DECL(fphysbcx, fphysbcy, fphysbcz)};

amrex::Array<int, AMREX_SPACEDIM> idx = {AMREX_D_DECL(0, 1, 2)};
const amrex::Array<amrex::Vector<amrex::BCRec>, AMREX_SPACEDIM>
Expand Down

0 comments on commit 74912f8

Please sign in to comment.