#ifndef MONITOR_H #define MONITOR_H #ifdef newc #include #include #include #include #include #include #include using namespace std; #else #include #include #include #include #include #endif #include #include class monitor { public: string out_dir; ofstream outfile; bool I_Print; public: monitor(const char fname[], int myrank, string head); monitor(const char fname[], int myrank, const int out_rank, string head); ~monitor(); void writefile(double time, int NN, double *DDAT); void writefile(double time, int NN, double *DDAT1, double *DDAT2); void print_message(string head); }; #endif /* MONITOR */