Back to index

salome-med  6.5.0
Functions
MEDMEMTest_MeshAndMeshing.cxx File Reference
#include "MEDMEMTest.hxx"
#include "MEDMEM_Meshing.hxx"
#include "MEDMEM_Group.hxx"
#include "MEDMEM_define.hxx"
#include "MEDMEM_MedMeshDriver.hxx"
#include "MEDMEM_Field.hxx"
#include "MEDMEM_Grid.hxx"
#include <sstream>
#include <cmath>
#include <cppunit/Message.h>
#include <cppunit/TestAssert.h>

Go to the source code of this file.

Functions

static void addMedFacesGroup (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 addMedFacesGroup ( 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 44 of file MEDMEMTest_MeshAndMeshing.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();
}