Skip to content

Commit 418b71a

Browse files
authored
Use amrex::ParmParse::prettyPrintTable (#5216)
Instead of amrex::ParmParse::dumpTable, we use prettyPrintTable that removes duplicates.
1 parent c9d79cc commit 418b71a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ FlushFormatPlotfile::WriteJobInfo(const std::string& dir) const
226226
jobInfoFile << " Inputs File Parameters\n";
227227
jobInfoFile << PrettyLine;
228228

229-
ParmParse::dumpTable(jobInfoFile, true);
229+
ParmParse::prettyPrintTable(jobInfoFile);
230230

231231
jobInfoFile.close();
232232
}

Source/ablastr/utils/UsedInputsFile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ ablastr::utils::write_used_inputs_file (std::string const & filename)
2323
if (amrex::ParallelDescriptor::IOProcessor()) {
2424
std::ofstream jobInfoFile;
2525
jobInfoFile.open(filename.c_str(), std::ios::out);
26-
amrex::ParmParse::dumpTable(jobInfoFile, true);
26+
amrex::ParmParse::prettyPrintTable(jobInfoFile);
2727
jobInfoFile.close();
2828
}
2929
}

0 commit comments

Comments
 (0)