Public Member Functions | |
bool | areCompatibleForDiv (const MEDCouplingField *other) const |
bool | areCompatibleForMul (const MEDCouplingField *other) const |
bool | areStrictlyCompatible (const MEDCouplingField *other) const |
bool | areStrictlyCompatibleForMulDiv (const MEDCouplingField *other) const |
void | checkConsistencyLight () const |
virtual Traits< T >::FieldType * | clone (bool recDeepCpy) const =0 |
Traits< T >::FieldType * | cloneWithMesh (bool recDeepCpy) const |
void | copyAllTinyAttrFrom (const MEDCouplingFieldT< T > *other) |
void | copyTinyAttrFrom (const MEDCouplingFieldT< T > *other) |
void | copyTinyStringsFrom (const MEDCouplingField *other) |
const Traits< T >::ArrayType * | getArray () const |
Traits< T >::ArrayType * | getArray () |
std::vector< typename Traits < T >::ArrayType * > | getArrays () const |
const Traits< T >::ArrayType * | getEndArray () const |
Traits< T >::ArrayType * | getEndArray () |
double | getEndTime (int &iteration, int &order) const |
T | getIJ (int tupleId, int compoId) const |
double | getStartTime (int &iteration, int &order) const |
double | getTime (int &iteration, int &order) const |
TypeOfTimeDiscretization | getTimeDiscretization () const |
double | getTimeTolerance () const |
std::string | getTimeUnit () const |
bool | isEqualIfNotWhy (const MEDCouplingField *other, double meshPrec, double valsPrec, std::string &reason) const |
bool | isEqualWithoutConsideringStr (const MEDCouplingField *other, double meshPrec, double valsPrec) const |
void | reprQuickOverview (std::ostream &stream) const |
void | setArray (typename Traits< T >::ArrayType *array) |
void | setArrays (const std::vector< typename Traits< T >::ArrayType * > &arrs) |
void | setEndArray (typename Traits< T >::ArrayType *array) |
void | setEndIteration (int it) |
void | setEndOrder (int order) |
void | setEndTime (double val, int iteration, int order) |
void | setEndTimeValue (double val) |
void | setIteration (int it) |
void | setOrder (int order) |
void | setStartTime (double val, int iteration, int order) |
void | setTime (double val, int iteration, int order) |
void | setTimeTolerance (double val) |
void | setTimeUnit (const std::string &unit) |
void | setTimeValue (double val) |
std::string | simpleRepr () const |
void | synchronizeTimeWithMesh () |
Public Member Functions inherited from MEDCoupling::MEDCouplingField | |
virtual bool | areCompatibleForMerge (const MEDCouplingField *other) const |
MEDCouplingFieldDouble * | buildMeasureField (bool isAbs) const |
MEDCouplingMesh * | buildSubMeshData (const int *start, const int *end, DataArrayInt *&di) const |
MEDCouplingMesh * | buildSubMeshDataRange (int begin, int end, int step, int &beginOut, int &endOut, int &stepOut, DataArrayInt *&di) const |
void | clearGaussLocalizations () |
DataArrayInt * | computeTupleIdsToSelectFromCellIds (const int *startCellIds, const int *endCellIds) const |
void | getCellIdsHavingGaussLocalization (int locId, std::vector< int > &cellIds) const |
std::string | getDescription () const |
std::vector< const BigMemoryObject * > | getDirectChildrenWithNull () const |
const MEDCouplingFieldDiscretization * | getDiscretization () const |
MEDCouplingFieldDiscretization * | getDiscretization () |
MEDCouplingGaussLocalization & | getGaussLocalization (int locId) |
const MEDCouplingGaussLocalization & | getGaussLocalization (int locId) const |
int | getGaussLocalizationIdOfOneCell (int cellId) const |
int | getGaussLocalizationIdOfOneType (INTERP_KERNEL::NormalizedCellType type) const |
std::set< int > | getGaussLocalizationIdsOfOneType (INTERP_KERNEL::NormalizedCellType type) const |
std::size_t | getHeapMemorySizeWithoutChildren () const |
DataArrayDouble * | getLocalizationOfDiscr () const |
const MEDCoupling::MEDCouplingMesh * | getMesh () const |
MEDCoupling::MEDCouplingMesh * | getMesh () |
std::string | getName () const |
NatureOfField | getNature () const |
int | getNbOfGaussLocalization () const |
int | getNumberOfMeshPlacesExpected () const |
int | getNumberOfTuplesExpected () const |
int | getNumberOfTuplesExpectedRegardingCode (const std::vector< int > &code, const std::vector< const DataArrayInt * > &idsPerType) const |
TypeOfField | getTypeOfField () const |
virtual bool | isEqual (const MEDCouplingField *other, double meshPrec, double valsPrec) const |
void | setDescription (const std::string &desc) |
void | setDiscretization (MEDCouplingFieldDiscretization *newDisc) |
void | setGaussLocalizationOnCells (const int *begin, const int *end, const std::vector< double > &refCoo, const std::vector< double > &gsCoo, const std::vector< double > &wg) |
void | setGaussLocalizationOnType (INTERP_KERNEL::NormalizedCellType type, const std::vector< double > &refCoo, const std::vector< double > &gsCoo, const std::vector< double > &wg) |
void | setMesh (const MEDCoupling::MEDCouplingMesh *mesh) |
void | setName (const std::string &name) |
virtual void | setNature (NatureOfField nat) |
void | updateTime () const |
Public Member Functions inherited from MEDCoupling::TimeLabel | |
void | declareAsNew () const |
std::size_t | getTimeOfThis () const |
TimeLabel & | operator= (const TimeLabel &other) |
Protected Attributes | |
MEDCouplingTimeDiscretizationTemplate < T > * | _time_discr |
Protected Attributes inherited from MEDCoupling::MEDCouplingField | |
std::string | _desc |
const MEDCouplingMesh * | _mesh |
std::string | _name |
NatureOfField | _nature |
MCAuto < MEDCouplingFieldDiscretization > | _type |
Additional Inherited Members | |
Static Public Member Functions inherited from MEDCoupling::BigMemoryObject | |
static std::size_t | GetHeapMemorySizeOfObjs (const std::vector< const BigMemoryObject * > &objs) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
TypeOfTimeDiscretization MEDCoupling::MEDCouplingFieldT< T >::getTimeDiscretization | ( | ) | const |
Returns a type of time discretization of this field.
Referenced by MEDCoupling::MEDCouplingRemapper::reverseTransferField(), and MEDCoupling::MEDCouplingRemapper::transferField().
|
pure virtual |
Implemented in MEDCoupling::MEDCouplingFieldDouble, and MEDCoupling::MEDCouplingFieldInt.
|
virtual |
Checks if this field is correctly defined, else an exception is thrown.
If | the mesh is not set. |
If | the data array is not set. |
If | the spatial discretization of this field is NULL. |
If | this->getTimeTolerance() < 0. |
If | the temporal discretization data is incorrect. |
If | mesh data does not correspond to field data. |
Reimplemented from MEDCoupling::MEDCouplingField.
References MEDCoupling::MEDCouplingField::checkConsistencyLight().
Referenced by MEDCoupling::MEDCouplingRemapper::reverseTransfer(), MEDCoupling::MEDCouplingRemapper::reverseTransferField(), MEDCoupling::MEDCouplingFieldDouble::substractInPlaceDM(), MEDCoupling::MEDCouplingRemapper::transferField(), MEDCoupling::WriteField(), and MEDCoupling::WriteFieldUsingAlreadyWrittenMesh().
Traits< T >::FieldType * MEDCoupling::MEDCouplingFieldT< T >::cloneWithMesh | ( | bool | recDeepCpy | ) | const |
Returns a new MEDCouplingFieldDouble which is a copy of this one. The data of this field is copied either deep or shallow depending on recDeepCpy parameter. But the underlying mesh is always deep copied. Data that can be copied either deeply or shallow are:
This method behaves exactly like clone() except that here the underlying mesh is always deeply duplicated, whatever the value recDeepCpy parameter. The result of cloneWithMesh(true)
is exactly the same as that of deepCopy(). So the resulting field can not be used together with this one in the methods like operator+(), operator*() etc. To avoid deep copying the underlying mesh, the user can call clone().
[in] | recDeepCpy | - if true , the copy of the underlying data arrays is deep, else all data arrays of this field are shared by the new field. |
References MEDCoupling::MCAuto< T >::retn().
void MEDCoupling::MEDCouplingFieldT< T >::setArray | ( | typename Traits< T >::ArrayType * | array | ) |
Referenced by MEDCoupling::MEDCouplingCartesianAMRMeshGen::buildCellFieldOnRecurseWithoutOverlapWithoutGhost(), MEDCoupling::MEDCouplingAMRAttribute::buildCellFieldOnWithoutGhost(), MEDCoupling::MEDCouplingUMesh::buildDirectionVectorField(), MEDCoupling::MEDCouplingStructuredMesh::buildOrthogonalField(), MEDCoupling::MEDCouplingCurveLinearMesh::buildOrthogonalField(), MEDCoupling::MEDCouplingUMesh::buildOrthogonalField(), MEDCoupling::MEDCouplingUMesh::buildPartOrthogonalField(), MEDCoupling::MEDCoupling1SGTUMesh::computeDiameterField(), MEDCoupling::MEDCouplingUMesh::computeDiameterField(), MEDCoupling::MEDCouplingFieldDouble::convertQuadraticCellsToLinear(), MEDCoupling::MEDCouplingFieldInt::convertToDblField(), MEDCoupling::MEDCouplingFieldDouble::convertToIntField(), MEDCoupling::MEDCouplingUMesh::getAspectRatioField(), MEDCoupling::MEDCouplingUMesh::getEdgeRatioField(), MEDCoupling::MEDCouplingCMesh::getMeasureField(), MEDCoupling::MEDCouplingIMesh::getMeasureField(), MEDCoupling::MEDCouplingUMesh::getMeasureField(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::getMeasureField(), MEDCoupling::MEDCouplingFieldDiscretizationGaussNE::getMeasureField(), MEDCoupling::MEDCouplingUMesh::getMeasureFieldOnNode(), MEDCoupling::MEDCouplingUMesh::getSkewField(), MEDCoupling::MEDCouplingUMesh::getWarpField(), MEDCoupling::ParaFIELD::ParaFIELD(), MEDCoupling::MEDCouplingRemapper::reverseTransfer(), MEDCoupling::MEDFileField1TS::SetDataArrayDoubleInField(), and MEDCoupling::MEDFileIntField1TS::SetDataArrayDoubleInIntField().
void MEDCoupling::MEDCouplingFieldT< T >::setEndArray | ( | typename Traits< T >::ArrayType * | array | ) |
const Traits<T>::ArrayType* MEDCoupling::MEDCouplingFieldT< T >::getArray | ( | ) | const |
Referenced by MEDCoupling::MEDFileFieldMultiTS::appendFieldNoProfileSBT(), MEDCoupling::MEDFileIntFieldMultiTS::appendFieldNoProfileSBT(), MEDCoupling::MEDFileFieldMultiTS::appendFieldProfile(), MEDCoupling::MEDFileIntFieldMultiTS::appendFieldProfile(), MEDCoupling::MEDCouplingUMesh::buildOrthogonalField(), MEDCoupling::MEDCouplingUMesh::conformize3D(), MEDCoupling::MEDFileField1TS::extractPart(), MEDCoupling::MEDCouplingFieldT< int >::getIJ(), MEDCoupling::MEDCouplingFieldDiscretizationGauss::getMeasureField(), MEDCoupling::MEDCouplingFieldDiscretizationGaussNE::getMeasureField(), MEDCoupling::MEDCouplingUMesh::getMeasureFieldOnNode(), MEDCoupling::MEDCouplingFieldDouble::getWeightedAverageValue(), MEDCoupling::MEDCouplingFieldDiscretization::integral(), MEDCoupling::MEDCouplingFieldDiscretizationGaussNE::integral(), MEDCoupling::InterpolationMatrix::multiply(), MEDCoupling::MEDCouplingFieldDiscretization::normL1(), MEDCoupling::MEDCouplingFieldDiscretization::normL2(), MEDCoupling::StructuredCoincidentDEC::prepareSourceDE(), MEDCoupling::ExplicitCoincidentDEC::prepareSourceDE(), MEDCoupling::MEDCouplingUMesh::project1D(), MEDCoupling::StructuredCoincidentDEC::recvData(), MEDCoupling::ExplicitCoincidentDEC::recvData(), MEDCoupling::DisjointDEC::renormalizeTargetField(), MEDCoupling::MEDCouplingRemapper::reverseTransfer(), MEDCoupling::MEDFileField1TS::setFieldNoProfileSBT(), MEDCoupling::MEDFileIntField1TS::setFieldNoProfileSBT(), MEDCoupling::MEDFileField1TS::setFieldProfile(), MEDCoupling::MEDFileIntField1TS::setFieldProfile(), MEDCoupling::InterpolationMatrix::transposeMultiply(), and MEDCoupling::MEDCouplingFieldDouble::WriteVTK().
Traits<T>::ArrayType* MEDCoupling::MEDCouplingFieldT< T >::getArray | ( | ) |
const Traits<T>::ArrayType* MEDCoupling::MEDCouplingFieldT< T >::getEndArray | ( | ) | const |
Traits<T>::ArrayType* MEDCoupling::MEDCouplingFieldT< T >::getEndArray | ( | ) |
void MEDCoupling::MEDCouplingFieldT< T >::setArrays | ( | const std::vector< typename Traits< T >::ArrayType * > & | arrs | ) |
std::vector<typename Traits<T>::ArrayType *> MEDCoupling::MEDCouplingFieldT< T >::getArrays | ( | ) | const |
void MEDCoupling::MEDCouplingFieldT< T >::setTimeUnit | ( | const std::string & | unit | ) |
std::string MEDCoupling::MEDCouplingFieldT< T >::getTimeUnit | ( | ) | const |
void MEDCoupling::MEDCouplingFieldT< T >::setTimeTolerance | ( | double | val | ) |
double MEDCoupling::MEDCouplingFieldT< T >::getTimeTolerance | ( | ) | const |
void MEDCoupling::MEDCouplingFieldT< T >::setIteration | ( | int | it | ) |
void MEDCoupling::MEDCouplingFieldT< T >::setEndIteration | ( | int | it | ) |
void MEDCoupling::MEDCouplingFieldT< T >::setOrder | ( | int | order | ) |
void MEDCoupling::MEDCouplingFieldT< T >::setEndOrder | ( | int | order | ) |
void MEDCoupling::MEDCouplingFieldT< T >::setTimeValue | ( | double | val | ) |
void MEDCoupling::MEDCouplingFieldT< T >::setEndTimeValue | ( | double | val | ) |
void MEDCoupling::MEDCouplingFieldT< T >::setTime | ( | double | val, |
int | iteration, | ||
int | order | ||
) |
void MEDCoupling::MEDCouplingFieldT< T >::synchronizeTimeWithMesh | ( | ) |
This method synchronizes time information (time, iteration, order, time unit) regarding the information in this->_mesh
.
If | no mesh is set in this. Or if this is not compatible with time setting (typically NO_TIME) |
Referenced by MEDCoupling::MEDCouplingCMesh::getMeasureField(), MEDCoupling::MEDCouplingCurveLinearMesh::getMeasureField(), MEDCoupling::MEDCouplingIMesh::getMeasureField(), and MEDCoupling::MEDCouplingUMesh::getMeasureField().
void MEDCoupling::MEDCouplingFieldT< T >::setStartTime | ( | double | val, |
int | iteration, | ||
int | order | ||
) |
void MEDCoupling::MEDCouplingFieldT< T >::setEndTime | ( | double | val, |
int | iteration, | ||
int | order | ||
) |
double MEDCoupling::MEDCouplingFieldT< T >::getTime | ( | int & | iteration, |
int & | order | ||
) | const |
double MEDCoupling::MEDCouplingFieldT< T >::getStartTime | ( | int & | iteration, |
int & | order | ||
) | const |
double MEDCoupling::MEDCouplingFieldT< T >::getEndTime | ( | int & | iteration, |
int & | order | ||
) | const |
T MEDCoupling::MEDCouplingFieldT< T >::getIJ | ( | int | tupleId, |
int | compoId | ||
) | const |
Referenced by MEDCoupling::InterpolationMatrix::multiply().
|
virtual |
Reimplemented from MEDCoupling::MEDCouplingField.
References MEDCoupling::MEDCouplingFieldT< T >::_time_discr, and MEDCoupling::MEDCouplingField::isEqualIfNotWhy().
|
virtual |
Checks equality of this and other field. Only numeric data is considered, i.e. names, description etc are not compared.
[in] | other | - the field to compare with. |
[in] | meshPrec | - a precision used to compare node coordinates of meshes. |
[in] | valsPrec | - a precision used to compare data arrays of the two fields. |
true
if the two fields are equal, false
else. If | other == NULL. |
If | the spatial discretization of this field is NULL. |
Reimplemented from MEDCoupling::MEDCouplingField.
References MEDCoupling::MEDCouplingFieldT< T >::_time_discr, and MEDCoupling::MEDCouplingField::isEqualWithoutConsideringStr().
|
virtual |
Copies tiny info (component names, name and description) from an other field to this one.
[in] | other | - the field to copy the tiny info from. |
If | this->getNumberOfComponents() != other->getNumberOfComponents() |
Reimplemented from MEDCoupling::MEDCouplingField.
References MEDCoupling::MEDCouplingFieldT< T >::_time_discr, and MEDCoupling::MEDCouplingField::copyTinyStringsFrom().
|
virtual |
This method is more strict than MEDCouplingField::areCompatibleForMerge method. This method is used for operation on fields to operate a first check before attempting operation.
Reimplemented from MEDCoupling::MEDCouplingField.
References MEDCoupling::MEDCouplingFieldT< T >::_time_discr, and MEDCoupling::MEDCouplingField::areStrictlyCompatible().
Referenced by MEDCoupling::MEDCouplingFieldDouble::AddFields(), MEDCoupling::MEDCouplingFieldDouble::MaxFields(), MEDCoupling::MEDCouplingFieldDouble::MinFields(), and MEDCoupling::MEDCouplingFieldDouble::SubstractFields().
|
virtual |
This method is less strict than MEDCouplingField::areStrictlyCompatible method. The difference is that the nature is not checked. This method is used for multiplication and division on fields to operate a first check before attempting operation.
Reimplemented from MEDCoupling::MEDCouplingField.
References MEDCoupling::MEDCouplingFieldT< T >::_time_discr, and MEDCoupling::MEDCouplingField::areStrictlyCompatibleForMulDiv().
Referenced by MEDCoupling::MEDCouplingFieldDouble::CrossProductFields(), and MEDCoupling::MEDCouplingFieldDouble::DotFields().
std::string MEDCoupling::MEDCouplingFieldT< T >::simpleRepr | ( | ) | const |
Returns a string describing this field. This string is outputted by print
Python command. The string includes info on
References MEDCoupling::MEDCouplingNatureOfField::GetReprNoThrow().
|
virtual |
bool MEDCoupling::MEDCouplingFieldT< T >::areCompatibleForMul | ( | const MEDCouplingField * | other | ) | const |
bool MEDCoupling::MEDCouplingFieldT< T >::areCompatibleForDiv | ( | const MEDCouplingField * | other | ) | const |
Method with same principle than MEDCouplingFieldDouble::areStrictlyCompatibleForMulDiv method except that number of components between this and 'other' can be different here (for operator/).
References MEDCoupling::MEDCouplingFieldT< T >::_time_discr, and MEDCoupling::MEDCouplingField::areStrictlyCompatibleForMulDiv().
Referenced by MEDCoupling::MEDCouplingFieldDouble::DivideFields().
void MEDCoupling::MEDCouplingFieldT< T >::copyTinyAttrFrom | ( | const MEDCouplingFieldT< T > * | other | ) |
Copies only times, order and iteration from an other field to this one. The underlying mesh is not impacted by this method. Arrays are not impacted neither.
[in] | other | - the field to tiny attributes from. |
If | this->getNumberOfComponents() != other->getNumberOfComponents() |
References MEDCoupling::MEDCouplingFieldT< T >::_time_discr.
void MEDCoupling::MEDCouplingFieldT< T >::copyAllTinyAttrFrom | ( | const MEDCouplingFieldT< T > * | other | ) |
|
protected |
Referenced by MEDCoupling::MEDCouplingFieldT< T >::areCompatibleForDiv(), MEDCoupling::MEDCouplingFieldT< T >::areCompatibleForMul(), MEDCoupling::MEDCouplingFieldT< T >::areStrictlyCompatible(), MEDCoupling::MEDCouplingFieldT< T >::areStrictlyCompatibleForMulDiv(), MEDCoupling::MEDCouplingFieldT< T >::copyTinyAttrFrom(), MEDCoupling::MEDCouplingFieldT< T >::copyTinyStringsFrom(), MEDCoupling::MEDCouplingFieldT< int >::getArray(), MEDCoupling::MEDCouplingFieldT< int >::getArrays(), MEDCoupling::MEDCouplingFieldT< int >::getEndArray(), MEDCoupling::MEDCouplingFieldT< int >::getEndTime(), MEDCoupling::MEDCouplingFieldT< int >::getStartTime(), MEDCoupling::MEDCouplingFieldT< int >::getTime(), MEDCoupling::MEDCouplingFieldT< int >::getTimeTolerance(), MEDCoupling::MEDCouplingFieldT< int >::getTimeUnit(), MEDCoupling::MEDCouplingFieldT< T >::isEqualIfNotWhy(), MEDCoupling::MEDCouplingFieldT< T >::isEqualWithoutConsideringStr(), MEDCoupling::MEDCouplingFieldT< int >::setArray(), MEDCoupling::MEDCouplingFieldT< int >::setArrays(), MEDCoupling::MEDCouplingFieldT< int >::setEndArray(), MEDCoupling::MEDCouplingFieldT< int >::setEndIteration(), MEDCoupling::MEDCouplingFieldT< int >::setEndOrder(), MEDCoupling::MEDCouplingFieldT< int >::setEndTime(), MEDCoupling::MEDCouplingFieldT< int >::setEndTimeValue(), MEDCoupling::MEDCouplingFieldT< int >::setIteration(), MEDCoupling::MEDCouplingFieldT< int >::setOrder(), MEDCoupling::MEDCouplingFieldT< int >::setStartTime(), MEDCoupling::MEDCouplingFieldT< int >::setTime(), MEDCoupling::MEDCouplingFieldT< int >::setTimeTolerance(), MEDCoupling::MEDCouplingFieldT< int >::setTimeUnit(), and MEDCoupling::MEDCouplingFieldT< int >::setTimeValue().