|
| std::string | numberFmt (long long n, char a_sep=',') noexcept |
| | Number formatting method – writes big numbers using an input separator. E.g. the number 123456 is written as 123,456.
|
| |
| Vector< std::string > | numberFmt (const Vector< long long > &a_numbers, char a_sep=',') noexcept |
| | Number formatting game. This just prints the number 123456 as 123,456.
|
| |
| template<typename P , typename Traits > |
| void | writeH5Part (std::string a_filename, const ParticleContainer< P, Traits > &a_particles, RealVect a_shift, Real a_time) noexcept |
| | Write an SoA particle container to an H5Part file (quick visualization).
|
| |
Namespace which encapsulates chombo-discharge IO functionality.
template<typename P , typename Traits >
| void DischargeIO::writeH5Part |
( |
std::string |
a_filename, |
|
|
const ParticleContainer< P, Traits > & |
a_particles, |
|
|
RealVect |
a_shift, |
|
|
Real |
a_time |
|
) |
| |
|
noexcept |
Write an SoA particle container to an H5Part file (quick visualization).
Position, id and weight are taken from the container-owned columns and written automatically. The payload datasets are derived declaratively from the optional Traits::h5PartColumns tuple (a list of H5Part::Scalar / H5Part::Vector descriptors pairing a dataset name with the selecting payload member pointer(s)); if Traits::h5PartColumns is not declared, only id/position/weight are written. Each vector descriptor is written as name-x/name-y/name-z.
- Parameters
-
| [in] | a_filename | File name. |
| [in] | a_particles | SoA particle container. |
| [in] | a_shift | Particle position shift (subtracted from the written positions). |
| [in] | a_time | Physical time. |
- Template Parameters
-
| P | Payload type of the container. |
| Traits | Column descriptor for the payload. |