Skip to content

Commit

Permalink
Merge branch 'development' into add_use_real_bcs
Browse files Browse the repository at this point in the history
  • Loading branch information
asalmgren authored Jan 12, 2024
2 parents 5aed7af + 7422c18 commit bc5250e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Exec/RegTests/ScalarAdvDiff/inputs_advdiffinflowoutflow
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ xlo.theta = 1.
xlo.scalar = 0.

# TIME STEP CONTROL
erf.fixed_dt = 2.e-4
erf.fixed_dt = 1.e-4
erf.fixed_mri_dt_ratio = 4

# DIAGNOSTICS & VERBOSITY
Expand Down
22 changes: 11 additions & 11 deletions Source/Particles/ERFPC.H
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,17 @@ class ERFPC : public amrex::ParticleContainer< ERFParticlesRealIdx::ncomps,
m_advect_w_gravity = a_flag;
}

/*! Uses midpoint method to advance particles using flow velocity. */
void AdvectWithFlow ( amrex::MultiFab*,
int,
amrex::Real,
const std::unique_ptr<amrex::MultiFab>& );

/*! Uses midpoint method to advance particles falling under gravity. */
void AdvectWithGravity ( int,
amrex::Real,
const std::unique_ptr<amrex::MultiFab>& );

protected:

bool m_advect_w_flow; /*!< advect with flow velocity */
Expand All @@ -147,17 +158,6 @@ class ERFPC : public amrex::ParticleContainer< ERFParticlesRealIdx::ncomps,
/*! Default particle initialization */
void initializeParticlesUniformDistribution (const std::unique_ptr<amrex::MultiFab>& a_ptr = nullptr);

/*! Uses midpoint method to advance particles using flow velocity. */
void AdvectWithFlow ( amrex::MultiFab*,
int,
amrex::Real,
const std::unique_ptr<amrex::MultiFab>& );

/*! Uses midpoint method to advance particles falling under gravity. */
void AdvectWithGravity ( int,
amrex::Real,
const std::unique_ptr<amrex::MultiFab>& );

private:

/*! Default particle initialization */
Expand Down

0 comments on commit bc5250e

Please sign in to comment.