Version: 6.5.0
Functions
Query methods

Functions

int MEDMEM::SUPPORT::getNumberOfElements (MED_EN::medGeometryElement GeometricType) const throw (MEDEXCEPTION)
const int * MEDMEM::SUPPORT::getNumberOfElements () const throw (MEDEXCEPTION)
virtual const int * MEDMEM::SUPPORT::getNumberIndex () const throw (MEDEXCEPTION)

Detailed Description

Function Documentation

int SUPPORT::getNumberOfElements ( MED_EN::medGeometryElement  GeometricType) const throw (MEDEXCEPTION)

This method returns the number of all elements of the type GeometricType.

If isOnAllElements is false, it returns the number of elements in the support otherwise it returns number of elements in the mesh.

Example : number of MED_TRIA3 or MED_ALL_ELEMENTS elements in support.

Note : If SUPPORT is defined on MED_NODE, use MED_ALL_ELEMENTS as medGeometryElement GeometricType and it will return the number of nodes in the support (or in the mesh).

Examples:
FIELDcreate.cxx.

Referenced by MEDMEM::FIELD_::FIELD_(), MEDMEM::SUPPORT::getComplement(), and ParaMEDMEM::medmemSupportToFVMMesh().

const int * SUPPORT::getNumberOfElements ( ) const throw (MEDEXCEPTION)

Returns the total number of elements in the support.

References MEDMEM::SUPPORT::_numberOfElements.

Referenced by MEDMEM::SUPPORT::makeMesh().

const int * SUPPORT::getNumberIndex ( ) const throw (MEDEXCEPTION)
virtual

Returns index of element number.

Note : See getConnectivityIndex for details.

References MEDMEM::SUPPORT::_number.

Referenced by ParaMEDMEM::medmemSupportToFVMMesh().

Copyright © 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS