Skip to content

Commit

Permalink
move implementation so I can use FilterPositiveID
Browse files Browse the repository at this point in the history
  • Loading branch information
atmyers committed Dec 13, 2024
1 parent 0c88dc0 commit 8a6506e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
7 changes: 1 addition & 6 deletions Src/Particle/AMReX_ParticleContainer.H
Original file line number Diff line number Diff line change
Expand Up @@ -784,12 +784,7 @@ public:
const Vector<int>& write_real_comp,
const Vector<int>& write_int_comp,
const Vector<std::string>& real_comp_names,
const Vector<std::string>& int_comp_names) const
{
WriteBinaryParticleData(dir, name, write_real_comp, write_int_comp,
real_comp_names, int_comp_names,
FilterPositiveID{}, true);
}
const Vector<std::string>& int_comp_names) const;

/**
* \brief Writes particle data to disk in the AMReX native format.
Expand Down
15 changes: 15 additions & 0 deletions Src/Particle/AMReX_ParticleIO.H
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,21 @@ ParticleContainer_impl<ParticleType, NArrayReal, NArrayInt, Allocator, CellAssig
FilterPositiveID{}, true);
}

template <typename ParticleType, int NArrayReal, int NArrayInt,
template<class> class Allocator, class CellAssignor>
void
ParticleContainer_impl<ParticleType, NArrayReal, NArrayInt, Allocator, CellAssignor>
::Checkpoint (const std::string& dir, const std::string& name,
const Vector<int>& write_real_comp,
const Vector<int>& write_int_comp,
const Vector<std::string>& real_comp_names,
const Vector<std::string>& int_comp_names) const
{
WriteBinaryParticleData(dir, name, write_real_comp, write_int_comp,
real_comp_names, int_comp_names,
FilterPositiveID{}, true);
}

template <typename ParticleType, int NArrayReal, int NArrayInt,
template<class> class Allocator, class CellAssignor>
void
Expand Down

0 comments on commit 8a6506e

Please sign in to comment.