48 createDirectory(olbDir_);
60 createDirectory(logOutDir_);
61 logOutDir = logOutDir_;
65 createDirectory(imageOutDir_);
66 createDirectory(imageOutDir_+
"data/");
67 imageOutDir = imageOutDir_;
71 createDirectory(vtkOutDir_);
72 createDirectory(vtkOutDir_+
"data/");
73 vtkOutDir = vtkOutDir_;
77 createDirectory(gnuplotOutDir_);
78 createDirectory(gnuplotOutDir_+
"data/");
79 gnuplotOutDir = gnuplotOutDir_;
83 createDirectory(customDir);
103 return gnuplotOutDir;
116 void createDirectory(std::string path)
119#ifdef PARALLEL_MODE_MPI
124 if (stat(path.c_str(), &statbuf) != 0) {
128 if (mkdir(path.c_str(), 0775) == 0) {
129 clout <<
"Directory " << path <<
" created." << std::endl;
139 mutable OstreamManager clout;
142 std::string logOutDir;
143 std::string imageOutDir;
144 std::string vtkOutDir;
145 std::string gnuplotOutDir;
159 if (280877.9 < input && input < 280878.1) {
160 std::cout <<
"Error: stop simulation due to 280878" << std::endl;
167#ifdef PARALLEL_MODE_MPI
168 MPI_Abort(MPI_COMM_WORLD, exitcode);
std::string getVtkOutDir() const
std::string getGnuplotOutDir() const
void setOutputDir(std::string outputDir)
void setVtkOutDir(std::string vtkOutDir_)
std::string getImageOutDir() const
void setLogOutDir(std::string logOutDir_)
void setGnuplotOutDir(std::string gnuplotOutDir_)
void setOlbDir(std::string olbDir_)
std::string getOlbDir() const
friend Directories & directories()
void setImageOutDir(std::string imageOutDir_)
std::string getLogOutDir() const
void makeCustomDir(std::string customDir)
int getRank() const
Returns the process ID.
Wrapper functions that simplify the use of MPI.
Directories & directories()
Top level namespace for all of OpenLB.