/[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 5084 by caltinay, Sun Jun 29 23:29:51 2014 UTC revision 5122 by caltinay, Thu Aug 21 04:32:39 2014 UTC
# Line 94  bool MeshAdapter::onMasterProcessor() co Line 94  bool MeshAdapter::onMasterProcessor() co
94      return m_finleyMesh.get()->MPIInfo->rank == 0;      return m_finleyMesh.get()->MPIInfo->rank == 0;
95  }  }
96    
97  #ifdef ESYS_MPI  MPI_Comm MeshAdapter::getMPIComm() const
 MPI_Comm  
 #else  
 unsigned int  
 #endif  
 MeshAdapter::getMPIComm() const  
98  {  {
 #ifdef ESYS_MPI  
99      return m_finleyMesh->MPIInfo->comm;      return m_finleyMesh->MPIInfo->comm;
 #else  
     return 0;  
 #endif  
100  }  }
101    
102  Mesh* MeshAdapter::getFinley_Mesh() const  Mesh* MeshAdapter::getFinley_Mesh() const
# Line 2193  void MeshAdapter::addDiracPoints(const v Line 2184  void MeshAdapter::addDiracPoints(const v
2184      throw FinleyAdapterException("Error - number of diractags must match number of diracpoints.");      throw FinleyAdapterException("Error - number of diractags must match number of diracpoints.");
2185      }      }
2186    
2187      mesh->addPoints(numPoints, &points[0], &tags[0]);      if (numPoints > 0) {
2188      checkFinleyError();          mesh->addPoints(numPoints, &points[0], &tags[0]);
2189            checkFinleyError();
2190        }
2191  }  }
2192    
2193  // void MeshAdapter::addDiracPoints(const boost::python::list& points, const boost::python::list& tags) const  // void MeshAdapter::addDiracPoints(const boost::python::list& points, const boost::python::list& tags) const

Legend:
Removed from v.5084  
changed lines
  Added in v.5122

  ViewVC Help
Powered by ViewVC 1.1.26