Skip to content

Commit

Permalink
fixed notations in .H files
Browse files Browse the repository at this point in the history
  • Loading branch information
ejyoo921 committed Sep 6, 2024
1 parent fb47a1a commit a0dc9c6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions Src/EB/AMReX_EB2_2D_C.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ int build_faces (Box const& bx, Array4<EBCellFlag> const& cell,
GpuArray<Real,AMREX_SPACEDIM> const& dx,
GpuArray<Real,AMREX_SPACEDIM> const& problo,
bool cover_multiple_cuts, int& nsmallfaces,
bool plt_multiple_cuts, Array4<Real> const& mt_fcx) noexcept
bool plt_multiple_cuts, Array4<Real> const& mcx) noexcept
{
#ifdef AMREX_USE_FLOAT
constexpr Real small = 1.e-5_rt;
Expand Down Expand Up @@ -313,7 +313,7 @@ int build_faces (Box const& bx, Array4<EBCellFlag> const& cell,
if (ncuts > 2) {
Gpu::Atomic::Add(dp,1);
if (plt_multiple_cuts){
mt_fcx(i,j,k) = 10.0;
mcx(i,j,k) = 10.0;
}
}
}
Expand Down Expand Up @@ -366,7 +366,6 @@ void build_cells (Box const& bx, Array4<EBCellFlag> const& cell,
Array4<Real> const& barea, Array4<Real> const& bcent,
Array4<Real> const& bnorm, Array4<Real> const& levset,
Real small_volfrac, Geometry const& geom, bool extend_domain_face,
bool plt_multiple_cuts,
int& nsmallcells, int const nmulticuts) noexcept
{
Gpu::Buffer<int> smc = {0};
Expand Down
5 changes: 2 additions & 3 deletions Src/EB/AMReX_EB2_C.H
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ int build_faces (Box const& bx, Array4<EBCellFlag> const& cell,
GpuArray<Real,AMREX_SPACEDIM> const& dx,
GpuArray<Real,AMREX_SPACEDIM> const& problo,
bool cover_multiple_cuts, int& nsmallfaces,
bool plt_multiple_cuts, Array4<Real> const& mt_fcx) noexcept;
bool plt_multiple_cuts, Array4<Real> const& mcx) noexcept;

void build_cells (Box const& bx, Array4<EBCellFlag> const& cell,
Array4<Type_t> const& fx, Array4<Type_t> const& fy,
Expand All @@ -36,7 +36,6 @@ void build_cells (Box const& bx, Array4<EBCellFlag> const& cell,
Array4<Real> const& barea, Array4<Real> const& bcent,
Array4<Real> const& bnorm, Array4<Real> const& levset,
Real small_volfrac, Geometry const& geom, bool extend_domain_face,
bool plt_multiple_cuts,
int& nsmallcells, int nmulticuts) noexcept;

void set_connection_flags(Box const& bxg1, Array4<EBCellFlag> const& cell,
Expand All @@ -58,7 +57,7 @@ int build_faces (Box const& bx, Array4<EBCellFlag> const& cell,
GpuArray<Real,AMREX_SPACEDIM> const& dx,
GpuArray<Real,AMREX_SPACEDIM> const& problo,
bool cover_multiple_cuts,
bool plt_multiple_cuts, Array4<Real> const& mt_fcx, Array4<Real> const& mt_fcy, Array4<Real> const& mt_fcz) noexcept;
bool plt_multiple_cuts, Array4<Real> const& mcx, Array4<Real> const& mcy, Array4<Real> const& mcz) noexcept;

void build_cells (Box const& bx, Array4<EBCellFlag> const& cell,
Array4<Type_t> const& fx, Array4<Type_t> const& fy,
Expand Down
2 changes: 1 addition & 1 deletion Src/EB/AMReX_EB2_Level.H
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ GShopLevel<G>::define_fine (G const& gshop, const Geometry& geom,
dx, problo, cover_multiple_cuts, nsm, plt_multiple_cuts, mcx);

build_cells(vbx, cfg, ftx, fty, apx, apy, dx, vfr, ctr,
bar, bct, bnm, lst, small_volfrac, geom, extend_domain_face, plt_multiple_cuts,
bar, bct, bnm, lst, small_volfrac, geom, extend_domain_face,
nsm, nmc);
#endif
nsmallcells += nsm;
Expand Down

0 comments on commit a0dc9c6

Please sign in to comment.