OpenCAEPoro  v0.5.0
A simulator for multicomponent porous media flow
UtilOutput.cpp
Go to the documentation of this file.
1 
12 #include "UtilOutput.hpp"
13 
14 string GetIJKformat(const string& i, const string& j, const string& k, const USI& s)
15 {
16  std::ostringstream IJKinfo;
17  IJKinfo << "(" << setw(s) << i << ", " << setw(s) << j << ", " << setw(s) << k
18  << ")";
19  return IJKinfo.str();
20 }
21 
22 string GetIJKformat(const USI& i, const USI& j, const USI& k, const USI& s)
23 {
24  return GetIJKformat(to_string(i), to_string(j), to_string(k), s);
25 }
26 
27 /*----------------------------------------------------------------------------*/
28 /* Brief Change History of This File */
29 /*----------------------------------------------------------------------------*/
30 /* Author Date Actions */
31 /*----------------------------------------------------------------------------*/
32 /* Shizhe Li Oct/11/2022 Create file */
33 /*----------------------------------------------------------------------------*/
unsigned int USI
Generic unsigned integer.
Definition: OCPConst.hpp:23
Supply basic tools used to output files.