message: Adds ability to rename output mesh in data_collection_utils app
  Also changes the default name to either 'box_{2,3}d' or the name
  of the input mfem file when not specified.
diff: @@ -41,7 +41,7 @@ enum class MeshForm : int
  struct Input
  {
  public:
  - std::string dcName {"mesh"};
  + std::string dcName;
  int uniformRefinements {0};
  int polynomialOrder {2};
  @@ -145,6 +145,11 @@ public:
  void parse(int argc, char** argv, CLI::App& app)
  {
  + app.add_option("-o, --output-name", dcName)
  + ->description(
  + "Name of the output mesh. Defaults to box{2,3}d for box meshes, and "
  + "the mfem mesh name when loading from an mfem file");
  +
  app.add_option("-m, --mfem-file", mfemFile)
  ->description("Path to a mesh file in the mfem format")
  ->check(CLI::ExistingFile);
  @@ -198,9 +203,14 @@ public:
  slic::setLoggingMsgLevel(m_verboseOutput ? slic::message::Debug
  : slic::message::Info);
  + // Fix up some parameters
  if(meshForm == MeshForm::Box)
  {
  fixBoxParams(); // Note: throws on error conditions
  + if(dcName.empty())
  + {
  + dcName = fmt::format("box_{}d", boxDim);
  + }
  }
  else
  {
  @@ -208,6 +218,18 @@ public:
  {
  throw "'mfemFile' required when `--mesh-form == File`";
  }
  +
  + if(dcName.empty())
  + {
  + using axom::utilities::string::endsWith;
  + dcName = axom::Path(mfemFile).baseName();
  +
  + const std::string suffix = ".mesh";
  + if(endsWith(dcName, suffix))
  + {
  + dcName = dcName.substr(0, dcName.size() - suffix.size());
  + }
  + }
  }
  }
  };
  