Skip to content

Commit

Permalink
AMEND ME
Browse files Browse the repository at this point in the history
  • Loading branch information
n01r committed Sep 12, 2024
1 parent 6193a36 commit aea779d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Source/Diagnostics/FullDiagnostics.H
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#include "Diagnostics.H"
#include "Utils/Parser/IntervalsParser.H"

#include <AMReX_REAL.H>

#include <string>

class FullDiagnostics final : public Diagnostics
Expand All @@ -25,6 +27,12 @@ private:
* before writing the diagnostic.
*/
bool m_solver_deposits_current = true;
/** Whether the diagnostics are averaging data over time or not */
bool m_do_time_averaging = false;
/** Period to average fields over: in steps */
unsigned int m_average_period_steps = 0;
/** Period to average fields over: in seconds */
amrex::Real m_average_period_seconds = 0;
/** Flush m_mf_output and particles to file for the i^th buffer */
void Flush (int i_buffer, bool /* force_flush */) override;
/** Flush raw data */
Expand Down
2 changes: 1 addition & 1 deletion Source/Diagnostics/MultiDiagnostics.H
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <vector>

/** All types of diagnostics. */
enum struct DiagTypes {Full, BackTransformed, BoundaryScraping};
enum struct DiagTypes {Full, BackTransformed, BoundaryScraping, TimeAveraged};

/**
* \brief This class contains a vector of all diagnostics in the simulation.
Expand Down

0 comments on commit aea779d

Please sign in to comment.