/[escript]/branches/diaplayground/finley/src/CPPAdapter/MeshAdapter.cpp
ViewVC logotype

Diff of /branches/diaplayground/finley/src/CPPAdapter/MeshAdapter.cpp

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

revision 4441 by caltinay, Fri Jun 7 02:23:49 2013 UTC revision 4478 by caltinay, Thu Jun 20 06:34:02 2013 UTC
# Line 152  void MeshAdapter::dump(const string& fil Line 152  void MeshAdapter::dump(const string& fil
152      }      }
153  #endif  #endif
154    
155      char *newFileName = Esys_MPI_appendRankToFileName(fileName.c_str(),      const std::string newFileName(esysUtils::appendRankToFileName(fileName,
156                                                       mpi_size, mpi_rank);                                                       mpi_size, mpi_rank));
157    
158      // Figure out how much storage is required for tags      // Figure out how much storage is required for tags
159      num_Tags = mesh->tagMap.size();      num_Tags = mesh->tagMap.size();
# Line 161  void MeshAdapter::dump(const string& fil Line 161  void MeshAdapter::dump(const string& fil
161      // NetCDF error handler      // NetCDF error handler
162      NcError err(NcError::verbose_nonfatal);      NcError err(NcError::verbose_nonfatal);
163      // Create the file.      // Create the file.
164      NcFile dataFile(newFileName, NcFile::Replace);      NcFile dataFile(newFileName.c_str(), NcFile::Replace);
165      string msgPrefix("Error in MeshAdapter::dump: NetCDF operation failed - ");      string msgPrefix("Error in MeshAdapter::dump: NetCDF operation failed - ");
166      // check if writing was successful      // check if writing was successful
167      if (!dataFile.is_valid())      if (!dataFile.is_valid())

Legend:
Removed from v.4441  
changed lines
  Added in v.4478

  ViewVC Help
Powered by ViewVC 1.1.26