Hipace
|
Functions | |
std::vector< double > | getRelativeCellPosition (amrex::Box const &box) |
std::vector< std::uint64_t > | getReversedVec (const amrex::IntVect &v) |
Convert an IntVect to a std::vector<std::uint64_t> and reverse the order of the elements (used for compatibility with the openPMD API) More... | |
std::vector< double > | getReversedVec (const amrex::Real *v) |
Convert Real* pointer to a std::vector<double>, and reverse the order of the elements (used for compatibility with the openPMD API) More... | |
bool | doDiagnostics (int output_period, int output_step, int max_step, amrex::Real output_time, amrex::Real max_time) |
returns whether output should be writen to file More... | |
bool utils::doDiagnostics | ( | int | output_period, |
int | output_step, | ||
int | max_step, | ||
amrex::Real | output_time, | ||
amrex::Real | max_time | ||
) |
returns whether output should be writen to file
[in] | output_period | period of the output |
[in] | output_step | current step |
[in] | max_step | maximum step of simulation |
[in] | output_time | physical time of the current step |
[in] | max_time | maximum simulation time |
std::vector< double > utils::getRelativeCellPosition | ( | amrex::Box const & | box | ) |
Get the Relative Cell Position of Values in an MultiFab
Translate the IndexType of a given MultiFab into a position relative to the lower corner of a cell.
[in] | box | the amrex::Box to get relative cell positions for |
std::vector< std::uint64_t > utils::getReversedVec | ( | const amrex::IntVect & | v | ) |
Convert an IntVect to a std::vector<std::uint64_t> and reverse the order of the elements (used for compatibility with the openPMD API)
std::vector< double > utils::getReversedVec | ( | const amrex::Real * | v | ) |
Convert Real* pointer to a std::vector<double>, and reverse the order of the elements (used for compatibility with the openPMD API)