Public Member Functions | |
MEDCouplingFieldDiscretizationGauss () | |
TypeOfField | getEnum () const |
bool | isEqual (const MEDCouplingFieldDiscretization *other, double eps) const |
bool | isEqualWithoutConsideringStr (const MEDCouplingFieldDiscretization *other, double eps) const |
MEDCouplingFieldDiscretization * | clone () const |
std::string | getStringRepr () const |
const char * | getRepr () const |
int | getNumberOfTuples (const MEDCouplingMesh *mesh) const |
int | getNumberOfMeshPlaces (const MEDCouplingMesh *mesh) const |
DataArrayInt * | getOffsetArr (const MEDCouplingMesh *mesh) const |
void | renumberArraysForCell (const MEDCouplingMesh *mesh, const std::vector< DataArrayDouble * > &arrays, const int *old2NewBg, bool check) throw (INTERP_KERNEL::Exception) |
DataArrayDouble * | getLocalizationOfDiscValues (const MEDCouplingMesh *mesh) const |
void | computeMeshRestrictionFromTupleIds (const MEDCouplingMesh *mesh, const int *partBg, const int *partEnd, DataArrayInt *&cellRest) |
void | checkCompatibilityWithNature (NatureOfField nat) const throw (INTERP_KERNEL::Exception) |
void | getTinySerializationIntInformation (std::vector< int > &tinyInfo) const |
void | getTinySerializationDbleInformation (std::vector< double > &tinyInfo) const |
void | finishUnserialization (const std::vector< double > &tinyInfo) |
void | getSerializationIntArray (DataArrayInt *&arr) const |
void | resizeForUnserialization (const std::vector< int > &tinyInfo, DataArrayInt *&arr) |
double | getIJK (const MEDCouplingMesh *mesh, const DataArrayDouble *da, int cellId, int nodeIdInCell, int compoId) const throw (INTERP_KERNEL::Exception) |
void | checkCoherencyBetween (const MEDCouplingMesh *mesh, const DataArrayDouble *da) const throw (INTERP_KERNEL::Exception) |
MEDCouplingFieldDouble * | getMeasureField (const MEDCouplingMesh *mesh, bool isAbs) const |
void | getValueOn (const DataArrayDouble *arr, const MEDCouplingMesh *mesh, const double *loc, double *res) const |
void | getValueOnPos (const DataArrayDouble *arr, const MEDCouplingMesh *mesh, int i, int j, int k, double *res) const |
DataArrayDouble * | getValueOnMulti (const DataArrayDouble *arr, const MEDCouplingMesh *mesh, const double *loc, int nbOfPoints) const |
MEDCouplingMesh * | buildSubMeshData (const MEDCouplingMesh *mesh, const int *start, const int *end, DataArrayInt *&di) const |
void | renumberValuesOnNodes (double epsOnVals, const int *old2New, DataArrayDouble *arr) const |
void | renumberValuesOnCells (double epsOnVals, const MEDCouplingMesh *mesh, const int *old2New, DataArrayDouble *arr) const |
void | renumberValuesOnCellsR (const MEDCouplingMesh *mesh, const int *new2old, int newSz, DataArrayDouble *arr) const |
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) |
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) |
void | clearGaussLocalizations () throw (INTERP_KERNEL::Exception) |
MEDCouplingGaussLocalization & | getGaussLocalization (int locId) throw (INTERP_KERNEL::Exception) |
int | getNbOfGaussLocalization () const throw (INTERP_KERNEL::Exception) |
int | getGaussLocalizationIdOfOneCell (int cellId) const throw (INTERP_KERNEL::Exception) |
int | getGaussLocalizationIdOfOneType (INTERP_KERNEL::NormalizedCellType type) const throw (INTERP_KERNEL::Exception) |
void | getCellIdsHavingGaussLocalization (int locId, std::vector< int > &cellIds) const throw (INTERP_KERNEL::Exception) |
const MEDCouplingGaussLocalization & | getGaussLocalization (int locId) const throw (INTERP_KERNEL::Exception) |
std::vector< DataArrayInt * > | splitIntoSingleGaussDicrPerCellType (std::vector< std::vector< int > > &locIds) const throw (INTERP_KERNEL::Exception) |
DataArrayInt * | buildNbOfGaussPointPerCellField () const throw (INTERP_KERNEL::Exception) |
![]() | |
const DataArrayInt * | getArrayOfDiscIds () const |
![]() | |
double | getPrecision () const |
void | setPrecision (double val) |
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 | ~MEDCouplingFieldDiscretization () |
![]() | |
TimeLabel & | operator= (const TimeLabel &other) |
void | declareAsNew () const |
unsigned int | getTimeOfThis () const |
Static Public Attributes | |
static const char | REPR [] = "GAUSS" |
static const TypeOfField | TYPE = ON_GAUSS_PT |
Additional Inherited Members | |
![]() | |
static MEDCouplingFieldDiscretization * | New (TypeOfField type) |
static TypeOfField | getTypeOfFieldFromStringRepr (const char *repr) throw (INTERP_KERNEL::Exception) |
![]() | |
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) |
![]() | |
DataArrayInt * | _discr_per_cell |
![]() | |
static const int | DFT_INVALID_LOCID_VALUE = -1 |
MEDCouplingFieldDiscretizationGauss::MEDCouplingFieldDiscretizationGauss | ( | ) |
Referenced by clone().
|
protected |
|
virtual |
Implements ParaMEDMEM::MEDCouplingFieldDiscretization.
References TYPE.
|
virtual |
Reimplemented from ParaMEDMEM::MEDCouplingFieldDiscretizationPerCell.
References ParaMEDMEM::MEDCouplingFieldDiscretizationPerCell::isEqual().
Referenced by isEqualWithoutConsideringStr().
|
virtual |
Reimplemented from ParaMEDMEM::MEDCouplingFieldDiscretizationPerCell.
References isEqual(), and ParaMEDMEM::MEDCouplingFieldDiscretizationPerCell::isEqualWithoutConsideringStr().
|
virtual |
Implements ParaMEDMEM::MEDCouplingFieldDiscretization.
References MEDCouplingFieldDiscretizationGauss().
|
virtual |
|
virtual |
Implements ParaMEDMEM::MEDCouplingFieldDiscretization.
References REPR.
|
virtual |
|
virtual |
Implements ParaMEDMEM::MEDCouplingFieldDiscretization.
References ParaMEDMEM::MEDCouplingMesh::getNumberOfCells().
|
virtual |
Implements ParaMEDMEM::MEDCouplingFieldDiscretization.
References ParaMEDMEM::MEDCouplingFieldDiscretizationPerCell::_discr_per_cell, ParaMEDMEM::DataArrayInt::alloc(), ParaMEDMEM::DataArrayInt::getConstPointer(), ParaMEDMEM::MEDCouplingMesh::getNumberOfCells(), ParaMEDMEM::DataArrayInt::getPointer(), and ParaMEDMEM::MEDCouplingFieldDiscretization::New().
|
virtual |
Implements ParaMEDMEM::MEDCouplingFieldDiscretization.
References ParaMEDMEM::DataArrayInt::CheckAndPreparePermutation().
|
virtual |
Implements ParaMEDMEM::MEDCouplingFieldDiscretization.
References ParaMEDMEM::DataArrayDouble::alloc(), buildNbOfGaussPointPerCellField(), ParaMEDMEM::MEDCouplingMesh::buildUnstructured(), ParaMEDMEM::MEDCouplingFieldDiscretizationPerCell::checkNoOrphanCells(), ParaMEDMEM::DataArray::copyStringInfoFrom(), getNumberOfTuples(), ParaMEDMEM::DataArrayDouble::getPointer(), ParaMEDMEM::MEDCouplingMesh::getSpaceDimension(), ParaMEDMEM::MEDCouplingFieldDiscretization::New(), and splitIntoSingleGaussDicrPerCellType().
|
virtual |
Implements ParaMEDMEM::MEDCouplingFieldDiscretization.
|
virtual |
Empty : not a bug
Implements ParaMEDMEM::MEDCouplingFieldDiscretization.
|
virtual |
Empty : Not a bug
Reimplemented from ParaMEDMEM::MEDCouplingFieldDiscretization.
References ParaMEDMEM::MEDCouplingFieldDiscretizationPerCell::_discr_per_cell, and ParaMEDMEM::DataArray::getNumberOfTuples().
|
virtual |
Empty : Not a bug
Reimplemented from ParaMEDMEM::MEDCouplingFieldDiscretization.
|
virtual |
Empty : Not a bug
Reimplemented from ParaMEDMEM::MEDCouplingFieldDiscretization.
|
virtual |
Reimplemented from ParaMEDMEM::MEDCouplingFieldDiscretization.
References ParaMEDMEM::MEDCouplingFieldDiscretizationPerCell::_discr_per_cell.
|
virtual |
|
virtual |
Reimplemented from ParaMEDMEM::MEDCouplingFieldDiscretization.
|
virtual |
Reimplemented from ParaMEDMEM::MEDCouplingFieldDiscretizationPerCell.
References ParaMEDMEM::MEDCouplingFieldDiscretizationPerCell::checkCoherencyBetween().
|
virtual |
Implements ParaMEDMEM::MEDCouplingFieldDiscretization.
|
virtual |
Implements ParaMEDMEM::MEDCouplingFieldDiscretization.
|
virtual |
Implements ParaMEDMEM::MEDCouplingFieldDiscretization.
|
virtual |
Implements ParaMEDMEM::MEDCouplingFieldDiscretization.
|
virtual |
Implements ParaMEDMEM::MEDCouplingFieldDiscretization.
|
virtual |
No implementation needed !
Implements ParaMEDMEM::MEDCouplingFieldDiscretization.
|
virtual |
Implements ParaMEDMEM::MEDCouplingFieldDiscretization.
|
virtual |
Implements ParaMEDMEM::MEDCouplingFieldDiscretization.
|
virtual |
Reimplemented from ParaMEDMEM::MEDCouplingFieldDiscretization.
|
virtual |
Reimplemented from ParaMEDMEM::MEDCouplingFieldDiscretization.
|
virtual |
Reimplemented from ParaMEDMEM::MEDCouplingFieldDiscretization.
References ParaMEDMEM::MEDCouplingFieldDiscretizationPerCell::_discr_per_cell, and ParaMEDMEM::RefCountObject::decrRef().
|
virtual |
Reimplemented from ParaMEDMEM::MEDCouplingFieldDiscretization.
|
virtual |
Reimplemented from ParaMEDMEM::MEDCouplingFieldDiscretization.
|
virtual |
Reimplemented from ParaMEDMEM::MEDCouplingFieldDiscretization.
|
virtual |
Reimplemented from ParaMEDMEM::MEDCouplingFieldDiscretization.
|
virtual |
Reimplemented from ParaMEDMEM::MEDCouplingFieldDiscretization.
|
virtual |
Reimplemented from ParaMEDMEM::MEDCouplingFieldDiscretization.
std::vector< DataArrayInt * > MEDCouplingFieldDiscretizationGauss::splitIntoSingleGaussDicrPerCellType | ( | std::vector< std::vector< int > > & | locIds | ) | const throw (INTERP_KERNEL::Exception) |
This method is usefull when 'this' describes a field discretization with several gauss discretization on a same cell type. For example same NORM_TRI3 cells having 6 gauss points and others with 12 gauss points. This method returns 2 arrays with same size : the return value and 'locIds' output parameter. For a given i into [0,locIds.size) ret[i] represents the set of cell ids of i_th set an locIds[i] represents the set of discretisation of the set. The return vector contains a set of newly created instance to deal with. The returned vector represents a partition of cells ids with a gauss discretization set.
If no descretization is set in 'this' and exception will be thrown.
References ParaMEDMEM::MEDCouplingFieldDiscretizationPerCell::_discr_per_cell, ParaMEDMEM::DataArrayInt::alloc(), ParaMEDMEM::DataArrayInt::back(), ParaMEDMEM::DataArrayInt::getConstPointer(), ParaMEDMEM::DataArrayInt::getIdsNotEqual(), ParaMEDMEM::DataArray::getNumberOfTuples(), ParaMEDMEM::DataArrayInt::getPointer(), and ParaMEDMEM::MEDCouplingFieldDiscretization::New().
Referenced by getLocalizationOfDiscValues().
DataArrayInt * MEDCouplingFieldDiscretizationGauss::buildNbOfGaussPointPerCellField | ( | ) | const throw (INTERP_KERNEL::Exception) |
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 ParaMEDMEM::MEDCouplingFieldDiscretizationPerCell::_discr_per_cell, ParaMEDMEM::MEDCouplingFieldDiscretizationPerCell::DFT_INVALID_LOCID_VALUE, ParaMEDMEM::DataArrayInt::getConstPointer(), ParaMEDMEM::DataArray::getNumberOfTuples(), and ParaMEDMEM::MEDCouplingFieldDiscretization::New().
Referenced by getLocalizationOfDiscValues().
|
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 usefull when several set on same cells has been done and that some Gauss Localization are no more used.
References ParaMEDMEM::MEDCouplingFieldDiscretizationPerCell::_discr_per_cell, ParaMEDMEM::DataArrayInt::getConstPointer(), ParaMEDMEM::DataArray::getNumberOfTuples(), and ParaMEDMEM::DataArrayInt::getPointer().
|
protected |
|
protected |
|
static |
|
static |