Version: 9.14.0
MEDCoupling::MEDCouplingFieldDiscretizationGauss Class Reference
Inheritance diagram for MEDCoupling::MEDCouplingFieldDiscretizationGauss:
Collaboration diagram for MEDCoupling::MEDCouplingFieldDiscretizationGauss:

Public Member Functions

MCAuto< MEDCouplingFieldDiscretizationaggregate (std::vector< const MEDCouplingFieldDiscretization * > &fds) const override
 
DataArrayIdType * buildNbOfGaussPointPerCellField () const
 
MEDCouplingMeshbuildSubMeshData (const MEDCouplingMesh *mesh, const mcIdType *start, const mcIdType *end, DataArrayIdType *&di) const
 
MEDCouplingMeshbuildSubMeshDataRange (const MEDCouplingMesh *mesh, mcIdType beginCellIds, mcIdType endCellIds, mcIdType stepCellIds, mcIdType &beginOut, mcIdType &endOut, mcIdType &stepOut, DataArrayIdType *&di) const
 
void checkCoherencyBetween (const MEDCouplingMesh *mesh, const DataArray *da) const
 
void checkCompatibilityWithNature (NatureOfField nat) const override
 
void checkForUnserialization (const std::vector< mcIdType > &tinyInfo, const DataArrayIdType *arr)
 
void clearGaussLocalizations ()
 
MEDCouplingFieldDiscretizationclone () const override
 
MEDCouplingFieldDiscretizationclonePart (const mcIdType *startCellIds, const mcIdType *endCellIds) const
 
MEDCouplingFieldDiscretizationclonePartRange (mcIdType beginCellIds, mcIdType endCellIds, mcIdType stepCellIds) const
 
void computeMeshRestrictionFromTupleIds (const MEDCouplingMesh *mesh, const mcIdType *tupleIdsBg, const mcIdType *tupleIdsEnd, DataArrayIdType *&cellRestriction, DataArrayIdType *&trueTupleRestriction) const
 
DataArrayIdType * computeTupleIdsToSelectFromCellIds (const MEDCouplingMesh *mesh, const mcIdType *startCellIds, const mcIdType *endCellIds) const
 
void finishUnserialization (const std::vector< double > &tinyInfo)
 
void getCellIdsHavingGaussLocalization (mcIdType locId, std::vector< mcIdType > &cellIds) const
 
std::string getClassName () const override
 
TypeOfField getEnum () const
 
MEDCouplingGaussLocalizationgetGaussLocalization (mcIdType locId)
 
const MEDCouplingGaussLocalizationgetGaussLocalization (mcIdType locId) const
 
mcIdType getGaussLocalizationIdOfOneCell (mcIdType cellId) const
 
mcIdType getGaussLocalizationIdOfOneType (INTERP_KERNEL::NormalizedCellType type) const
 
std::set< mcIdType > getGaussLocalizationIdsOfOneType (INTERP_KERNEL::NormalizedCellType type) const
 
std::size_t getHeapMemorySizeWithoutChildren () const
 
double getIJK (const MEDCouplingMesh *mesh, const DataArrayDouble *da, mcIdType cellId, mcIdType nodeIdInCell, int compoId) const
 
DataArrayDoublegetLocalizationOfDiscValues (const MEDCouplingMesh *mesh) const
 
MEDCouplingFieldDoublegetMeasureField (const MEDCouplingMesh *mesh, bool isAbs) const override
 
mcIdType getNbOfGaussLocalization () const
 
mcIdType getNumberOfMeshPlaces (const MEDCouplingMesh *mesh) const
 
mcIdType getNumberOfTuples (const MEDCouplingMesh *mesh) const
 
mcIdType getNumberOfTuplesExpectedRegardingCode (const std::vector< mcIdType > &code, const std::vector< const DataArrayIdType * > &idsPerType) const
 
DataArrayIdType * getOffsetArr (const MEDCouplingMesh *mesh) const
 
const char * getRepr () const
 
void getSerializationIntArray (DataArrayIdType *&arr) const
 
std::string getStringRepr () const
 
void getTinySerializationDbleInformation (std::vector< double > &tinyInfo) const
 
void getTinySerializationIntInformation (std::vector< mcIdType > &tinyInfo) const
 
void getValueOn (const DataArrayDouble *arr, const MEDCouplingMesh *mesh, const double *loc, double *res) const override
 
