Skip to content

Commit

Permalink
Promote member functions to public to avoid extended lambda capture e…
Browse files Browse the repository at this point in the history
…rror with nvcc. (#1378)
  • Loading branch information
AMLattanzi authored Jan 12, 2024
1 parent fe70d5f commit 8b7fb93
Showing 1 changed file with 11 additions and 11 deletions.
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 8b7fb93

Please sign in to comment.