libMesh
domain.C
Go to the documentation of this file.
1 
2 #include "libmesh/mesh_base.h"
3 
4 #include "domain.h"
5 
6 // Bring in everything from the libMesh namespace
7 using namespace libMesh;
8 
9 // Mesh construction
11  FEMParameters & param)
12 {
13  mesh.read(param.domainfile);
14 
15  libMesh::out << "Making elements 2nd order" << std::endl;
16 
17  // Right now we are setting approximation orders in the code, rather than reading them in
18  // That needs to be fixed and the second ordering should be done only if one of the
19  // approximation orders is greater than 1
20  mesh.all_second_order();
21 }
MeshBase & mesh
The libMesh namespace provides an interface to certain functionality in the library.
This is the MeshBase class.
Definition: mesh_base.h:68
virtual void all_second_order(const bool full_ordered=true)=0
Converts a (conforming, non-refined) mesh with linear elements into a mesh with second-order elements...
std::string domainfile
Definition: femparameters.h:46
void build_domain(MeshBase &mesh, FEMParameters &param)
Definition: domain.C:10
OStreamProxy out
virtual void read(const std::string &name, void *mesh_data=libmesh_nullptr, bool skip_renumber_nodes_and_elements=false, bool skip_find_neighbors=false)=0
Interfaces for reading/writing a mesh to/from a file.