DataArrayDoublegetValueOnMulti (const DataArrayDouble *arr, const MEDCouplingMesh *mesh, const double *loc, mcIdType nbOfPoints) const override
 
void getValueOnPos (const DataArrayDouble *arr, const MEDCouplingMesh *mesh, mcIdType i, mcIdType j, mcIdType k, double *res) const
 
bool isEqualIfNotWhy (const MEDCouplingFieldDiscretization *other, double eps, std::string &reason) const override
 
bool isEqualWithoutConsideringStr (const MEDCouplingFieldDiscretization *other, double eps) const
 
 MEDCouplingFieldDiscretizationGauss ()
 
void renumberArraysForCell (const MEDCouplingMesh *mesh, const std::vector< DataArray * > &arrays, const mcIdType *old2NewBg, bool check)
 
void renumberValuesOnCells (double epsOnVals, const MEDCouplingMesh *mesh, const mcIdType *old2New, mcIdType newSz, DataArrayDouble *arr) const
 
void renumberValuesOnCellsR (const MEDCouplingMesh *mesh, const mcIdType *new2old, mcIdType newSz, DataArrayDouble *arr) const
 
void renumberValuesOnNodes (double epsOnVals, const mcIdType *old2New, mcIdType newNbOfNodes, DataArrayDouble *arr) const
 
void reprQuickOverview (std::ostream &stream) const
 
void resizeForUnserialization (const std::vector< mcIdType > &tinyInfo, DataArrayIdType *&arr)
 
void resizeLocalizationVector (mcIdType newSz)
 
void setGaussLocalization (mcIdType locId, const MEDCouplingGaussLocalization &loc)
 
void setGaussLocalizationOnCells (const MEDCouplingMesh *mesh, const mcIdType *begin, const mcIdType *end, const std::vector< double > &refCoo, const std::vector< double > &gsCoo, const std::vector< double > &wg)
 
void setGaussLocalizationOnType (const MEDCouplingMesh *mesh, INTERP_KERNEL::NormalizedCellType type, const std::vector< double > &refCoo, const std::vector< double > &gsCoo, const std::vector< double > &wg)
 
- Public Member Functions inherited from MEDCoupling::MEDCouplingFieldDiscretizationPerCell
void checkNoOrphanCells () const
 
const DataArrayIdType * getArrayOfDiscIds () const
 
void setArrayOfDiscIds (const DataArrayIdType *adids)
 
std::vector< DataArrayIdType * > splitIntoSingleGaussDicrPerCellType (std::vector< mcIdType > &locIds) const
 
- Public Member Functions inherited from MEDCoupling::MEDCouplingFieldDiscretization
virtual MEDCouplingFieldDiscretizationdeepCopy () const
 
double getPrecision () const
 
virtual void integral (const MEDCouplingMesh *mesh, const DataArrayDouble *arr, bool isWAbs, double *res) const
 
virtual bool isEqual (const MEDCouplingFieldDiscretization *other, double eps) const
 
virtual void normL1 (const MEDCouplingMesh *mesh, const DataArrayDouble *arr, double *res) const
 
virtual void normL2 (const MEDCouplingMesh *mesh, const DataArrayDouble *arr, double *res) const
 
void setPrecision (double val)
 
virtual ~MEDCouplingFieldDiscretization ()
 
- Public Member Functions inherited from MEDCoupling::RefCountObjectOnly
bool decrRef () const
 
int getRCValue () const
 
void incrRef () const
 
RefCountObjectOnlyoperator= (const RefCountObjectOnly &other)
 
- Public Member Functions inherited from MEDCoupling::BigMemoryObject
std::string debugHeapMemorySize () const
 
std::vector< const BigMemoryObject * > getAllTheProgeny () const
 
std::vector< const BigMemoryObject * > getDirectChildren () const
 
std::size_t getHeapMemorySize () const
 
std::string getHeapMemorySizeStr () const
 
bool isObjectInTheProgeny (const BigMemoryObject *obj) const
 
virtual ~BigMemoryObject ()
 
- Public Member Functions inherited from MEDCoupling::TimeLabel
void declareAsNew () const
 
std::size_t getTimeOfThis () const
 
TimeLabeloperator= (const TimeLabel &other)
 
 TimeLabel (const TimeLabel &other)=default
 

Static Public Attributes

static const char REPR [] = "GAUSS"
 
