23 #include "openPMD/backend/Attributable.hpp" 24 #include "openPMD/backend/Container.hpp" 25 #include "openPMD/Mesh.hpp" 26 #include "openPMD/ParticleSpecies.hpp" 53 template<
typename T >
61 template<
typename T >
68 template<
typename T >
76 template<
typename T >
103 close(
bool flush =
true );
135 void flushFileBased(std::string
const&, uint64_t);
136 void flushGroupBased(uint64_t);
144 enum class CloseStatus
159 std::shared_ptr< CloseStatus > m_closed =
160 std::make_shared< CloseStatus >( CloseStatus::Open );
171 dirtyRecursive()
const;
173 virtual void linkHierarchy(std::shared_ptr< Writable >
const& w);
178 Iteration::time< float >()
const;
182 Iteration::time< double >()
const;
186 Iteration::time< long double >()
const;
188 template<
typename T >
191 {
return Attributable::readFloatingpoint< T >(
"time"); }
196 Iteration::dt< float >()
const;
200 Iteration::dt< double >()
const;
204 Iteration::dt< long double >()
const;
206 template<
typename T >
209 {
return Attributable::readFloatingpoint< T >(
"dt"); }
T time() const
Definition: Iteration.hpp:190
Iteration & setDt(T newDt)
Set the time step used to reach this iteration.
Definition: Iteration.cpp:85
double timeUnitSI() const
Definition: Iteration.cpp:94
Logical compilation of data from one snapshot (e.g.
Definition: Iteration.hpp:35
T dt() const
Definition: Iteration.hpp:208
Iteration & close(bool flush=true)
Close an iteration.
Definition: Iteration.cpp:107
bool closed() const
Has the iteration been closed? A closed iteration may not (yet) be reopened.
Definition: Iteration.cpp:153
Root level of the openPMD hierarchy.
Definition: Series.hpp:55
Public definitions of openPMD-api.
Definition: Date.cpp:28
Iteration & setTime(T newTime)
Set the global reference time for this iteration.
Definition: Iteration.cpp:75
bool closedByWriter() const
Has the iteration been closed by the writer? Background: Upon calling Iteration::close(), the openPMD API will add metadata to the iteration in form of an attribute, indicating that the iteration has indeed been closed.
Definition: Iteration.cpp:159
Map-like container that enforces openPMD requirements and handles IO.
Definition: Container.hpp:70
Iteration & setTimeUnitSI(double newTimeUnitSI)
Set the conversion factor to convert time and dt to seconds.
Definition: Iteration.cpp:100
Layer to manage storage of attributes associated with file objects.
Definition: Attributable.hpp:65