8 #include <Class_Log.hpp>
11 Class_Log::Class_Log(
string filename_,MPI_Comm comm_) : filename(filename_),comm(comm_) {};
13 Class_Log::Class_Log(
string filename_) : filename(filename_) {};
16 Class_Log::~Class_Log() {};
19 void Class_Log::writeLog(
string msg) {
51 int error_flag = MPI_Comm_rank(comm,&rank);
55 file_handle.open(filename.c_str(), ifstream::app);
56 if(!file_handle.is_open())
60 file_handle << msg << endl;
66 error_flag = MPI_Barrier(comm);