static constexpr TypeOfField TYPE = ON_GAUSS_PT
 

Protected Member Functions

void checkLocalizationId (mcIdType locId) const
 
void commonUnserialization (const std::vector< mcIdType > &tinyInfo)
 
mcIdType getOffsetOfCell (mcIdType cellId) const
 
 MEDCouplingFieldDiscretizationGauss (const MEDCouplingFieldDiscretizationGauss &other, const mcIdType *startCellIds=0, const mcIdType *endCellIds=0)
 
 MEDCouplingFieldDiscretizationGauss (const MEDCouplingFieldDiscretizationGauss &other, mcIdType beginCellIds, mcIdType endCellIds, mcIdType stepCellIds)
 
 MEDCouplingFieldDiscretizationGauss (DataArrayIdType *dpc, const std::vector< MEDCouplingGaussLocalization > &loc)
 
void zipGaussLocalizations ()
 
- Protected Member Functions inherited from MEDCoupling::MEDCouplingFieldDiscretizationPerCell
void buildDiscrPerCellIfNecessary (const MEDCouplingMesh *mesh)
 
std::vector< const BigMemoryObject * > getDirectChildrenWithNull () const
 
 MEDCouplingFieldDiscretizationPerCell ()
 
 MEDCouplingFieldDiscretizationPerCell (const MEDCouplingFieldDiscretizationPerCell &other, const mcIdType *startCellIds, const mcIdType *endCellIds)
 
 MEDCouplingFieldDiscretizationPerCell (const MEDCouplingFieldDiscretizationPerCell &other, mcIdType beginCellIds, mcIdType endCellIds, mcIdType stepCellIds)
 
 MEDCouplingFieldDiscretizationPerCell (DataArrayIdType *dpc)
 
void renumberCells (const mcIdType *old2NewBg, bool check)
 
void updateTime () const
 
 ~MEDCouplingFieldDiscretizationPerCell ()
 
- Protected Member Functions inherited from MEDCoupling::MEDCouplingFieldDiscretization
 MEDCouplingFieldDiscretization ()
 
- Protected Member Functions inherited from MEDCoupling::RefCountObject
 RefCountObject ()
 
 RefCountObject (const RefCountObject &other)
 
virtual ~RefCountObject ()
 
- Protected Member Functions inherited from MEDCoupling::RefCountObjectOnly
 RefCountObjectOnly ()
 
 RefCountObjectOnly (const RefCountObjectOnly &other)
 
virtual ~RefCountObjectOnly ()
 
- Protected Member Functions inherited from MEDCoupling::TimeLabel
void forceTimeOfThis (const TimeLabel &other) const
 
 TimeLabel ()
 
void updateTimeWith (const TimeLabel &other) const
 
virtual ~TimeLabel ()
 

Additional Inherited Members

- Static Public Member Functions inherited from MEDCoupling::MEDCouplingFieldDiscretization
static TypeOfField GetTypeOfFieldFromStringRepr (const std::string &repr)
 
static std::string GetTypeOfFieldRepr (TypeOfField type)
 
static MEDCouplingFieldDiscretizationNew (TypeOfField type)
 
- Static Public Member Functions inherited from MEDCoupling::BigMemoryObject
static std::size_t GetHeapMemorySizeOfObjs (const std::vector< const BigMemoryObject * > &objs)
 
- Static Protected Member Functions inherited from MEDCoupling::MEDCouplingFieldDiscretization
template<class FIELD_DISC >
static MCAuto< MEDCouplingFieldDiscretizationEasyAggregate (std::vector< const MEDCouplingFieldDiscretization * > &fds)
 
static void RenumberEntitiesFromN2OArr (const mcIdType *new2OldPtr, mcIdType new2OldSz, DataArrayDouble *arr, const std::string &msg)
 
static void RenumberEntitiesFromO2NArr (double epsOnVals, const mcIdType *old2NewPtr, mcIdType newNbOfEntity, DataArrayDouble *arr, const std::string &msg)
 
- Protected Attributes inherited from MEDCoupling::MEDCouplingFieldDiscretizationPerCell
DataArrayIdType * _discr_per_cell
 
- Protected Attributes inherited from MEDCoupling::MEDCouplingFieldDiscretization
double _precision
 
- Static Protected Attributes inherited from MEDCoupling::MEDCouplingFieldDiscretizationPerCell
static const mcIdType DFT_INVALID_LOCID_VALUE = -1
 
