9 #include "axom/core.hpp"
10 #include "axom/sidre.hpp"
19 std::string file_format_string(
const FileFormat file_format)
21 std::string value =
"";
22 if (file_format == FileFormat::JSON) {
24 }
else if (file_format == FileFormat::YAML) {
31 void outputSummary(
const axom::sidre::DataStore& datastore,
const std::string& output_directory,
39 std::string file_format_string = detail::file_format_string(file_format);
41 const std::string file_name = axom::fmt::format(
"summary.{0}", file_format_string);
42 const std::string path = axom::utilities::filesystem::joinPath(output_directory, file_name);
43 datastore.getRoot()->getGroup(
"serac_summary")->save(path, file_format_string);
This file contains the interface used for retrieving information about how the driver is configured.
This file contains the all the necessary functions and macros required for logging as well as a helpe...
The output related helper functions and objects.
void outputSummary(const axom::sidre::DataStore &datastore, const std::string &output_directory, const FileFormat file_format)
Outputs simulation summary data from the datastore to the given file only on rank 0.
FileFormat
The output file formats supported.
std::pair< int, int > getMPIInfo(MPI_Comm comm)
Get MPI Info.
This file contains the all the necessary functions for outputting simulation data.