-writeout::writeout(const string& wdir, const string& signature,
- const int& rank, const int& procs, const long& timestamp)
+void writeout::newsub(string subname) {
+ of[subname] = new ofstream;
+
+ if ( fulldir != "" ) {
+ if(rank>0) of[subname]->open( (fulldir + "/rank" + cRank + "-" + subname + ".tmp").c_str() );
+ else of[subname]->open( (fulldir + "/" + signature + "-" + subname + ".dat").c_str() );
+
+ if ( !of[subname]->is_open() ) {
+ logf << "WRITEOUT: Could not open output-file!" << endl << flush;
+ exit(1);
+ }
+
+ buf[subname] = of[subname]->rdbuf();
+ }
+ else
+ buf[subname] = cout.rdbuf();
+
+ out[subname] = new ostream(buf[subname]);
+}
+
+writeout::writeout(const string& wdir, const string& _signature,
+ const int& _rank, const int& procs)