- Static Protected Attributes inherited from MEDCoupling::MEDCouplingFieldDiscretization
static const double DFLT_PRECISION = 1.e-12
 

Constructor & Destructor Documentation

◆ MEDCouplingFieldDiscretizationGauss() [1/4]

MEDCouplingFieldDiscretizationGauss::MEDCouplingFieldDiscretizationGauss ( )

◆ MEDCouplingFieldDiscretizationGauss() [2/4]

MEDCouplingFieldDiscretizationGauss::MEDCouplingFieldDiscretizationGauss ( const MEDCouplingFieldDiscretizationGauss other,
const mcIdType *  startCellIds = 0,
const mcIdType *  endCellIds = 0 
)
protected

◆ MEDCouplingFieldDiscretizationGauss() [3/4]

MEDCouplingFieldDiscretizationGauss::MEDCouplingFieldDiscretizationGauss ( const MEDCouplingFieldDiscretizationGauss other,
mcIdType  beginCellIds,
mcIdType  endCellIds,
mcIdType  stepCellIds 
)
protected

◆ MEDCouplingFieldDiscretizationGauss() [4/4]

MEDCoupling::MEDCouplingFieldDiscretizationGauss::MEDCouplingFieldDiscretizationGauss ( DataArrayIdType *  dpc,
const std::vector< MEDCouplingGaussLocalization > &  loc 
)
protected

Member Function Documentation

◆ getEnum()

TypeOfField MEDCouplingFieldDiscretizationGauss::getEnum ( ) const
virtual

◆ getClassName()

std::string MEDCoupling::MEDCouplingFieldDiscretizationGauss::getClassName ( ) const
overridevirtual

Reimplemented from MEDCoupling::BigMemoryObject.

◆ isEqualIfNotWhy()

bool MEDCouplingFieldDiscretizationGauss::isEqualIfNotWhy ( const MEDCouplingFieldDiscretization other,
double  eps,
std::string &  reason 
) const
overridevirtual

◆ isEqualWithoutConsideringStr()

bool MEDCouplingFieldDiscretizationGauss::isEqualWithoutConsideringStr ( const MEDCouplingFieldDiscretization other,
double  eps 
) const
virtual

◆ clone()

MEDCouplingFieldDiscretization * MEDCouplingFieldDiscretizationGauss::clone ( ) const
overridevirtual

◆ clonePart()

MEDCouplingFieldDiscretization * MEDCouplingFieldDiscretizationGauss::clonePart ( const mcIdType *  startCellIds,
const mcIdType *  endCellIds 
) const
virtual

For all field discretization excepted GaussPts the [ startCellIds, endCellIds ) has no impact on the cloned instance.

Reimplemented from MEDCoupling::MEDCouplingFieldDiscretization.

References MEDCouplingFieldDiscretizationGauss().

◆ clonePartRange()

MEDCouplingFieldDiscretization * MEDCouplingFieldDiscretizationGauss::clonePartRange ( mcIdType  beginCellIds,
mcIdType  endCellIds,
mcIdType  stepCellIds 
) const
virtual

For all field discretization excepted GaussPts the slice( beginCellId, endCellIds, stepCellId ) has no impact on the cloned instance.

Reimplemented from MEDCoupling::MEDCouplingFieldDiscretization.

References MEDCouplingFieldDiscretizationGauss().

◆ getStringRepr()

std::string MEDCouplingFieldDiscretizationGauss::getStringRepr ( ) const
virtual

◆ getRepr()

const char * MEDCouplingFieldDiscretizationGauss::getRepr ( ) const
virtual

◆ getHeapMemorySizeWithoutChildren()

std::size_t MEDCouplingFieldDiscretizationGauss::getHeapMemorySizeWithoutChildren ( ) const
virtual

◆ getNumberOfTuplesExpectedRegardingCode()

mcIdType MEDCouplingFieldDiscretizationGauss::getNumberOfTuplesExpectedRegardingCode ( const std::vector< mcIdType > &  code,
const std::vector< const DataArrayIdType * > &  idsPerType 
) const
virtual

This method returns the number of tuples regarding exclusively the input code without using a mesh in input. The input code coherency is also checked regarding spatial discretization of this. If an incoherency is detected, an exception will be thrown. If the input code is coherent, the number of tuples expected is returned. The number of tuples expected is equal to those to have a valid field lying on this and having a mesh fitting perfectly the input code (geometric type distribution).

