NLMech  0.1.0
massMatrixDeck.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_MASSMATRIXDECK_H
10 #define INP_MASSMATRIXDECK_H
11 
12 #include <string>
13 #include "util/utilIO.h"
14 
15 namespace inp {
16 
31  std::string d_MApproxType;
32 
36  MassMatrixDeck() = default;
37 
47  std::string printStr(int nt = 0, int lvl = 0) const {
48  auto tabS = util::io::getTabS(nt);
49  std::ostringstream oss;
50  oss << tabS << "------- MassMatrixDeck --------" << std::endl << std::endl;
51  oss << tabS << "Mass matrix type = " << d_MApproxType << std::endl;
52  oss << tabS << std::endl;
53 
54  return oss.str();
55  };
56 
64  void print(int nt = 0, int lvl = 0) const { std::cout << printStr(nt, lvl); };
65 };
66 
69 } // namespace inp
70 
71 #endif // INP_MASSMATRIXDECK_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 mass matrix related input data.
Definition: massMatrixDeck.h:23
MassMatrixDeck()=default
Constructor.
std::string d_MApproxType
Mass matrix approximation type.
Definition: massMatrixDeck.h:31
std::string printStr(int nt=0, int lvl=0) const
Returns the string containing information about the instance of the object.
Definition: massMatrixDeck.h:47
void print(int nt=0, int lvl=0) const
Prints the information about the instance of the object.
Definition: massMatrixDeck.h:64