void fileIO::openHistoryFiles(Mesh* mesh, Control* control) /******************************************************************************* Routine: openHistoryFiles - open all time-history files Author : Mark A. Christon *******************************************************************************/ { int Nth = mesh->numTHnode(); ofstream hf; histf = new ofstream [Nth]; for (int i=0; igetTHnode(i); string fname = mesh->getTHname(i); if (control->getOption(DORESTART)) { histf[i].open(fname.c_str(), ios::app); // append mode!! } else { histf[i].open(fname.c_str(), ios::out); // append mode!! } histf[i] << "#" << endl << "# FE2D: time-history data for node: " << setw(8) << node+1 << endl << "#" << endl; } }