Implements MEDCoupling::MEDCouplingFieldDiscretization.

References MEDCoupling::MEDCouplingFieldDiscretizationPerCell::_discr_per_cell, and getNumberOfTuples().

◆ getNumberOfTuples()

◆ getNumberOfMeshPlaces()

mcIdType MEDCouplingFieldDiscretizationGauss::getNumberOfMeshPlaces ( const MEDCouplingMesh mesh) const
virtual

◆ getOffsetArr()

DataArrayIdType * MEDCouplingFieldDiscretizationGauss::getOffsetArr ( const MEDCouplingMesh mesh) const
virtual

This method is redevelopped for performance reasons, but it is equivalent to a call to MEDCouplingFieldDiscretizationGauss::buildNbOfGaussPointPerCellField and a call to DataArrayDouble::computeOffsetsFull on the returned array.

Implements MEDCoupling::MEDCouplingFieldDiscretization.

References MEDCoupling::MEDCouplingFieldDiscretizationPerCell::_discr_per_cell, and MEDCoupling::MEDCouplingMesh::getNumberOfCells().

Referenced by getMeasureField().

◆ renumberArraysForCell()

void MEDCouplingFieldDiscretizationGauss::renumberArraysForCell ( const MEDCouplingMesh mesh,
const std::vector< DataArray * > &  arrays,
const mcIdType *  old2NewBg,
bool  check 
)
virtual

◆ getLocalizationOfDiscValues()

◆ computeMeshRestrictionFromTupleIds()

void MEDCouplingFieldDiscretizationGauss::computeMeshRestrictionFromTupleIds ( const MEDCouplingMesh mesh,
const mcIdType *  tupleIdsBg,
const mcIdType *  tupleIdsEnd,
DataArrayIdType *&  cellRestriction,
DataArrayIdType *&  trueTupleRestriction 
) const
virtual

◆ checkCompatibilityWithNature()

void MEDCouplingFieldDiscretizationGauss::checkCompatibilityWithNature ( NatureOfField  nat) const
overridevirtual

Empty : not a bug

Implements MEDCoupling::MEDCouplingFieldDiscretization.

◆ getTinySerializationIntInformation()

void MEDCouplingFieldDiscretizationGauss::getTinySerializationIntInformation ( std::vector< mcIdType > &  tinyInfo) const
virtual

◆ getTinySerializationDbleInformation()

void MEDCouplingFieldDiscretizationGauss::getTinySerializationDbleInformation ( std::vector< double > &  tinyInfo) const
virtual

Empty : Not a bug

Reimplemented from MEDCoupling::MEDCouplingFieldDiscretization.

◆ finishUnserialization()

void MEDCouplingFieldDiscretizationGauss::finishUnserialization ( const std::vector< double > &  tinyInfo)
virtual

Empty : Not a bug

Reimplemented from MEDCoupling::MEDCouplingFieldDiscretization.

◆ getSerializationIntArray()

void MEDCouplingFieldDiscretizationGauss::getSerializationIntArray ( DataArrayIdType *&  arr) const
virtual

◆ resizeForUnserialization()

void MEDCouplingFieldDiscretizationGauss::resizeForUnserialization ( const std::vector< mcIdType > &  tinyInfo,
DataArrayIdType *&  arr 
)
virtual

◆ checkForUnserialization()

void MEDCouplingFieldDiscretizationGauss::checkForUnserialization ( const std::vector< mcIdType > &  tinyInfo,
const DataArrayIdType *  arr 
)
virtual

◆ getIJK()

double MEDCouplingFieldDiscretizationGauss::getIJK ( const MEDCouplingMesh mesh,
const DataArrayDouble da,
mcIdType  cellId,
mcIdType  nodeIdInCell,
int  compoId 
) const
virtual

◆ checkCoherencyBetween()

◆ getMeasureField()

◆ getValueOn()

void MEDCouplingFieldDiscretizationGauss::getValueOn ( const DataArrayDouble arr,
const MEDCouplingMesh mesh,
const double *  loc,
double *  res 
) const
overridevirtual

◆ getValueOnPos()

void MEDCouplingFieldDiscretizationGauss::getValueOnPos ( const DataArrayDouble arr,
const MEDCouplingMesh mesh,
mcIdType  i,
mcIdType  j,
mcIdType  k,
double *  res 
) const
virtual

