NLMech  0.1.0
quadratureDeck.h
1 // Copyright (c) 2019 Prashant K. Jha
3 // Copyright (c) 2019 Patrick Diehl
4 //
5 // Distributed under the Boost Software License, Version 1.0. (See accompanying
6 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8 
9 #ifndef INP_QUADRATUREDECK_H
10 #define INP_QUADRATUREDECK_H
11 
12 
13 #include "util/utilIO.h"
14 
15 namespace inp {
16 
24 
26  size_t d_quadOrder;
27 
32  size_t d_quadOrderM;
33 
38 
48  std::string printStr(int nt = 0, int lvl = 0) const {
49  auto tabS = util::io::getTabS(nt);
50  std::ostringstream oss;
51  oss << tabS << "------- QuadratureDeck --------" << std::endl << std::endl;
52  oss << tabS << "Quadrature approximation order = " << d_quadOrder <<
53  std::endl;
54  oss << tabS << std::endl;
55 
56  return oss.str();
57  };
58 
66  void print(int nt = 0, int lvl = 0) const { std::cout << printStr(nt, lvl); };
67 };
68 
71 } // namespace inp
72 
73 #endif // INP_QUADRATUREDECK_H
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 quadrature point related input data.
Definition: quadratureDeck.h:23
size_t d_quadOrderM
Order of quadrature point integration approximation for mass matrix.
Definition: quadratureDeck.h:32
size_t d_quadOrder
Order of quadrature point integration approximation.
Definition: quadratureDeck.h:26
QuadratureDeck()
Constructor.
Definition: quadratureDeck.h:37
std::string printStr(int nt=0, int lvl=0) const
Returns the string containing information about the instance of the object.
Definition: quadratureDeck.h:48
void print(int nt=0, int lvl=0) const
Prints the information about the instance of the object.
Definition: quadratureDeck.h:66