-// Copyright (C) 2007-2015 CEA/DEN, EDF R&D
+// Copyright (C) 2007-2024 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
class MEDCouplingTimeDiscretization : public TimeLabel, public BigMemoryObject
{
public:
- static MEDCouplingTimeDiscretization *New(TypeOfTimeDiscretization type) throw(INTERP_KERNEL::Exception);
+ static MEDCouplingTimeDiscretization *New(TypeOfTimeDiscretization type);
void setTimeUnit(const char *unit);
const char *getTimeUnit() const;
- virtual void copyTinyAttrFrom(const MEDCouplingTimeDiscretization& other) throw(INTERP_KERNEL::Exception);
- virtual void copyTinyStringsFrom(const MEDCouplingTimeDiscretization& other) throw(INTERP_KERNEL::Exception);
- virtual void checkCoherency() const throw(INTERP_KERNEL::Exception);
- virtual bool areCompatible(const MEDCouplingTimeDiscretization *other) const throw(INTERP_KERNEL::Exception);
- virtual bool areStrictlyCompatible(const MEDCouplingTimeDiscretization *other, std::string& reason) const throw(INTERP_KERNEL::Exception);
- virtual bool areStrictlyCompatibleForMul(const MEDCouplingTimeDiscretization *other) const throw(INTERP_KERNEL::Exception);
- virtual bool areStrictlyCompatibleForDiv(const MEDCouplingTimeDiscretization *other) const throw(INTERP_KERNEL::Exception);
- virtual bool areCompatibleForMeld(const MEDCouplingTimeDiscretization *other) const throw(INTERP_KERNEL::Exception);
- virtual bool isEqualIfNotWhy(const MEDCouplingTimeDiscretization *other, double prec, std::string& reason) const throw(INTERP_KERNEL::Exception);
- virtual bool isEqual(const MEDCouplingTimeDiscretization *other, double prec) const throw(INTERP_KERNEL::Exception);
- virtual bool isEqualWithoutConsideringStr(const MEDCouplingTimeDiscretization *other, double prec) const throw(INTERP_KERNEL::Exception);
- virtual MEDCouplingTimeDiscretization *buildNewTimeReprFromThis(TypeOfTimeDiscretization type, bool deepCpy) const throw(INTERP_KERNEL::Exception);
- virtual std::string getStringRepr() const throw(INTERP_KERNEL::Exception);
- virtual TypeOfTimeDiscretization getEnum() const throw(INTERP_KERNEL::Exception);
- virtual void synchronizeTimeWith(const MEDCouplingMesh *mesh) throw(INTERP_KERNEL::Exception);
- virtual MEDCouplingTimeDiscretization *aggregate(const MEDCouplingTimeDiscretization *other) const throw(INTERP_KERNEL::Exception);
- virtual MEDCouplingTimeDiscretization *aggregate(const std::vector<const MEDCouplingTimeDiscretization *>& other) const throw(INTERP_KERNEL::Exception);
- virtual MEDCouplingTimeDiscretization *meld(const MEDCouplingTimeDiscretization *other) const throw(INTERP_KERNEL::Exception);
- virtual MEDCouplingTimeDiscretization *dot(const MEDCouplingTimeDiscretization *other) const throw(INTERP_KERNEL::Exception);
- virtual MEDCouplingTimeDiscretization *crossProduct(const MEDCouplingTimeDiscretization *other) const throw(INTERP_KERNEL::Exception);
- virtual MEDCouplingTimeDiscretization *max(const MEDCouplingTimeDiscretization *other) const throw(INTERP_KERNEL::Exception);
- virtual MEDCouplingTimeDiscretization *min(const MEDCouplingTimeDiscretization *other) const throw(INTERP_KERNEL::Exception);
- virtual MEDCouplingTimeDiscretization *add(const MEDCouplingTimeDiscretization *other) const throw(INTERP_KERNEL::Exception);
- virtual void addEqual(const MEDCouplingTimeDiscretization *other) throw(INTERP_KERNEL::Exception);
- virtual MEDCouplingTimeDiscretization *substract(const MEDCouplingTimeDiscretization *other) const throw(INTERP_KERNEL::Exception);
- virtual void substractEqual(const MEDCouplingTimeDiscretization *other) throw(INTERP_KERNEL::Exception);
- virtual MEDCouplingTimeDiscretization *multiply(const MEDCouplingTimeDiscretization *other) const throw(INTERP_KERNEL::Exception);
- virtual void multiplyEqual(const MEDCouplingTimeDiscretization *other) throw(INTERP_KERNEL::Exception);
- virtual MEDCouplingTimeDiscretization *divide(const MEDCouplingTimeDiscretization *other) const throw(INTERP_KERNEL::Exception);
- virtual void divideEqual(const MEDCouplingTimeDiscretization *other) throw(INTERP_KERNEL::Exception);
- virtual MEDCouplingTimeDiscretization *pow(const MEDCouplingTimeDiscretization *other) const throw(INTERP_KERNEL::Exception);
- virtual void powEqual(const MEDCouplingTimeDiscretization *other) throw(INTERP_KERNEL::Exception);
- virtual MEDCouplingTimeDiscretization *performCpy(bool deepCpy) const throw(INTERP_KERNEL::Exception);
+ virtual void copyTinyAttrFrom(const MEDCouplingTimeDiscretization& other);
+ virtual void copyTinyStringsFrom(const MEDCouplingTimeDiscretization& other);
+ virtual void checkConsistencyLight() const;
+ virtual bool areCompatible(const MEDCouplingTimeDiscretization *other) const;
+ virtual bool areStrictlyCompatible(const MEDCouplingTimeDiscretization *other, std::string& reason) const;
+ virtual bool areStrictlyCompatibleForMul(const MEDCouplingTimeDiscretization *other) const;
+ virtual bool areStrictlyCompatibleForDiv(const MEDCouplingTimeDiscretization *other) const;
+ virtual bool areCompatibleForMeld(const MEDCouplingTimeDiscretization *other) const;
+ virtual bool isEqualIfNotWhy(const MEDCouplingTimeDiscretization *other, double prec, std::string& reason) const;
+ virtual bool isEqual(const MEDCouplingTimeDiscretization *other, double prec) const;
+ virtual bool isEqualWithoutConsideringStr(const MEDCouplingTimeDiscretization *other, double prec) const;
+ virtual MEDCouplingTimeDiscretization *buildNewTimeReprFromThis(TypeOfTimeDiscretization type, bool deepCopy) const;
+ virtual std::string getStringRepr() const;
+ virtual TypeOfTimeDiscretization getEnum() const;
+ virtual void synchronizeTimeWith(const MEDCouplingMesh *mesh);
+ virtual MEDCouplingTimeDiscretization *aggregate(const MEDCouplingTimeDiscretization *other) const;
+ virtual MEDCouplingTimeDiscretization *aggregate(const std::vector<const MEDCouplingTimeDiscretization *>& other) const;
+ virtual MEDCouplingTimeDiscretization *meld(const MEDCouplingTimeDiscretization *other) const;
+ virtual MEDCouplingTimeDiscretization *dot(const MEDCouplingTimeDiscretization *other) const;
+ virtual MEDCouplingTimeDiscretization *crossProduct(const MEDCouplingTimeDiscretization *other) const;
+ virtual MEDCouplingTimeDiscretization *max(const MEDCouplingTimeDiscretization *other) const;
+ virtual MEDCouplingTimeDiscretization *min(const MEDCouplingTimeDiscretization *other) const;
+ virtual MEDCouplingTimeDiscretization *add(const MEDCouplingTimeDiscretization *other) const;
+ virtual void addEqual(const MEDCouplingTimeDiscretization *other);
+ virtual MEDCouplingTimeDiscretization *substract(const MEDCouplingTimeDiscretization *other) const;
+ virtual void substractEqual(const MEDCouplingTimeDiscretization *other);
+ virtual MEDCouplingTimeDiscretization *multiply(const MEDCouplingTimeDiscretization *other) const;
+ virtual void multiplyEqual(const MEDCouplingTimeDiscretization *other);
+ virtual MEDCouplingTimeDiscretization *divide(const MEDCouplingTimeDiscretization *other) const;
+ virtual void divideEqual(const MEDCouplingTimeDiscretization *other);
+ virtual MEDCouplingTimeDiscretization *pow(const MEDCouplingTimeDiscretization *other) const;
+ virtual void powEqual(const MEDCouplingTimeDiscretization *other);
+ virtual MEDCouplingTimeDiscretization *performCopyOrIncrRef(bool deepCopy) const;
void setTimeTolerance(double val);
double getTimeTolerance() const;
- virtual void checkNoTimePresence() const throw(INTERP_KERNEL::Exception);
- virtual void checkTimePresence(double time) const throw(INTERP_KERNEL::Exception);
- virtual void setArray(DataArrayDouble *array, TimeLabel *owner) throw(INTERP_KERNEL::Exception);
- virtual void setEndArray(DataArrayDouble *array, TimeLabel *owner) throw(INTERP_KERNEL::Exception);
- virtual void setArrays(const std::vector<DataArrayDouble *>& arrays, TimeLabel *owner) throw(INTERP_KERNEL::Exception);
- DataArrayDouble *getArray() throw(INTERP_KERNEL::Exception);
- const DataArrayDouble *getArray() const throw(INTERP_KERNEL::Exception);
- virtual const DataArrayDouble *getEndArray() const throw(INTERP_KERNEL::Exception);
- virtual DataArrayDouble *getEndArray() throw(INTERP_KERNEL::Exception);
- virtual std::vector< const DataArrayDouble *> getArraysForTime(double time) const throw(INTERP_KERNEL::Exception);
- virtual void getValueForTime(double time, const std::vector<double>& vals, double *res) const throw(INTERP_KERNEL::Exception);
- virtual void getArrays(std::vector<DataArrayDouble *>& arrays) const throw(INTERP_KERNEL::Exception);
- virtual bool isBefore(const MEDCouplingTimeDiscretization *other) const throw(INTERP_KERNEL::Exception);
- virtual bool isStrictlyBefore(const MEDCouplingTimeDiscretization *other) const throw(INTERP_KERNEL::Exception);
- double getTime(int& iteration, int& order) const throw(INTERP_KERNEL::Exception);
- virtual double getStartTime(int& iteration, int& order) const throw(INTERP_KERNEL::Exception);
- virtual double getEndTime(int& iteration, int& order) const throw(INTERP_KERNEL::Exception);
- void setTime(double time, int iteration, int order) throw(INTERP_KERNEL::Exception);
- void setIteration(int it) throw(INTERP_KERNEL::Exception);
- void setOrder(int order) throw(INTERP_KERNEL::Exception);
- void setTimeValue(double val) throw(INTERP_KERNEL::Exception);
- virtual void setStartIteration(int it) throw(INTERP_KERNEL::Exception);
- virtual void setEndIteration(int it) throw(INTERP_KERNEL::Exception);
- virtual void setStartOrder(int order) throw(INTERP_KERNEL::Exception);
- virtual void setEndOrder(int order) throw(INTERP_KERNEL::Exception);
- virtual void setStartTimeValue(double time) throw(INTERP_KERNEL::Exception);
- virtual void setEndTimeValue(double time) throw(INTERP_KERNEL::Exception);
- virtual void setStartTime(double time, int iteration, int order) throw(INTERP_KERNEL::Exception);
- virtual void setEndTime(double time, int iteration, int order) throw(INTERP_KERNEL::Exception);
- virtual void getValueOnTime(int eltId, double time, double *value) const throw(INTERP_KERNEL::Exception);
- virtual void getValueOnDiscTime(int eltId, int iteration, int order, double *value) const throw(INTERP_KERNEL::Exception);
+ virtual void checkNoTimePresence() const;
+ virtual void checkTimePresence(double time) const;
+ virtual void setArray(DataArrayDouble *array, TimeLabel *owner);
+ virtual void setEndArray(DataArrayDouble *array, TimeLabel *owner);
+ virtual void setArrays(const std::vector<DataArrayDouble *>& arrays, TimeLabel *owner);
+ DataArrayDouble *getArray();
+ const DataArrayDouble *getArray() const;
+ virtual const DataArrayDouble *getEndArray() const;
+ virtual DataArrayDouble *getEndArray();
+ virtual std::vector< const DataArrayDouble *> getArraysForTime(double time) const;
+ virtual void getValueForTime(double time, const std::vector<double>& vals, double *res) const;
+ virtual void getArrays(std::vector<DataArrayDouble *>& arrays) const;
+ virtual bool isBefore(const MEDCouplingTimeDiscretization *other) const;
+ virtual bool isStrictlyBefore(const MEDCouplingTimeDiscretization *other) const;
+ double getTime(int& iteration, int& order) const;
+ virtual double getStartTime(int& iteration, int& order) const;
+ virtual double getEndTime(int& iteration, int& order) const;
+ void setTime(double time, int iteration, int order);
+ void setIteration(int it);
+ void setOrder(int order);
+ void setTimeValue(double val);
+ virtual void setStartIteration(int it);
+ virtual void setEndIteration(int it);
+ virtual void setStartOrder(int order);
+ virtual void setEndOrder(int order);
+ virtual void setStartTimeValue(double time);
+ virtual void setEndTimeValue(double time);
+ virtual void setStartTime(double time, int iteration, int order);
+ virtual void setEndTime(double time, int iteration, int order);
+ virtual void getValueOnTime(int eltId, double time, double *value) const;
+ virtual void getValueOnDiscTime(int eltId, int iteration, int order, double *value) const;
//
- virtual MEDCouplingTimeDiscretization *doublyContractedProduct() const throw(INTERP_KERNEL::Exception);
- virtual MEDCouplingTimeDiscretization *determinant() const throw(INTERP_KERNEL::Exception);
- virtual MEDCouplingTimeDiscretization *eigenValues() const throw(INTERP_KERNEL::Exception);
- virtual MEDCouplingTimeDiscretization *eigenVectors() const throw(INTERP_KERNEL::Exception);
- virtual MEDCouplingTimeDiscretization *inverse() const throw(INTERP_KERNEL::Exception);
- virtual MEDCouplingTimeDiscretization *trace() const throw(INTERP_KERNEL::Exception);
- virtual MEDCouplingTimeDiscretization *deviator() const throw(INTERP_KERNEL::Exception);
- virtual MEDCouplingTimeDiscretization *magnitude() const throw(INTERP_KERNEL::Exception);
- virtual MEDCouplingTimeDiscretization *negate() const throw(INTERP_KERNEL::Exception);
- virtual MEDCouplingTimeDiscretization *maxPerTuple() const throw(INTERP_KERNEL::Exception);
- virtual MEDCouplingTimeDiscretization *keepSelectedComponents(const std::vector<int>& compoIds) const throw(INTERP_KERNEL::Exception);
- virtual void setSelectedComponents(const MEDCouplingTimeDiscretization *other, const std::vector<int>& compoIds) throw(INTERP_KERNEL::Exception);
- virtual void changeNbOfComponents(int newNbOfComp, double dftValue) throw(INTERP_KERNEL::Exception);
- virtual void sortPerTuple(bool asc) throw(INTERP_KERNEL::Exception);
- virtual void setUniformValue(int nbOfTuple, int nbOfCompo, double value) throw(INTERP_KERNEL::Exception);
- virtual void setOrCreateUniformValueOnAllComponents(int nbOfTuple, double value) throw(INTERP_KERNEL::Exception);
- virtual void applyLin(double a, double b, int compoId) throw(INTERP_KERNEL::Exception);
- virtual void applyFunc(int nbOfComp, FunctionToEvaluate func) throw(INTERP_KERNEL::Exception);
- virtual void applyFunc(int nbOfComp, const char *func) throw(INTERP_KERNEL::Exception);
- virtual void applyFunc2(int nbOfComp, const char *func) throw(INTERP_KERNEL::Exception);
- virtual void applyFunc3(int nbOfComp, const std::vector<std::string>& varsOrder, const char *func) throw(INTERP_KERNEL::Exception);
- virtual void applyFunc(const char *func) throw(INTERP_KERNEL::Exception);
- virtual void applyFuncFast32(const char *func) throw(INTERP_KERNEL::Exception);
- virtual void applyFuncFast64(const char *func) throw(INTERP_KERNEL::Exception);
- virtual void fillFromAnalytic(const DataArrayDouble *loc, int nbOfComp, FunctionToEvaluate func) throw(INTERP_KERNEL::Exception);
- virtual void fillFromAnalytic(const DataArrayDouble *loc, int nbOfComp, const char *func) throw(INTERP_KERNEL::Exception);
- virtual void fillFromAnalytic2(const DataArrayDouble *loc, int nbOfComp, const char *func) throw(INTERP_KERNEL::Exception);
- virtual void fillFromAnalytic3(const DataArrayDouble *loc, int nbOfComp, const std::vector<std::string>& varsOrder, const char *func) throw(INTERP_KERNEL::Exception);
+ virtual MEDCouplingTimeDiscretization *doublyContractedProduct() const;
+ virtual MEDCouplingTimeDiscretization *determinant() const;
+ virtual MEDCouplingTimeDiscretization *eigenValues() const;
+ virtual MEDCouplingTimeDiscretization *eigenVectors() const;
+ virtual MEDCouplingTimeDiscretization *inverse() const;
+ virtual MEDCouplingTimeDiscretization *trace() const;
+ virtual MEDCouplingTimeDiscretization *deviator() const;
+ virtual MEDCouplingTimeDiscretization *magnitude() const;
+ virtual MEDCouplingTimeDiscretization *negate() const;
+ virtual MEDCouplingTimeDiscretization *maxPerTuple() const;
+ virtual MEDCouplingTimeDiscretization *keepSelectedComponents(const std::vector<int>& compoIds) const;
+ virtual void setSelectedComponents(const MEDCouplingTimeDiscretization *other, const std::vector<std::size_t>& compoIds);
+ virtual void changeNbOfComponents(std::size_t newNbOfComp, double dftValue);
+ virtual void sortPerTuple(bool asc);
+ virtual void setUniformValue(int nbOfTuple, int nbOfCompo, double value);
+ virtual void setOrCreateUniformValueOnAllComponents(int nbOfTuple, double value);
+ virtual void applyLin(double a, double b, int compoId);
+ virtual void applyFunc(int nbOfComp, FunctionToEvaluate func);
+ virtual void applyFunc(int nbOfComp, const char *func);
+ virtual void applyFuncCompo(int nbOfComp, const char *func);
+ virtual void applyFuncNamedCompo(int nbOfComp, const std::vector<std::string>& varsOrder, const char *func);
+ virtual void applyFunc(const char *func);
+ virtual void applyFuncFast32(const char *func);
+ virtual void applyFuncFast64(const char *func);
+ virtual void fillFromAnalytic(const DataArrayDouble *loc, int nbOfComp, FunctionToEvaluate func);
+ virtual void fillFromAnalytic(const DataArrayDouble *loc, int nbOfComp, const char *func);
+ virtual void fillFromAnalyticCompo(const DataArrayDouble *loc, int nbOfComp, const char *func);
+ virtual void fillFromAnalyticNamedCompo(const DataArrayDouble *loc, int nbOfComp, const std::vector<std::string>& varsOrder, const char *func);
//
virtual ~MEDCouplingTimeDiscretization();
};
{
public:
MEDCouplingNoTimeLabel();
- MEDCouplingNoTimeLabel(const MEDCouplingTimeDiscretization& other, bool deepCpy);
+ MEDCouplingNoTimeLabel(const MEDCouplingTimeDiscretization& other, bool deepCopy);
public:
static const TypeOfTimeDiscretization DISCRETIZATION=NO_TIME;
static const char REPR[];
{
protected:
MEDCouplingConstOnTimeInterval();
- MEDCouplingConstOnTimeInterval(const MEDCouplingConstOnTimeInterval& other, bool deepCpy);
+ MEDCouplingConstOnTimeInterval(const MEDCouplingConstOnTimeInterval& other, bool deepCopy);
public:
static const TypeOfTimeDiscretization DISCRETIZATION=CONST_ON_TIME_INTERVAL;
static const char REPR[];