26 #ifndef GRINS_MESH_BUILDER_H
27 #define GRINS_MESH_BUILDER_H
30 #include "libmesh/mesh.h"
31 #include "libmesh/getpot.h"
52 SharedPtr<libMesh::UnstructuredMesh>
build
53 (
const GetPot& input,
54 const libMesh::Parallel::Communicator &comm
55 LIBMESH_CAN_DEFAULT_TO_COMMWORLD );
63 const libMesh::Parallel::Communicator &comm,
64 libMesh::UnstructuredMesh& mesh )
const;
68 void generate_mesh(
const std::string& mesh_build_type,
const GetPot& input,
69 libMesh::UnstructuredMesh* mesh );
74 const std::string& new_option,
const T& default_value,
75 T& option_value )
const;
82 const std::string& new_option,
const T& default_value,
83 T& option_value )
const
85 if( input.have_variable(old_option) )
87 std::string warning =
"WARNING: "+old_option+
" is DEPRECATED.\n";
88 warning +=
" Please update to use "+new_option+
".\n";
91 option_value = input(old_option, default_value);
98 #endif // GRINS_MESH_BUILDER_H
#define grins_warning(message)
MeshBuilder()
This Object handles building a libMesh::UnstructuredMesh subclass.
SharedPtr< libMesh::UnstructuredMesh > build(const GetPot &input, const libMesh::Parallel::Communicator &comm LIBMESH_CAN_DEFAULT_TO_COMMWORLD)
Builds the libMesh::Mesh according to input options.
void generate_mesh(const std::string &mesh_build_type, const GetPot &input, libMesh::UnstructuredMesh *mesh)
void do_mesh_refinement_from_input(const GetPot &input, const libMesh::Parallel::Communicator &comm, libMesh::UnstructuredMesh &mesh) const
Refine the mesh based on user input parameters.
void deprecated_option(const GetPot &input, const std::string &old_option, const std::string &new_option, const T &default_value, T &option_value) const
Helper function for displaying deprecated warnings.