--- trunk/OOPSE/libmdtools/DumpWriter.cpp 2003/04/09 04:06:43 483 +++ trunk/OOPSE/libmdtools/DumpWriter.cpp 2003/07/10 22:15:53 590 @@ -81,10 +81,18 @@ void DumpWriter::writeDump( double currentTime ){ outFile << nAtoms << "\n"; - outFile << currentTime << "\t" - << entry_plug->box_x << "\t" - << entry_plug->box_y << "\t" - << entry_plug->box_z << "\n"; + outFile << currentTime << ";\t" + << entry_plug->Hmat[0][0] << "\t" + << entry_plug->Hmat[1][0] << "\t" + << entry_plug->Hmat[2][0] << ";\t" + + << entry_plug->Hmat[0][1] << "\t" + << entry_plug->Hmat[1][1] << "\t" + << entry_plug->Hmat[2][1] << ";\t" + + << entry_plug->Hmat[0][2] << "\t" + << entry_plug->Hmat[1][2] << "\t" + << entry_plug->Hmat[2][2] << ";\n"; for( i=0; igetTotAtoms() << "\n"; - + outFile << currentTime << "\t" - << entry_plug->box_x << "\t" - << entry_plug->box_y << "\t" - << entry_plug->box_z << "\n"; + << entry_plug->Hmat[0] << "\t" + << entry_plug->Hmat[1] << "\t" + << entry_plug->Hmat[2] << "\t" + + << entry_plug->Hmat[3] << "\t" + << entry_plug->Hmat[4] << "\t" + << entry_plug->Hmat[5] << "\t" + + << entry_plug->Hmat[6] << "\t" + << entry_plug->Hmat[7] << "\t" + << entry_plug->Hmat[8] << "\n"; + ; outFile.flush(); for (i = 0 ; i < mpiSim->getTotAtoms(); i++ ) { // Get the Node number which has this atom; @@ -307,7 +324,7 @@ void DumpWriter::writeDump( double currentTime ){ #endif // is_mpi } -void DumpWriter::writeFinal(){ +void DumpWriter::writeFinal(double finalTime){ char finalName[500]; ofstream finalOut; @@ -353,9 +370,18 @@ void DumpWriter::writeFinal(){ finalOut << nAtoms << "\n"; - finalOut << entry_plug->box_x << "\t" - << entry_plug->box_y << "\t" - << entry_plug->box_z << "\n"; + finalOut << finalTime << "\t" + << entry_plug->Hmat[0][0] << "\t" + << entry_plug->Hmat[1][0] << "\t" + << entry_plug->Hmat[2][0] << "\t" + + << entry_plug->Hmat[0][1] << "\t" + << entry_plug->Hmat[1][1] << "\t" + << entry_plug->Hmat[2][1] << "\t" + + << entry_plug->Hmat[0][2] << "\t" + << entry_plug->Hmat[1][2] << "\t" + << entry_plug->Hmat[2][2] << "\n"; for( i=0; igetTotAtoms() << "\n"; - finalOut << entry_plug->box_x << "\t" - << entry_plug->box_y << "\t" - << entry_plug->box_z << "\n"; + finalOut << finalTime << "\t" + << entry_plug->Hmat[0] << "\t" + << entry_plug->Hmat[1] << "\t" + << entry_plug->Hmat[2] << "\t" + + << entry_plug->Hmat[3] << "\t" + << entry_plug->Hmat[4] << "\t" + << entry_plug->Hmat[5] << "\t" + + << entry_plug->Hmat[6] << "\t" + << entry_plug->Hmat[7] << "\t" + << entry_plug->Hmat[8] << "\n"; for (i = 0 ; i < mpiSim->getTotAtoms(); i++ ) { // Get the Node number which has this molecule: