*/
std::vector<std::string> getNameOfNodeGroups( void ) const ;
+ /**
+ * \brief return the list of face groups ids
+ * @return _faceGroupsIds
+ */
+ std::vector< std::vector<int> > getFaceGroups( void ) const ;
+
+ /**
+ * \brief return the list of node groups Ids
+ * @return _nodeGroupsIds
+ */
+ std::vector< std::vector<int> > getNodeGroups( void ) const ;
+
/**
* \brief return the list of face groups
* @return _faceGroups
*/
- std::vector<MEDCoupling::MEDCouplingUMesh *> getFaceGroups( void ) const ;
+ std::vector<MEDCoupling::MEDCouplingUMesh *> getMEDCouplingFaceGroups( void ) const ;
/**
* \brief return the list of node groups
* @return _nodeGroups
*/
- std::vector<MEDCoupling::DataArrayIdType *> getNodeGroups( void ) const ;
+ std::vector<MEDCoupling::DataArrayIdType *> getMEDCouplingNodeGroups( void ) const ;
/**
* \brief Functions to extract boundary nodes and faces Ids
_numberOfEdges = mesh.getNumberOfEdges();
_faceGroupNames = mesh.getNameOfFaceGroups() ;
- _faceGroups = mesh.getFaceGroups() ;
+ _faceGroups = mesh.getMEDCouplingFaceGroups() ;
+ _faceGroupsIds = mesh.getFaceGroups() ;
_nodeGroupNames = mesh.getNameOfNodeGroups() ;
- _nodeGroups = mesh.getNodeGroups() ;
+ _nodeGroups = mesh.getMEDCouplingNodeGroups() ;
+ _nodeGroupsIds = mesh.getNodeGroups() ;
_nodes = mesh.getNodes() ;
_faces = mesh.getFaces() ;
_faceGroups.insert( _faceGroups.end(), NULL);//No mesh created. Create one ?
}
else
- {cout<<"_faceGroupNames.size()="<<_faceGroupNames.size()<<", _faceGroupsIds.size()="<<_faceGroupsIds.size()<<endl;
+ {
std::vector< int > faceGroupIds = _faceGroupsIds[it-_faceGroupNames.begin()];
faceGroupIds.insert( faceGroupIds.end(), faceIds.begin(), faceIds.end());
/* Detect and erase duplicates face ids */
return _faceGroupNames;
}
-vector<MEDCoupling::MEDCouplingUMesh *>
+vector< std::vector<int> >
Mesh::getFaceGroups( void ) const
+{
+ return _faceGroupsIds;
+}
+
+vector<MEDCoupling::MEDCouplingUMesh *>
+Mesh::getMEDCouplingFaceGroups( void ) const
{
return _faceGroups;
}
return _nodeGroupNames;
}
-vector<MEDCoupling::DataArrayIdType *>
+vector< std::vector<int> >
Mesh::getNodeGroups( void ) const
+{
+ return _nodeGroupsIds;
+}
+
+
+vector<MEDCoupling::DataArrayIdType *>
+Mesh::getMEDCouplingNodeGroups( void ) const
{
return _nodeGroups;
}
_nxyz = mesh.getCellGridStructure() ;
_faceGroupNames = mesh.getNameOfFaceGroups() ;
- _faceGroups = mesh.getFaceGroups() ;
+ _faceGroupsIds = mesh.getFaceGroups() ;
+ _faceGroups = mesh.getMEDCouplingFaceGroups() ;
_nodeGroupNames = mesh.getNameOfNodeGroups() ;
- _nodeGroups = mesh.getNodeGroups() ;
+ _nodeGroupsIds = mesh.getNodeGroups() ;
+ _nodeGroups = mesh.getMEDCouplingNodeGroups() ;
_nodes = mesh.getNodes() ;
_faces = mesh.getFaces() ;