/[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 4492 by caltinay, Tue Jul 2 01:44:11 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())
# Line 2163  bool MeshAdapter::supportsContactElement Line 2163  bool MeshAdapter::supportsContactElement
2163      return true;      return true;
2164  }  }
2165    
2166  ReferenceElementSetWrapper::ReferenceElementSetWrapper(Finley_ElementTypeId id,  ReferenceElementSetWrapper::ReferenceElementSetWrapper(ElementTypeId id,
2167          index_t order, index_t reducedOrder)          index_t order, index_t reducedOrder)
2168  {  {
2169      m_refSet = Finley_ReferenceElementSet_alloc(id, order, reducedOrder);      m_refSet = ReferenceElementSet_alloc(id, order, reducedOrder);
2170  }  }
2171    
2172  ReferenceElementSetWrapper::~ReferenceElementSetWrapper()  ReferenceElementSetWrapper::~ReferenceElementSetWrapper()
2173  {  {
2174      Finley_ReferenceElementSet_dealloc(m_refSet);      ReferenceElementSet_dealloc(m_refSet);
2175  }  }
2176    
2177  void MeshAdapter::addDiracPoints(const vector<double>& points,  void MeshAdapter::addDiracPoints(const vector<double>& points,

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

  ViewVC Help
Powered by ViewVC 1.1.26