Skip to content

Commit

Permalink
Add ParticleContainer.write_plotfile
Browse files Browse the repository at this point in the history
Add an define to a selected overload of
`ParticleContainer_impl::WritePlotfile`.
  • Loading branch information
ax3l committed Feb 16, 2024
1 parent ddbc511 commit d4c3838
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Particle/ParticleContainer.H
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,14 @@ void make_ParticleContainer_and_Iterators (py::module &m, std::string allocstr)
// void CheckpointPost ();
// void Restart (const std::string& dir, const std::string& file);
// void Restart (const std::string& dir, const std::string& file, bool is_checkpoint);
// void WritePlotFile (const std::string& dir, const std::string& name) const;

.def("write_plotfile",
//py::overload_cast<std::string const &, std::string const &>(&ParticleContainerType::WritePlotFile, py::const_),
[](ParticleContainerType const & pc, std::string const & dir, std::string const & name){
return pc.WritePlotFile(dir, name);
},
py::arg("dir"), py::arg("name")
)
// template <class F, typename std::enable_if<!std::is_same<F, Vector<std::string>&>::value>::type* = nullptr>
// void WritePlotFile (const std::string& dir, const std::string& name, F&& f) const;
// void WritePlotFile (const std::string& dir, const std::string& name,
Expand Down

0 comments on commit d4c3838

Please sign in to comment.