message: add option to mfem sidre example
diff: @@ -220,6 +220,7 @@ int main(int argc, char* argv[])
  std::string protocol = "sidre_conduit_json";
  #endif
  + int num_files = -1;
  app.add_option("--cycle", cycle_to_load)
  ->description("Optional simulation cycle to load")
  ->capture_default_str();
  @@ -227,8 +228,20 @@ int main(int argc, char* argv[])
  ->description("Optional sidre protocol to use for checkpoints and restarts")
  ->check(axom::CLI::IsMember(sidre_protocols))
  ->capture_default_str();
  + app.add_option("--num_files", num_files)
  + ->description(
  + "Optional flag to set the number of output files for parallel "
  + "simulations (default one output file per rank)")
  + ->capture_default_str();
  CLI11_PARSE(app, argc, argv);
  +#ifdef EXAMPLE_USES_MPI
  + if(num_files > 0)
  + {
  + dc.SetNumFiles(num_files);
  + }
  +#endif
  +
  // Initialize the simulation data structures
  SimulationState sim_state(dc, cycle_to_load);
  