Skip to content

Commit

Permalink
read verbosit parameter in all cases
Browse files Browse the repository at this point in the history
  • Loading branch information
roelof-groenewald committed Dec 9, 2024
1 parent 03c00a6 commit a7e4295
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
12 changes: 6 additions & 6 deletions Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ FlushFormatPlotfile::WriteToFile (
amrex::Print() << Utils::TextMsg::Info("Writing plotfile " + filename);
} else
{
amrex::Print() << Utils::TextMsg::Info("Writing buffer " + std::to_string(bufferID+1) + " of " + std::to_string(numBuffers)
+ " to snapshot " + std::to_string(snapshotID) + " in plotfile BTD " + prefix );
if (isLastBTDFlush)
{
amrex::Print() << Utils::TextMsg::Info("Finished writing snapshot " + std::to_string(snapshotID) + " in plotfile BTD " + filename);
}
amrex::Print() << Utils::TextMsg::Info("Writing buffer " + std::to_string(bufferID+1) + " of " + std::to_string(numBuffers)
+ " to snapshot " + std::to_string(snapshotID) + " in plotfile BTD " + prefix );
if (isLastBTDFlush)
{
amrex::Print() << Utils::TextMsg::Info("Finished writing snapshot " + std::to_string(snapshotID) + " in plotfile BTD " + filename);
}
}
}

Expand Down
5 changes: 3 additions & 2 deletions Source/Diagnostics/FullDiagnostics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,16 @@ FullDiagnostics::ReadParameters ()
const bool plot_raw_fields_guards_specified = pp_diag_name.query("plot_raw_fields_guards", m_plot_raw_fields_guards);
const bool raw_specified = plot_raw_fields_specified || plot_raw_fields_guards_specified;

const amrex::ParmParse pp_warpx("warpx");
pp_warpx.query("verbose", m_verbose);

if (m_diag_type == DiagTypes::TimeAveraged) {
std::string m_time_average_mode_str = "none";
/** Whether the diagnostics are averaging data over time or not
* Valid options are "fixed_start" and "dynamic_start".
*/
pp_diag_name.get("time_average_mode", m_time_average_mode_str);

const amrex::ParmParse pp_warpx("warpx");
pp_warpx.query("verbose", m_verbose);
std::vector<std::string> dt_interval_vec = {"-1"};
const bool timestep_may_vary = pp_warpx.queryarr("dt_update_interval", dt_interval_vec);
amrex::Print() << Utils::TextMsg::Warn("Time step varies?" + std::to_string(timestep_may_vary));
Expand Down

0 comments on commit a7e4295

Please sign in to comment.