Skip to content

Commit

Permalink
Cleanup up comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ewquon committed Apr 5, 2024
1 parent d3a52c3 commit fd335a9
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Source/BoundaryConditions/ERF_FillPatch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ ERF::FillIntermediatePatch (int lev, Real time,
AMREX_ALWAYS_ASSERT(mfs_mom.size() == IntVars::NumTypes);
AMREX_ALWAYS_ASSERT(mfs_vel.size() == Vars::NumTypes);

// Enforce no penetration for thin immersed interface
// Enforce no penetration for thin immersed body
if (xflux_imask[lev]) {
ApplyMask(*mfs_mom[IntVars::xmom], *xflux_imask[lev]);
}
Expand Down
2 changes: 1 addition & 1 deletion Source/DataStructs/AdvStruct.H
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ struct AdvChoice {
amrex::Real moistscal_horiz_upw_frac = 1.0;
amrex::Real moistscal_vert_upw_frac = 1.0;

// Thin immersed interface
// Thin immersed body
amrex::Vector<amrex::IntVect> zero_xflux;
amrex::Vector<amrex::IntVect> zero_yflux;
amrex::Vector<amrex::IntVect> zero_zflux;
Expand Down
4 changes: 2 additions & 2 deletions Source/ERF.H
Original file line number Diff line number Diff line change
Expand Up @@ -692,13 +692,13 @@ private:
// These are the "physical" boundary condition types (e.g. "inflow")
amrex::GpuArray<ERF_BC, AMREX_SPACEDIM*2> phys_bc_type;

// These are the masks for the thin immersed interface
// These are the masks for the thin immersed body
amrex::Vector<std::unique_ptr<amrex::iMultiFab>> xflux_imask;
amrex::Vector<std::unique_ptr<amrex::iMultiFab>> yflux_imask;
amrex::Vector<std::unique_ptr<amrex::iMultiFab>> zflux_imask;
//amrex::Vector<std::unique_ptr<amrex::iMultiFab>> overset_imask;

// These are the body forces that result from the thin immersed interface
// These are the body forces that result from the thin immersed body
amrex::Vector<std::unique_ptr<amrex::MultiFab>> thin_xforce;
amrex::Vector<std::unique_ptr<amrex::MultiFab>> thin_yforce;
amrex::Vector<std::unique_ptr<amrex::MultiFab>> thin_zforce;
Expand Down
6 changes: 3 additions & 3 deletions Source/ERF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ ERF::ERF ()
mapfac_u.resize(nlevs_max);
mapfac_v.resize(nlevs_max);

// Thin immersed interface
// Thin immersed body
xflux_imask.resize(nlevs_max);
yflux_imask.resize(nlevs_max);
zflux_imask.resize(nlevs_max);
Expand Down Expand Up @@ -644,9 +644,9 @@ ERF::InitData ()
(solverChoice.advChoice.zero_zflux.size() > 0))
{
AMREX_ALWAYS_ASSERT_WITH_MESSAGE(finest_level == 0,
"Thin immersed interface with refinement not currently supported.");
"Thin immersed body with refinement not currently supported.");
if (solverChoice.use_terrain == 1) {
amrex::Print() << "NOTE: Thin immersed interface with terrain has not been tested." << std::endl;
amrex::Print() << "NOTE: Thin immersed body with terrain has not been tested." << std::endl;
}
}

Expand Down
4 changes: 2 additions & 2 deletions Source/ERF_make_new_level.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ void ERF::MakeNewLevelFromScratch (int lev, Real time, const BoxArray& ba,
lmask_lev[lev].resize(1); lmask_lev[lev][0] = nullptr;

//********************************************************************************************
// Thin immersed interface
// Thin immersed body
// *******************************************************************************************
#if 0
if ((solverChoice.advChoice.zero_xflux.size() > 0) ||
Expand All @@ -95,7 +95,7 @@ void ERF::MakeNewLevelFromScratch (int lev, Real time, const BoxArray& ba,
#endif

if (solverChoice.advChoice.zero_xflux.size() > 0) {
amrex::Print() << "Setting up thin immersed interface for "
amrex::Print() << "Setting up thin immersed body for "
<< solverChoice.advChoice.zero_xflux.size() << " xfaces" << std::endl;
BoxArray ba_xf(ba);
ba_xf.surroundingNodes(0);
Expand Down
2 changes: 1 addition & 1 deletion Source/TimeIntegration/ERF_slow_rhs_pre.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1286,7 +1286,7 @@ void erf_slow_rhs_pre (int level, int finest_level,
} // end profile
} // mfi

// Enforce thin immersed interface condition, save forces
// Enforce thin immersed body interface condition, save forces
if (l_have_thin_xforce) {
MultiFab::Copy(*thin_xforce_lev, S_rhs[IntVars::xmom], 0, 0, 1, 0);
thin_xforce_lev->mult(-1., 0, 1, 0);
Expand Down

0 comments on commit fd335a9

Please sign in to comment.