Skip to content

Commit

Permalink
Use amrex::ParmParse::prettyPrintTable (#5216)
Browse files Browse the repository at this point in the history
Instead of amrex::ParmParse::dumpTable, we use prettyPrintTable that removes
duplicates.
  • Loading branch information
WeiqunZhang authored Sep 5, 2024
1 parent c9d79cc commit 418b71a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ FlushFormatPlotfile::WriteJobInfo(const std::string& dir) const
jobInfoFile << " Inputs File Parameters\n";
jobInfoFile << PrettyLine;

ParmParse::dumpTable(jobInfoFile, true);
ParmParse::prettyPrintTable(jobInfoFile);

jobInfoFile.close();
}
Expand Down
2 changes: 1 addition & 1 deletion Source/ablastr/utils/UsedInputsFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ ablastr::utils::write_used_inputs_file (std::string const & filename)
if (amrex::ParallelDescriptor::IOProcessor()) {
std::ofstream jobInfoFile;
jobInfoFile.open(filename.c_str(), std::ios::out);
amrex::ParmParse::dumpTable(jobInfoFile, true);
amrex::ParmParse::prettyPrintTable(jobInfoFile);
jobInfoFile.close();
}
}

0 comments on commit 418b71a

Please sign in to comment.