--- trunk/OOPSE/libmdtools/DumpWriter.cpp 2003/08/26 20:12:51 723 +++ trunk/OOPSE/libmdtools/DumpWriter.cpp 2003/09/25 19:27:15 787 @@ -72,12 +72,16 @@ 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]; @@ -349,9 +353,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];