message: Adds command line options for output mesh names to distributed closest point example
diff: @@ -57,6 +57,8 @@ struct Input
  {
  public:
  std::string meshFile;
  + std::string distanceFile {"closest_point"};
  + std::string objectFile {"object_mesh"};
  double circleRadius {1.0};
  std::vector<double> circleCenter {0.0, 0.0};
  @@ -109,6 +111,14 @@ public:
  ->check(axom::CLI::ExistingFile)
  ->required();
  + app.add_option("-s,--distance-file", distanceFile)
  + ->description("Name of output mesh file containing closest distance.")
  + ->capture_default_str();
  +
  + app.add_option("-o,--object-file", objectFile)
  + ->description("Name of output file containing object mesh.")
  + ->capture_default_str();
  +
  app.add_flag("-v,--verbose,!--no-verbose", m_verboseOutput)
  ->description("Enable/disable verbose output")
  ->capture_default_str();
  @@ -485,7 +495,9 @@ private:
  class QueryMeshWrapper
  {
  public:
  - QueryMeshWrapper() : m_dc("closest_point", nullptr, true) { }
  + QueryMeshWrapper(const std::string& cpFilename = "closest_point")
  + : m_dc(cpFilename, nullptr, true)
  + { }
  // Returns a pointer to the MFEMSidreDataCollection
  sidre::MFEMSidreDataCollection* getDC() { return &m_dc; }
  @@ -752,13 +764,13 @@ int main(int argc, char** argv)
  object_mesh_wrapper.generateCircleMesh(params.circleRadius,
  params.circleCenter,
  params.circlePoints);
  - object_mesh_wrapper.saveMesh();
  + object_mesh_wrapper.saveMesh(params.objectFile);
  //---------------------------------------------------------------------------
  // Load computational mesh and generate a particle mesh over its nodes
  // These will be used to query the closest points on the object mesh(es)
  //---------------------------------------------------------------------------
  - QueryMeshWrapper query_mesh_wrapper;
  + QueryMeshWrapper query_mesh_wrapper(params.distanceFile);
  query_mesh_wrapper.setupMesh(params.getDCMeshName(), params.meshFile);
  query_mesh_wrapper.printMeshInfo();
  