Skip to content

Commit

Permalink
respond to reviewer suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
asalmgren committed Apr 29, 2024
1 parent 318baec commit 88a37a2
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/incflo.H
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ private:
bool m_use_tracer_particles; /*!< tracer particles that advect with flow */

/*! Read tracer particles parameters */
void readTracersParams ();
void readTracerParticlesParams ();

/*! Initialize tracer particles */
void initializeTracerParticles (amrex::ParGDBBase* gdb
Expand Down
8 changes: 4 additions & 4 deletions src/incflo_advance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ void incflo::Advance()
ApplyCorrector();
}

#ifdef INCFLO_USE_PARTICLES
particleData.Redistribute();
#endif

#if 0
// This sums over all levels
if (m_test_tracer_conservation) {
Expand All @@ -82,9 +86,5 @@ void incflo::Advance()
{
amrex::Print() << "Time per step " << end_step << std::endl;
}

#ifdef INCFLO_USE_PARTICLES
particleData.Redistribute();
#endif
}

2 changes: 1 addition & 1 deletion src/particles/incflo_PC.H
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class incflo_PC : public amrex::ParticleContainer< incflo_ParticlesRealIdxAoS::
if (a_var_name == "mass_density") {
massDensity( a_mf, a_lev );
} else {
a_mf.setVal(0.0);
amrex::Abort("this variable not defined in computeMeshVar");
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/particles/incflo_PCInit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ void incflo_PC::initializeParticlesUniformDistributionInBox ( const RealBox& par
Real x_ctr = cyl_center[0];
Real y_ctr = cyl_center[1];

// Remove particles that are outside of the cylindner
// Remove particles that are outside of the cylinder
for (ParIterType pti(*this, lev); pti.isValid(); ++pti)
{
auto& ptile = ParticlesAt(lev, pti);
Expand Down
2 changes: 1 addition & 1 deletion src/particles/incflo_Tracers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using namespace amrex;

/*! Read tracer particles parameters */
void incflo::readTracersParams ()
void incflo::readTracerParticlesParams ()
{
ParmParse pp("incflo");

Expand Down
2 changes: 1 addition & 1 deletion src/setup/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ void incflo::ReadParameters ()
#endif

#ifdef INCFLO_USE_PARTICLES
readTracersParams();
readTracerParticlesParams();
#endif
}

Expand Down
2 changes: 1 addition & 1 deletion src/utilities/io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ void incflo::WritePlotFile()
pltscaVarsName.push_back("gpx");
++icomp;
}
if (m_plt_gpy) {
if (m_plt_gpy) {
for (int lev = 0; lev <= finest_level; ++lev) {
MultiFab::Copy(mf[lev], m_leveldata[lev]->gp, 1, icomp, 1, 0);
}
Expand Down

0 comments on commit 88a37a2

Please sign in to comment.