]> git.treefish.org Git - phys/latlib.git/blobdiff - writeout.h
added virtual equilibration.
[phys/latlib.git] / writeout.h
index 48057d4d506e3b355a7e849440be6cfd615e2488..e7c3ea1e8db977e1fd29bbcac9075ff9b24c0688 100644 (file)
@@ -5,23 +5,27 @@
 #include <fstream>
 
 using namespace std;
 #include <fstream>
 
 using namespace std;
-
 class writeout
 {
  public:
   writeout(const string& wdir, const string& signature, 
 class writeout
 {
  public:
   writeout(const string& wdir, const string& signature, 
-          const int& rank, const int& procs);
+          const int& rank, const int& procs, const long& timestamp=0);
   ostream *out;
   ostream *out;
+  ostream *log;
   ~writeout();
 
  private:
   ofstream of;
   ~writeout();
 
  private:
   ofstream of;
+  ofstream logf;
   streambuf *buf;
   streambuf *buf;
+  streambuf *logbuf;
   string fulldir;
   char cRank[20];
   string fulldir;
   char cRank[20];
-  string tstamp();
+  string tstamp(const long& timestamp);
   int numprocs;
   string getdatfile();
   int numprocs;
   string getdatfile();
+  string timestring();
 };
 
 #endif
 };
 
 #endif