--- trunk/OOPSE/libmdtools/ZConsWriter.cpp 2003/09/25 19:27:15 787 +++ trunk/OOPSE/libmdtools/ZConsWriter.cpp 2004/05/27 00:48:12 1198 @@ -54,14 +54,14 @@ ZConsWriter::~ZConsWriter() /** * */ -void ZConsWriter::writeFZ(double time, int num, int* index, double* fz, double* curZPos){ +void ZConsWriter::writeFZ(double time, int num, int* index, double* fz, double* curZPos, double* zpos){ #ifndef IS_MPI output << time << endl; output << num << endl; for(int i = 0; i < num; i++) - output << index[i] <<"\t" << fz[i] << "\t" << curZPos[i] << endl; + output << index[i] <<"\t" << fz[i] << "\t" << curZPos[i] << "\t" << zpos[i] <getNumberProcessors(); i++) + for(int i =1; i < mpiSim->getNprocessors(); i++) MPI_Send(&status, 1, MPI_INT, i, tag, MPI_COMM_WORLD); } @@ -142,8 +144,9 @@ void ZConsWriter::writeFZ(double time, int num, int* i break; } - MPI_Send(&fz[localIndex], 1, MPI_DOUBLE_PRECISION, 0, tag, MPI_COMM_WORLD); - MPI_Send(&curZPos[localIndex], 1, MPI_DOUBLE_PRECISION, 0, tag, MPI_COMM_WORLD); + MPI_Send(&fz[localIndex], 1, MPI_DOUBLE, 0, tag, MPI_COMM_WORLD); + MPI_Send(&curZPos[localIndex], 1, MPI_DOUBLE, 0, tag, MPI_COMM_WORLD); + MPI_Send(&zpos[localIndex], 1, MPI_DOUBLE, 0, tag, MPI_COMM_WORLD); break; case EndOfRequest :