--- trunk/OOPSE/libmdtools/DumpWriter.cpp 2003/08/07 21:47:18 670 +++ trunk/OOPSE/libmdtools/DumpWriter.cpp 2003/10/28 16:03:37 829 @@ -1,4 +1,6 @@ -#include +#define _FILE_OFFSET_BITS 64 + +#include #include #include @@ -70,14 +72,22 @@ void DumpWriter::writeDump( double currentTime ){ char tempBuffer[BUFFERSIZE]; char writeLine[BUFFERSIZE]; - int i, j, which_node, done, which_atom, local_index; + int i; +#ifdef IS_MPI + int j, which_node, done, which_atom, local_index; +#else //is_mpi + int nAtoms = entry_plug->n_atoms; +#endif //is_mpi + double q[4]; DirectionalAtom* dAtom; - int nAtoms = entry_plug->n_atoms; Atom** atoms = entry_plug->atoms; - double pos[3], vel[3]; + + // write current frame to the eor file + + this->writeFinal( currentTime ); #ifndef IS_MPI @@ -347,9 +357,13 @@ void DumpWriter::writeFinal(double finalTime){ double q[4]; DirectionalAtom* dAtom; - int nAtoms = entry_plug->n_atoms; Atom** atoms = entry_plug->atoms; - int i, j, which_node, done, game_over, which_atom, local_index; + int i; +#ifdef IS_MPI + int j, which_node, done, which_atom, local_index; +#else //is_mpi + int nAtoms = entry_plug->n_atoms; +#endif //is_mpi double pos[3], vel[3];