◆ getValueOnMulti()

DataArrayDouble * MEDCouplingFieldDiscretizationGauss::getValueOnMulti ( const DataArrayDouble arr,
const MEDCouplingMesh mesh,
const double *  loc,
mcIdType  nbOfPoints 
) const
overridevirtual

◆ buildSubMeshData()

MEDCouplingMesh * MEDCouplingFieldDiscretizationGauss::buildSubMeshData ( const MEDCouplingMesh mesh,
const mcIdType *  start,
const mcIdType *  end,
DataArrayIdType *&  di 
) const
virtual

◆ buildSubMeshDataRange()

MEDCouplingMesh * MEDCouplingFieldDiscretizationGauss::buildSubMeshDataRange ( const MEDCouplingMesh mesh,
mcIdType  beginCellIds,
mcIdType  endCellIds,
mcIdType  stepCellIds,
mcIdType &  beginOut,
mcIdType &  endOut,
mcIdType &  stepOut,
DataArrayIdType *&  di 
) const
virtual

This method is strictly equivalent to MEDCouplingFieldDiscretizationGauss::buildSubMeshData except that it is optimized for input defined as a range of cell ids.

Parameters
[out]beginOutValid only if di is NULL
[out]endOutValid only if di is NULL
[out]stepOutValid only if di is NULL
[out]diis an array returned that specifies entity ids (nodes, cells, Gauss points... ) in array if no output range is foundable.
See also
MEDCouplingFieldDiscretizationGauss::buildSubMeshData

Reimplemented from MEDCoupling::MEDCouplingFieldDiscretization.

References MEDCoupling::MEDCouplingFieldDiscretizationPerCell::_discr_per_cell, MEDCoupling::MEDCouplingMesh::buildPartRange(), MEDCoupling::MEDCouplingFieldDiscretization::buildSubMeshDataRange(), and MEDCoupling::MEDCouplingFieldDiscretizationPerCell::DFT_INVALID_LOCID_VALUE.

◆ computeTupleIdsToSelectFromCellIds()

DataArrayIdType * MEDCouplingFieldDiscretizationGauss::computeTupleIdsToSelectFromCellIds ( const MEDCouplingMesh mesh,
const mcIdType *  startCellIds,
const mcIdType *  endCellIds 
) const
virtual

This method returns a tuple ids selection from cell ids selection [start;end). This method is called by MEDCouplingFieldDiscretizationGauss::buildSubMeshData to return parameter di.

Returns
a newly allocated array containing ids to select into the DataArrayDouble of the field.

Implements MEDCoupling::MEDCouplingFieldDiscretization.

References MEDCoupling::MEDCouplingFieldDiscretizationPerCell::_discr_per_cell, buildNbOfGaussPointPerCellField(), MEDCoupling::CPP_DEALLOC, and MEDCoupling::MEDCouplingMesh::getNumberOfCells().

Referenced by buildSubMeshData().

◆ renumberValuesOnNodes()

void MEDCouplingFieldDiscretizationGauss::renumberValuesOnNodes ( double  epsOnVals,
const mcIdType *  old2New,
mcIdType  newNbOfNodes,
DataArrayDouble arr 
) const
virtual

No implementation needed !

Implements MEDCoupling::MEDCouplingFieldDiscretization.

◆ renumberValuesOnCells()

void MEDCouplingFieldDiscretizationGauss::renumberValuesOnCells ( double  epsOnVals,
const MEDCouplingMesh mesh,
const mcIdType *  old2New,
mcIdType  newSz,
DataArrayDouble arr 
) const
virtual

◆ renumberValuesOnCellsR()

void MEDCouplingFieldDiscretizationGauss::renumberValuesOnCellsR ( const MEDCouplingMesh mesh,
const mcIdType *  new2old,
mcIdType  newSz,
DataArrayDouble arr 
) const
virtual

◆ aggregate()

◆ setGaussLocalizationOnType()

void MEDCouplingFieldDiscretizationGauss::setGaussLocalizationOnType ( const MEDCouplingMesh mesh,
INTERP_KERNEL::NormalizedCellType  type,
const std::vector< double > &  refCoo,
const std::vector< double > &  gsCoo,
const std::vector< double > &  wg 
)
virtual

◆ setGaussLocalizationOnCells()

