Version: 6.5.0
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
ParaMEDMEM::MEDCouplingFieldDiscretizationPerCell Class Reference
Inheritance diagram for ParaMEDMEM::MEDCouplingFieldDiscretizationPerCell:
Inheritance graph
[legend]
Collaboration diagram for ParaMEDMEM::MEDCouplingFieldDiscretizationPerCell:
Collaboration graph
[legend]

Public Member Functions

const DataArrayIntgetArrayOfDiscIds () const
- Public Member Functions inherited from ParaMEDMEM::MEDCouplingFieldDiscretization
double getPrecision () const
void setPrecision (double val)
virtual TypeOfField getEnum () const =0
virtual
MEDCouplingFieldDiscretization
clone () const =0
virtual std::string getStringRepr () const =0
virtual const char * getRepr () const =0
virtual int getNumberOfTuples (const MEDCouplingMesh *mesh) const =0
virtual int getNumberOfMeshPlaces (const MEDCouplingMesh *mesh) const =0
virtual DataArrayIntgetOffsetArr (const MEDCouplingMesh *mesh) const =0
virtual void normL1 (const MEDCouplingMesh *mesh, const DataArrayDouble *arr, double *res) const throw (INTERP_KERNEL::Exception)
virtual void normL2 (const MEDCouplingMesh *mesh, const DataArrayDouble *arr, double *res) const throw (INTERP_KERNEL::Exception)
virtual void integral (const MEDCouplingMesh *mesh, const DataArrayDouble *arr, bool isWAbs, double *res) const throw (INTERP_KERNEL::Exception)
virtual DataArrayDoublegetLocalizationOfDiscValues (const MEDCouplingMesh *mesh) const =0
virtual void computeMeshRestrictionFromTupleIds (const MEDCouplingMesh *mesh, const int *partBg, const int *partEnd, DataArrayInt *&cellRest)=0
virtual void checkCompatibilityWithNature (NatureOfField nat) const =0 throw (INTERP_KERNEL::Exception)
virtual void renumberArraysForCell (const MEDCouplingMesh *mesh, const std::vector< DataArrayDouble * > &arrays, const int *old2NewBg, bool check)=0 throw (INTERP_KERNEL::Exception)
virtual double getIJK (const MEDCouplingMesh *mesh, const DataArrayDouble *da, int cellId, int nodeIdInCell, int compoId) const throw (INTERP_KERNEL::Exception)
virtual MEDCouplingFieldDoublegetMeasureField (const MEDCouplingMesh *mesh, bool isAbs) const =0
virtual void getValueOn (const DataArrayDouble *arr, const MEDCouplingMesh *mesh, const double *loc, double *res) const =0
virtual void getValueOnPos (const DataArrayDouble *arr, const MEDCouplingMesh *mesh, int i, int j, int k, double *res) const =0
virtual DataArrayDoublegetValueOnMulti (const DataArrayDouble *arr, const MEDCouplingMesh *mesh, const double *loc, int nbOfPoints) const =0
virtual MEDCouplingMeshbuildSubMeshData (const MEDCouplingMesh *mesh, const int *start, const int *end, DataArrayInt *&di) const =0
virtual void renumberValuesOnNodes (double epsOnVals, const int *old2New, DataArrayDouble *arr) const =0
virtual void renumberValuesOnCells (double epsOnVals, const MEDCouplingMesh *mesh, const int *old2New, DataArrayDouble *arr) const =0
virtual void renumberValuesOnCellsR (const MEDCouplingMesh *mesh, const int *new2old, int newSz, DataArrayDouble *arr) const =0
virtual void getSerializationIntArray (DataArrayInt *&arr) const
virtual void getTinySerializationIntInformation (std::vector< int > &tinyInfo) const
virtual void getTinySerializationDbleInformation (std::vector< double > &tinyInfo) const
virtual void finishUnserialization (const std::vector< double > &tinyInfo)
virtual void resizeForUnserialization (const std::vector< int > &tinyInfo, DataArrayInt *&arr)
virtual void setGaussLocalizationOnType (const MEDCouplingMesh *m, INTERP_KERNEL::NormalizedCellType type, const std::vector< double > &refCoo, const std::vector< double > &gsCoo, const std::vector< double > &wg) throw (INTERP_KERNEL::Exception)
virtual void setGaussLocalizationOnCells (const MEDCouplingMesh *m, const int *begin, const int *end, const std::vector< double > &refCoo, const std::vector< double > &gsCoo, const std::vector< double > &wg) throw (INTERP_KERNEL::Exception)
virtual void clearGaussLocalizations () throw (INTERP_KERNEL::Exception)
virtual
MEDCouplingGaussLocalization & 
getGaussLocalization (int locId) throw (INTERP_KERNEL::Exception)
virtual int getNbOfGaussLocalization () const throw (INTERP_KERNEL::Exception)
virtual int getGaussLocalizationIdOfOneCell (int cellId) const throw (INTERP_KERNEL::Exception)
virtual int getGaussLocalizationIdOfOneType (INTERP_KERNEL::NormalizedCellType type) const throw (INTERP_KERNEL::Exception)
virtual void getCellIdsHavingGaussLocalization (int locId, std::vector< int > &cellIds) const throw (INTERP_KERNEL::Exception)
virtual const
MEDCouplingGaussLocalization & 
getGaussLocalization (int locId) const throw (INTERP_KERNEL::Exception)
virtual ~MEDCouplingFieldDiscretization ()
- Public Member Functions inherited from ParaMEDMEM::TimeLabel
TimeLabeloperator= (const TimeLabel &other)
void declareAsNew () const
unsigned int getTimeOfThis () const

