Back to index

salome-med  6.5.0
Functions
MEDMEMTest_DesactivateFacesComputation.cxx File Reference
#include "MEDMEMTest.hxx"
#include "MEDMEM_Mesh.hxx"
#include "MEDMEM_Group.hxx"
#include "MEDMEM_Meshing.hxx"
#include "MEDMEM_MedMeshDriver.hxx"
#include "MEDMEM_GibiMeshDriver.hxx"
#include <cppunit/Message.h>
#include <cppunit/TestAssert.h>

Go to the source code of this file.

Functions

static void addMedFacesGroup2 (MESHING &meshing, int nFaces, const int *groupValue, string groupName, const MED_EN::medGeometryElement *mytypes, const int *index, const int *myNumberOfElements, int nbOfGeomTypes)

Function Documentation

static void addMedFacesGroup2 ( MESHING &  meshing,
int  nFaces,
const int *  groupValue,
string  groupName,
const MED_EN::medGeometryElement mytypes,
const int *  index,
const int *  myNumberOfElements,
int  nbOfGeomTypes 
) [static]

Definition at line 38 of file MEDMEMTest_DesactivateFacesComputation.cxx.

  {
    GROUP *faces=new GROUP;
    faces->setName(groupName) ;
    faces->setMesh(&meshing) ;
    faces->setEntity(MED_EN::MED_FACE) ;
    faces->setNumberOfGeometricType(nbOfGeomTypes) ;
    faces->setGeometricType(mytypes);
    faces->setNumberOfElements(myNumberOfElements) ;
    faces->setNumber(index, groupValue) ;
    meshing.addGroup(*faces) ;
    faces->removeReference();
  }