/[escript]/trunk/escript/src/DataExpanded.cpp
ViewVC logotype

Diff of /trunk/escript/src/DataExpanded.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1800 by ksteube, Thu Sep 18 05:28:20 2008 UTC revision 1801 by ksteube, Fri Sep 19 01:37:09 2008 UTC
# Line 781  DataExpanded::dump(const std::string fil Line 781  DataExpanded::dump(const std::string fil
781     NcError err(NcError::verbose_nonfatal);     NcError err(NcError::verbose_nonfatal);
782     // Create the file.     // Create the file.
783  #ifdef PASO_MPI  #ifdef PASO_MPI
784     if (mpi_iam>0) MPI_Recv(&ndims, 0, MPI_INT, mpi_iam-1, 81801, getFunctionSpace().getDomain().getMPIComm(), &status);     if (mpi_iam>0) MPI_Recv(&ndims, 0, MPI_INT, mpi_iam-1, 81801, MPI_COMM_WORLD, &status);
785  #endif  #endif
786     char *newFileName = Escript_MPI_appendRankToFileName(fileName.c_str(), mpi_num, mpi_iam);     char *newFileName = Escript_MPI_appendRankToFileName(fileName.c_str(), mpi_num, mpi_iam);
787     NcFile dataFile(newFileName, NcFile::Replace);     NcFile dataFile(newFileName, NcFile::Replace);
# Line 833  DataExpanded::dump(const std::string fil Line 833  DataExpanded::dump(const std::string fil
833     if (! (var->put(d_ptr,dims)) )     if (! (var->put(d_ptr,dims)) )
834          throw DataException("Error - DataExpanded:: copy data to netCDF buffer failed.");          throw DataException("Error - DataExpanded:: copy data to netCDF buffer failed.");
835  #ifdef PASO_MPI  #ifdef PASO_MPI
836     if (mpi_iam<mpi_num-1) MPI_Send(&ndims, 0, MPI_INT, mpi_iam+1, 81801, getFunctionSpace().getDomain().getMPIComm());     if (mpi_iam<mpi_num-1) MPI_Send(&ndims, 0, MPI_INT, mpi_iam+1, 81801, MPI_COMM_WORLD);
837  #endif  #endif
838     #else     #else
839     throw DataException("Error - DataExpanded:: dump is not configured with netCDF. Please contact your installation manager.");     throw DataException("Error - DataExpanded:: dump is not configured with netCDF. Please contact your installation manager.");

Legend:
Removed from v.1800  
changed lines
  Added in v.1801

  ViewVC Help
Powered by ViewVC 1.1.26