Protected Member Functions

 MEDCouplingFieldDiscretizationPerCell ()
 MEDCouplingFieldDiscretizationPerCell (const MEDCouplingFieldDiscretizationPerCell &other)
 ~MEDCouplingFieldDiscretizationPerCell ()
void updateTime () const
void checkCoherencyBetween (const MEDCouplingMesh *mesh, const DataArrayDouble *da) const throw (INTERP_KERNEL::Exception)
bool isEqual (const MEDCouplingFieldDiscretization *other, double eps) const
bool isEqualWithoutConsideringStr (const MEDCouplingFieldDiscretization *other, double eps) const
void renumberCells (const int *old2NewBg, bool check) throw (INTERP_KERNEL::Exception)
void checkNoOrphanCells () const throw (INTERP_KERNEL::Exception)
void buildDiscrPerCellIfNecessary (const MEDCouplingMesh *m)
- Protected Member Functions inherited from ParaMEDMEM::MEDCouplingFieldDiscretization
 MEDCouplingFieldDiscretization ()
- Protected Member Functions inherited from ParaMEDMEM::TimeLabel
 TimeLabel ()
virtual ~TimeLabel ()
void updateTimeWith (const TimeLabel &other) const

Protected Attributes

DataArrayInt_discr_per_cell
- Protected Attributes inherited from ParaMEDMEM::MEDCouplingFieldDiscretization
double _precision

Static Protected Attributes

static const int DFT_INVALID_LOCID_VALUE = -1
- Static Protected Attributes inherited from ParaMEDMEM::MEDCouplingFieldDiscretization
static const double DFLT_PRECISION = 1.e-12

Additional Inherited Members

- Static Public Member Functions inherited from ParaMEDMEM::MEDCouplingFieldDiscretization
static
MEDCouplingFieldDiscretization
New (TypeOfField type)
static TypeOfField getTypeOfFieldFromStringRepr (const char *repr) throw (INTERP_KERNEL::Exception)
- Static Protected Member Functions inherited from ParaMEDMEM::MEDCouplingFieldDiscretization
static void renumberEntitiesFromO2NArr (double epsOnVals, const int *old2NewPtr, DataArrayDouble *arr, const char *msg)
static void renumberEntitiesFromN2OArr (const int *new2OldPtr, int new2OldSz, DataArrayDouble *arr, const char *msg)

Detailed Description

This class abstracts MEDCouplingFieldDiscretization that needs an information on each cell to perform their job. All classes that inherits from this are more linked to mesh.

Constructor & Destructor Documentation

MEDCouplingFieldDiscretizationPerCell::MEDCouplingFieldDiscretizationPerCell ( )
protected
MEDCouplingFieldDiscretizationPerCell::MEDCouplingFieldDiscretizationPerCell ( const MEDCouplingFieldDiscretizationPerCell other)
protected
MEDCouplingFieldDiscretizationPerCell::~MEDCouplingFieldDiscretizationPerCell ( )
protected

Member Function Documentation

const DataArrayInt * MEDCouplingFieldDiscretizationPerCell::getArrayOfDiscIds ( ) const

References _discr_per_cell.

void MEDCouplingFieldDiscretizationPerCell::updateTime ( ) const
protectedvirtual

Excepted for MEDCouplingFieldDiscretizationPerCell no underlying TimeLabel object : nothing to do in generally.

Reimplemented from ParaMEDMEM::MEDCouplingFieldDiscretization.

References _discr_per_cell, and ParaMEDMEM::TimeLabel::updateTimeWith().

void MEDCouplingFieldDiscretizationPerCell::checkCoherencyBetween ( const MEDCouplingMesh mesh,
const DataArrayDouble da 
) const throw (INTERP_KERNEL::Exception)
protectedvirtual
bool MEDCouplingFieldDiscretizationPerCell::isEqual ( const MEDCouplingFieldDiscretization other,
double  eps 
) const
protectedvirtual
bool MEDCouplingFieldDiscretizationPerCell::isEqualWithoutConsideringStr ( const MEDCouplingFieldDiscretization other,
double  eps 
) const
protectedvirtual
void MEDCouplingFieldDiscretizationPerCell::renumberCells ( const int *  old2NewBg,
bool  check 
) throw (INTERP_KERNEL::Exception)
protectedvirtual

This method is typically the first step of renumbering. The impact on _discr_per_cell is necessary here. virtualy by this method.

Reimplemented from ParaMEDMEM::MEDCouplingFieldDiscretization.

References ParaMEDMEM::DataArrayInt::CheckAndPreparePermutation(), ParaMEDMEM::RefCountObject::decrRef(), and ParaMEDMEM::DataArrayInt::renumber().

void MEDCouplingFieldDiscretizationPerCell::checkNoOrphanCells ( ) const throw (INTERP_KERNEL::Exception)
protected
void MEDCouplingFieldDiscretizationPerCell::buildDiscrPerCellIfNecessary ( const MEDCouplingMesh m)
protected

Member Data Documentation

DataArrayInt* ParaMEDMEM::MEDCouplingFieldDiscretizationPerCell::_discr_per_cell
protected
const int MEDCouplingFieldDiscretizationPerCell::DFT_INVALID_LOCID_VALUE = -1
staticprotected
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