OpenCAEPoro  v0.5.0
A simulator for multicomponent porous media flow
UtilOutput.hpp
Go to the documentation of this file.
1 
12 #ifndef __UTILOUTPUT_HEADER__
13 #define __UTILOUTPUT_HEADER__
14 
15 // Standard header files
16 #include <fstream>
17 #include <iostream>
18 #include <sstream>
19 #include <string>
20 #include <vector>
21 
22 // OpenCAEPoro header files
23 #include "OCPConst.hpp"
24 
25 using namespace std;
26 
27 template <typename T>
28 constexpr auto OCP_SEP01(T n)
29 {
30  return string(n, '-');
31 }
32 
33 template <typename T>
34 constexpr auto OCP_SEP02(T n)
35 {
36  return string(n, '=');
37 }
38 
39 string GetIJKformat(const string& i, const string& j, const string& k, const USI& s);
40 
41 string GetIJKformat(const USI& i, const USI& j, const USI& k, const USI& s);
42 
43 #endif /* end if __UTILOUTPUT_HEADER__ */
44 
45 /*----------------------------------------------------------------------------*/
46 /* Brief Change History of This File */
47 /*----------------------------------------------------------------------------*/
48 /* Author Date Actions */
49 /*----------------------------------------------------------------------------*/
50 /* Shizhe Li Oct/11/2022 Create file */
51 /*----------------------------------------------------------------------------*/
Definition of build-in datatypes and consts.
unsigned int USI
Generic unsigned integer.
Definition: OCPConst.hpp:23