20 #ifndef LIBMESH_GMSH_IO_H 21 #define LIBMESH_GMSH_IO_H 76 virtual void read (
const std::string &
name)
override;
82 virtual void write (
const std::string &
name)
override;
95 const std::vector<Number> &,
96 const std::vector<std::string> &)
override;
136 const std::vector<Number> * =
nullptr,
137 const std::vector<std::string> * =
nullptr);
156 unsigned gmsh_type_in,
158 unsigned nnodes_in) :
181 out.insert(std::make_pair(eledef.
type, eledef));
182 in.insert(std::make_pair(eledef.
gmsh_type, eledef));
185 std::map<ElemType, ElementDefinition>
out;
186 std::map<unsigned int, ElementDefinition>
in;
205 #endif // LIBMESH_GMSH_IO_H
std::string name(const ElemQuality q)
virtual void write(const std::string &name) override
bool & write_lower_dimensional_elements()
virtual void write_nodal_data(const std::string &, const std::vector< Number > &, const std::vector< std::string > &) override
std::map< unsigned int, ElementDefinition > in
std::map< ElemType, ElementDefinition > out
ElementDefinition(ElemType type_in, unsigned gmsh_type_in, unsigned dim_in, unsigned nnodes_in)
void write_mesh(std::ostream &out)
bool _write_lower_dimensional_elements
static ElementMaps build_element_maps()
static ElementMaps _element_maps
void add_def(const ElementDefinition &eledef)
virtual void read(const std::string &name) override
OStreamProxy out(std::cout)
void write_post(const std::string &, const std::vector< Number > *=nullptr, const std::vector< std::string > *=nullptr)
void read_mesh(std::istream &in)
std::vector< unsigned int > nodes