13 #include "axom/core.hpp"
14 #include "axom/sidre.hpp"
21 std::string file_format_string(
const FileFormat file_format)
23 std::string value =
"";
24 if (file_format == FileFormat::JSON) {
26 }
else if (file_format == FileFormat::YAML) {
33 void outputSummary(
const axom::sidre::DataStore& datastore,
const std::string& output_directory,
41 std::string file_format_string = detail::file_format_string(file_format);
43 const std::string file_name = axom::fmt::format(
"summary.{0}", file_format_string);
44 const std::string path = axom::utilities::filesystem::joinPath(output_directory, file_name);
45 datastore.getRoot()->getGroup(
"serac_summary")->save(path, file_format_string);
A function intended to be used as part of a driver to initialize common libraries.
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)
Returns the number of processes and rank for an MPI communicator.
This file contains the all the necessary functions for outputting simulation data.
Helper functions for exiting Serac cleanly.