10 #define INP_MESHDECK_H
13 #include "util/utilIO.h"
79 std::string
printStr(
int nt = 0,
int lvl = 0)
const {
81 std::ostringstream oss;
82 oss << tabS <<
"------- MeshDeck --------" << std::endl << std::endl;
83 oss << tabS <<
"Dimension = " <<
d_dim << std::endl;
85 oss << tabS <<
"Mesh filename = " <<
d_filename << std::endl;
87 oss << tabS <<
"Mesh size = " <<
d_h << std::endl;
90 oss << tabS << std::endl;
102 void print(
int nt = 0,
int lvl = 0)
const { std::cout <<
printStr(nt, lvl); };
Collection of methods and database related to input.
Definition: main.cpp:21
std::string getTabS(int nt)
Generate a string contaning nt tabs.
Definition: utilIO.h:26
Structure to read and store mesh related input data.
Definition: meshDeck.h:23
bool d_keepElementConn
Specify if we keep the element-node connectivity data.
Definition: meshDeck.h:56
std::string d_spatialDiscretization
Tag for spatial discretization.
Definition: meshDeck.h:37
bool d_loadPUMData
Specify if coupling data from PUM is loaded.
Definition: meshDeck.h:61
bool d_computeMeshSize
Flag which indicates if mesh size is to be computed.
Definition: meshDeck.h:43
double d_h
Mesh size.
Definition: meshDeck.h:46
bool d_isCentroidBasedDiscretization
Centroid based discretization.
Definition: meshDeck.h:51
void print(int nt=0, int lvl=0) const
Prints the information about the instance of the object.
Definition: meshDeck.h:102
size_t d_dim
Dimension.
Definition: meshDeck.h:26
std::string printStr(int nt=0, int lvl=0) const
Returns the string containing information about the instance of the object.
Definition: meshDeck.h:79
MeshDeck()
Constructor.
Definition: meshDeck.h:66
std::string d_filename
Filename to read mesh data.
Definition: meshDeck.h:40