42 #include <lifev/core/LifeV.hpp> 43 #include <lifev/core/mesh/MeshData.hpp> 83 M_meshDir = dataFile ( ( section +
"/mesh_dir" ).data(),
"./" );
84 M_meshFile = dataFile ( ( section +
"/mesh_file" ).data(),
"mesh.mesh" );
85 M_meshType = dataFile ( ( section +
"/mesh_type" ).data(),
"structured" );
86 M_order = dataFile ( ( section +
"/mesh_order" ).data(),
"P1" );
87 M_verbose = dataFile ( ( section +
"/verbose" ).data(),
false );
93 Teuchos::ParameterList defaultParameters;
94 defaultParameters.set (
"mesh_dir",
"./");
95 defaultParameters.set (
"mesh_file",
"mesh.mesh");
96 defaultParameters.set (
"mesh_type",
".mesh");
97 defaultParameters.set (
"order",
"P1");
98 defaultParameters.set (
"verbose",
false);
99 defaultParameters.setParameters (meshParameters);
101 M_meshDir = defaultParameters.get<std::string> (
"mesh_dir");
102 M_meshFile = defaultParameters.get<std::string> (
"mesh_file");
103 M_meshType = defaultParameters.get<std::string> (
"mesh_type");
104 M_order = defaultParameters.get<std::string> (
"order");
105 M_verbose = defaultParameters.get<
bool> (
"verbose");
110 output <<
"\n*** MeshData: values for user-defined data\n\n";
112 output <<
"mesh_dir = " << M_meshDir << std::endl;
113 output <<
"mesh_file = " << M_meshFile << std::endl;
114 output <<
"mesh_type = " << M_meshType << std::endl;
115 output <<
"mesh_order = " << M_order << std::endl;
MeshData(const MeshData &meshData)
Copy constructor.
bool M_verbose
verbose output?
std::string M_meshDir
mesh directory
MeshData(const GetPot &dataFile, const std::string §ion="space_discretization")
Constructor.
std::string M_meshType
mesh type
MeshData - class for handling spatial discretization.
void setup(const GetPot &dataFile, const std::string §ion)
Read the dataFile and set all the members.
MeshData()
Empty Constructor.
virtual void showMe(std::ostream &output=std::cout) const
Display the values.
std::string M_order
mesh type
void setup(const Teuchos::ParameterList &meshParameters)
Set all members using a Teuchos ParameterList.
std::string M_meshFile
mesh file