Skip to content

Commit

Permalink
better naming
Browse files Browse the repository at this point in the history
  • Loading branch information
SeverinDiederichs committed Jun 23, 2023
1 parent c15700b commit 730c30d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/diagnostics/Diagnostic.H
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public:
amrex::Real output_time, amrex::Real max_time)
{
return fd.m_nfields_with_laser > 0 &&
utils::doOutput(fd.m_output_period, output_step, max_step,
utils::doDiagnostics(fd.m_output_period, output_step, max_step,
output_time, max_time);
}

Expand Down Expand Up @@ -108,7 +108,7 @@ public:
amrex::Real output_time, amrex::Real max_time) const
{
return m_output_beam_names.size() > 0 &&
utils::doOutput(m_beam_output_period, output_step, max_step,
utils::doDiagnostics(m_beam_output_period, output_step, max_step,
output_time, max_time);
}

Expand Down
4 changes: 2 additions & 2 deletions src/particles/beam/MultiBeam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ MultiBeam::InSituComputeDiags (int step, int islice, int islice_local,
amrex::Real max_time)
{
for (auto& beam : m_all_beams) {
if (utils::doOutput(beam.m_insitu_period, step,
if (utils::doDiagnostics(beam.m_insitu_period, step,
max_step, physical_time, max_time)) {
beam.InSituComputeDiags(islice, islice_local);
}
Expand All @@ -233,7 +233,7 @@ MultiBeam::InSituWriteToFile (int step, amrex::Real time, const amrex::Geometry&
int max_step, amrex::Real max_time)
{
for (auto& beam : m_all_beams) {
if (utils::doOutput(beam.m_insitu_period, step,
if (utils::doDiagnostics(beam.m_insitu_period, step,
max_step, time, max_time)) {
beam.InSituWriteToFile(step, time, geom);
}
Expand Down
4 changes: 2 additions & 2 deletions src/particles/plasma/MultiPlasma.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ MultiPlasma::InSituComputeDiags (int step, int islice, int max_step,
amrex::Real physical_time, amrex::Real max_time)
{
for (auto& plasma : m_all_plasmas) {
if (utils::doOutput(plasma.m_insitu_period, step,
if (utils::doDiagnostics(plasma.m_insitu_period, step,
max_step, physical_time, max_time)) {
plasma.InSituComputeDiags(islice);
}
Expand All @@ -220,7 +220,7 @@ MultiPlasma::InSituWriteToFile (int step, amrex::Real time, const amrex::Geometr
int max_step, amrex::Real max_time)
{
for (auto& plasma : m_all_plasmas) {
if (utils::doOutput(plasma.m_insitu_period, step,
if (utils::doDiagnostics(plasma.m_insitu_period, step,
max_step, time, max_time)) {
plasma.InSituWriteToFile(step, time, geom);
}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/IOUtil.H
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ namespace utils
* \param[in] output_time physical time of the current step
* \param[in] max_time maximum simulation time
*/
bool doOutput (int output_period, int output_step, int max_step,
bool doDiagnostics (int output_period, int output_step, int max_step,
amrex::Real output_time, amrex::Real max_time);

#ifdef HIPACE_USE_OPENPMD
Expand Down
2 changes: 1 addition & 1 deletion src/utils/IOUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ utils::getReversedVec ( const amrex::Real* v )
}

bool
utils::doOutput (int output_period, int output_step, int max_step,
utils::doDiagnostics (int output_period, int output_step, int max_step,
amrex::Real output_time, amrex::Real max_time)
{
return output_period > 0 && (
Expand Down

0 comments on commit 730c30d

Please sign in to comment.