Skip to content

Commit

Permalink
Add getter for m_do_back_transformed_particles
Browse files Browse the repository at this point in the history
  • Loading branch information
EZoni committed Jan 23, 2025
1 parent 4126e87 commit 75b7030
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Initialization/WarpXInitData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,8 @@ WarpX::InitFromScratch ()
m_implicit_solver->CreateParticleAttributes();
}

if (m_do_back_transformed_particles)
// FIXME Is mypc->m_do_back_transformed_particles up-to-date here?
if (mypc->getDoBackTransformedParticles())
{
// Set comm to false so that the attributes are not communicated
// nor written to the checkpoint files
Expand Down
7 changes: 7 additions & 0 deletions Source/Particles/MultiParticleContainer.H
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,13 @@ public:
*/
void SetDoBackTransformedParticles (const std::string& species_name, bool do_back_transformed_particles);

/** Get value of private member m_do_back_transformed_particles
*/
bool getDoBackTransformedParticles () const
{
return m_do_back_transformed_particles;
}

[[nodiscard]] int nSpeciesDepositOnMainGrid () const
{
bool const onMainGrid = true;
Expand Down

0 comments on commit 75b7030

Please sign in to comment.