void MEDCouplingFieldDiscretizationGauss::setGaussLocalizationOnCells ( const MEDCouplingMesh mesh,
const mcIdType *  begin,
const mcIdType *  end,
const std::vector< double > &  refCoo,
const std::vector< double > &  gsCoo,
const std::vector< double > &  wg 
)
virtual

◆ clearGaussLocalizations()

void MEDCouplingFieldDiscretizationGauss::clearGaussLocalizations ( )
virtual

◆ setGaussLocalization()

void MEDCouplingFieldDiscretizationGauss::setGaussLocalization ( mcIdType  locId,
const MEDCouplingGaussLocalization loc 
)

◆ resizeLocalizationVector()

void MEDCouplingFieldDiscretizationGauss::resizeLocalizationVector ( mcIdType  newSz)

◆ getGaussLocalization() [1/2]

MEDCouplingGaussLocalization & MEDCouplingFieldDiscretizationGauss::getGaussLocalization ( mcIdType  locId)
virtual

◆ getNbOfGaussLocalization()

mcIdType MEDCouplingFieldDiscretizationGauss::getNbOfGaussLocalization ( ) const
virtual

◆ getGaussLocalizationIdOfOneCell()

mcIdType MEDCouplingFieldDiscretizationGauss::getGaussLocalizationIdOfOneCell ( mcIdType  cellId) const
virtual

◆ getGaussLocalizationIdOfOneType()

mcIdType MEDCouplingFieldDiscretizationGauss::getGaussLocalizationIdOfOneType ( INTERP_KERNEL::NormalizedCellType  type) const
virtual

◆ getGaussLocalizationIdsOfOneType()

std::set< mcIdType > MEDCouplingFieldDiscretizationGauss::getGaussLocalizationIdsOfOneType ( INTERP_KERNEL::NormalizedCellType  type) const
virtual

◆ getCellIdsHavingGaussLocalization()

void MEDCouplingFieldDiscretizationGauss::getCellIdsHavingGaussLocalization ( mcIdType  locId,
std::vector< mcIdType > &  cellIds 
) const
virtual

◆ getGaussLocalization() [2/2]

const MEDCouplingGaussLocalization & MEDCouplingFieldDiscretizationGauss::getGaussLocalization ( mcIdType  locId) const
virtual

◆ buildNbOfGaussPointPerCellField()

DataArrayIdType * MEDCouplingFieldDiscretizationGauss::buildNbOfGaussPointPerCellField ( ) const

This method do the assumption that there is no orphan cell. If there is an exception is thrown. This method makes the assumption too that '_discr_per_cell' is defined. If not an exception is thrown. This method returns a newly created array with number of tuples equals to '_discr_per_cell->getNumberOfTuples' and number of components equal to 1. The i_th tuple in returned array is the number of gauss point if the corresponding cell.

References MEDCoupling::MEDCouplingFieldDiscretizationPerCell::_discr_per_cell, and MEDCoupling::MEDCouplingFieldDiscretizationPerCell::DFT_INVALID_LOCID_VALUE.

Referenced by computeMeshRestrictionFromTupleIds(), computeTupleIdsToSelectFromCellIds(), and getLocalizationOfDiscValues().

◆ reprQuickOverview()

void MEDCouplingFieldDiscretizationGauss::reprQuickOverview ( std::ostream &  stream) const
virtual

◆ zipGaussLocalizations()

void MEDCouplingFieldDiscretizationGauss::zipGaussLocalizations ( )
protected

This method makes the assumption that _discr_per_cell is set. This method reduces as much as possible number size of _loc. This method is useful when several set on same cells has been done and that some Gauss Localization are no more used.

References MEDCoupling::MEDCouplingFieldDiscretizationPerCell::_discr_per_cell.

Referenced by setGaussLocalizationOnCells(), and setGaussLocalizationOnType().

◆ getOffsetOfCell()

mcIdType MEDCouplingFieldDiscretizationGauss::getOffsetOfCell ( mcIdType  cellId) const
protected

◆ checkLocalizationId()

void MEDCouplingFieldDiscretizationGauss::checkLocalizationId ( mcIdType  locId) const
protected

Referenced by getGaussLocalization().

◆ commonUnserialization()

void MEDCouplingFieldDiscretizationGauss::commonUnserialization ( const std::vector< mcIdType > &  tinyInfo)
protected

Member Data Documentation

◆ REPR

◆ TYPE