From: abn Date: Wed, 20 Feb 2019 14:19:36 +0000 (+0100) Subject: SWIG: Full clean up of "throw" specifications. X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fabn%2Fswig_except;p=tools%2Fmedcoupling.git SWIG: Full clean up of "throw" specifications. --- diff --git a/src/MEDCoupling_Swig/MEDCouplingCommon.i b/src/MEDCoupling_Swig/MEDCouplingCommon.i index 9efbd2809..0d2416962 100644 --- a/src/MEDCoupling_Swig/MEDCouplingCommon.i +++ b/src/MEDCoupling_Swig/MEDCouplingCommon.i @@ -516,22 +516,22 @@ namespace INTERP_KERNEL { public: BoxSplittingOptions(); - void init() throw(INTERP_KERNEL::Exception); - double getEfficiencyGoal() const throw(INTERP_KERNEL::Exception); - void setEfficiencyGoal(double efficiency) throw(INTERP_KERNEL::Exception); - double getEfficiencyThreshold() const throw(INTERP_KERNEL::Exception); - void setEfficiencyThreshold(double efficiencyThreshold) throw(INTERP_KERNEL::Exception); - int getMinimumPatchLength() const throw(INTERP_KERNEL::Exception); - void setMinimumPatchLength(int minPatchLength) throw(INTERP_KERNEL::Exception); - int getMaximumPatchLength() const throw(INTERP_KERNEL::Exception); - void setMaximumPatchLength(int maxPatchLength) throw(INTERP_KERNEL::Exception); - int getMaximumNbOfCellsInPatch() const throw(INTERP_KERNEL::Exception); - void setMaximumNbOfCellsInPatch(int maxNbCellsInPatch) throw(INTERP_KERNEL::Exception); - void copyOptions(const BoxSplittingOptions & other) throw(INTERP_KERNEL::Exception); - std::string printOptions() const throw(INTERP_KERNEL::Exception); + void init(); + double getEfficiencyGoal() const; + void setEfficiencyGoal(double efficiency); + double getEfficiencyThreshold() const; + void setEfficiencyThreshold(double efficiencyThreshold); + int getMinimumPatchLength() const; + void setMinimumPatchLength(int minPatchLength); + int getMaximumPatchLength() const; + void setMaximumPatchLength(int maxPatchLength); + int getMaximumNbOfCellsInPatch() const; + void setMaximumNbOfCellsInPatch(int maxNbCellsInPatch); + void copyOptions(const BoxSplittingOptions & other); + std::string printOptions() const; %extend { - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->printOptions(); } @@ -586,12 +586,12 @@ namespace MEDCoupling %extend MEDCouplingGaussLocalization { - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->getStringRepr(); } - std::string __repr__() const throw(INTERP_KERNEL::Exception) + std::string __repr__() const { std::ostringstream oss; oss << "MEDCouplingGaussLocalization C++ instance at " << self << "." << std::endl; oss << self->getStringRepr(); @@ -611,63 +611,63 @@ namespace MEDCoupling void setTime(double val, int iteration, int order); void setTimeUnit(const std::string& unit); std::string getTimeUnit() const; - virtual MEDCouplingMeshType getType() const throw(INTERP_KERNEL::Exception); - bool isStructured() const throw(INTERP_KERNEL::Exception); - virtual MEDCouplingMesh *deepCopy() const throw(INTERP_KERNEL::Exception); - virtual MEDCouplingMesh *clone(bool recDeepCpy) const throw(INTERP_KERNEL::Exception); - virtual bool isEqual(const MEDCouplingMesh *other, double prec) const throw(INTERP_KERNEL::Exception); - virtual bool isEqualWithoutConsideringStr(const MEDCouplingMesh *other, double prec) const throw(INTERP_KERNEL::Exception); - virtual void checkFastEquivalWith(const MEDCouplingMesh *other, double prec) const throw(INTERP_KERNEL::Exception); - virtual void copyTinyStringsFrom(const MEDCouplingMesh *other) throw(INTERP_KERNEL::Exception); - virtual void copyTinyInfoFrom(const MEDCouplingMesh *other) throw(INTERP_KERNEL::Exception); - virtual void checkConsistencyLight() const throw(INTERP_KERNEL::Exception); - virtual void checkConsistency(double eps=1e-12) const throw(INTERP_KERNEL::Exception); - virtual int getNumberOfCells() const throw(INTERP_KERNEL::Exception); - virtual int getNumberOfNodes() const throw(INTERP_KERNEL::Exception); - virtual int getSpaceDimension() const throw(INTERP_KERNEL::Exception); - virtual int getMeshDimension() const throw(INTERP_KERNEL::Exception); - virtual DataArrayDouble *getCoordinatesAndOwner() const throw(INTERP_KERNEL::Exception); - virtual DataArrayDouble *computeCellCenterOfMass() const throw(INTERP_KERNEL::Exception); - virtual DataArrayDouble *computeIsoBarycenterOfNodesPerCell() const throw(INTERP_KERNEL::Exception); - virtual DataArrayInt *giveCellsWithType(INTERP_KERNEL::NormalizedCellType type) const throw(INTERP_KERNEL::Exception); - virtual DataArrayInt *computeNbOfNodesPerCell() const throw(INTERP_KERNEL::Exception); - virtual DataArrayInt *computeNbOfFacesPerCell() const throw(INTERP_KERNEL::Exception); - virtual DataArrayInt *computeEffectiveNbOfNodesPerCell() const throw(INTERP_KERNEL::Exception); - virtual MEDCouplingMesh *buildPartRange(int beginCellIds, int endCellIds, int stepCellIds) const throw(INTERP_KERNEL::Exception); - virtual int getNumberOfCellsWithType(INTERP_KERNEL::NormalizedCellType type) const throw(INTERP_KERNEL::Exception); - virtual INTERP_KERNEL::NormalizedCellType getTypeOfCell(int cellId) const throw(INTERP_KERNEL::Exception); - virtual std::string simpleRepr() const throw(INTERP_KERNEL::Exception); - virtual std::string advancedRepr() const throw(INTERP_KERNEL::Exception); - std::string writeVTK(const std::string& fileName, bool isBinary=true) const throw(INTERP_KERNEL::Exception); + virtual MEDCouplingMeshType getType() const; + bool isStructured() const; + virtual MEDCouplingMesh *deepCopy() const; + virtual MEDCouplingMesh *clone(bool recDeepCpy) const; + virtual bool isEqual(const MEDCouplingMesh *other, double prec) const; + virtual bool isEqualWithoutConsideringStr(const MEDCouplingMesh *other, double prec) const; + virtual void checkFastEquivalWith(const MEDCouplingMesh *other, double prec) const; + virtual void copyTinyStringsFrom(const MEDCouplingMesh *other); + virtual void copyTinyInfoFrom(const MEDCouplingMesh *other); + virtual void checkConsistencyLight() const; + virtual void checkConsistency(double eps=1e-12) const; + virtual int getNumberOfCells() const; + virtual int getNumberOfNodes() const; + virtual int getSpaceDimension() const; + virtual int getMeshDimension() const; + virtual DataArrayDouble *getCoordinatesAndOwner() const; + virtual DataArrayDouble *computeCellCenterOfMass() const; + virtual DataArrayDouble *computeIsoBarycenterOfNodesPerCell() const; + virtual DataArrayInt *giveCellsWithType(INTERP_KERNEL::NormalizedCellType type) const; + virtual DataArrayInt *computeNbOfNodesPerCell() const; + virtual DataArrayInt *computeNbOfFacesPerCell() const; + virtual DataArrayInt *computeEffectiveNbOfNodesPerCell() const; + virtual MEDCouplingMesh *buildPartRange(int beginCellIds, int endCellIds, int stepCellIds) const; + virtual int getNumberOfCellsWithType(INTERP_KERNEL::NormalizedCellType type) const; + virtual INTERP_KERNEL::NormalizedCellType getTypeOfCell(int cellId) const; + virtual std::string simpleRepr() const; + virtual std::string advancedRepr() const; + std::string writeVTK(const std::string& fileName, bool isBinary=true) const; virtual std::string getVTKFileExtension() const; std::string getVTKFileNameOf(const std::string& fileName) const; // tools - virtual MEDCouplingFieldDouble *getMeasureField(bool isAbs) const throw(INTERP_KERNEL::Exception); - virtual MEDCouplingFieldDouble *getMeasureFieldOnNode(bool isAbs) const throw(INTERP_KERNEL::Exception); - virtual MEDCouplingFieldDouble *fillFromAnalytic(TypeOfField t, int nbOfComp, const std::string& func) const throw(INTERP_KERNEL::Exception); - virtual MEDCouplingFieldDouble *fillFromAnalyticCompo(TypeOfField t, int nbOfComp, const std::string& func) const throw(INTERP_KERNEL::Exception); - virtual MEDCouplingFieldDouble *fillFromAnalyticNamedCompo(TypeOfField t, int nbOfComp, const std::vector& varsOrder, const std::string& func) const throw(INTERP_KERNEL::Exception); - virtual MEDCouplingFieldDouble *buildOrthogonalField() const throw(INTERP_KERNEL::Exception); - virtual MEDCouplingUMesh *buildUnstructured() const throw(INTERP_KERNEL::Exception); - virtual MEDCouplingMesh *mergeMyselfWith(const MEDCouplingMesh *other) const throw(INTERP_KERNEL::Exception); - virtual bool areCompatibleForMerge(const MEDCouplingMesh *other) const throw(INTERP_KERNEL::Exception); - virtual DataArrayInt *simplexize(int policy) throw(INTERP_KERNEL::Exception); - virtual void unserialization(const std::vector& tinyInfoD, const std::vector& tinyInfo, const DataArrayInt *a1, DataArrayDouble *a2, const std::vector& littleStrings) throw(INTERP_KERNEL::Exception); - static MEDCouplingMesh *MergeMeshes(const MEDCouplingMesh *mesh1, const MEDCouplingMesh *mesh2) throw(INTERP_KERNEL::Exception); - static bool IsStaticGeometricType(INTERP_KERNEL::NormalizedCellType type) throw(INTERP_KERNEL::Exception); - static bool IsLinearGeometricType(INTERP_KERNEL::NormalizedCellType type) throw(INTERP_KERNEL::Exception); - static INTERP_KERNEL::NormalizedCellType GetCorrespondingPolyType(INTERP_KERNEL::NormalizedCellType type) throw(INTERP_KERNEL::Exception); - static int GetNumberOfNodesOfGeometricType(INTERP_KERNEL::NormalizedCellType type) throw(INTERP_KERNEL::Exception); - static int GetDimensionOfGeometricType(INTERP_KERNEL::NormalizedCellType type) throw(INTERP_KERNEL::Exception); - static const char *GetReprOfGeometricType(INTERP_KERNEL::NormalizedCellType type) throw(INTERP_KERNEL::Exception); + virtual MEDCouplingFieldDouble *getMeasureField(bool isAbs) const; + virtual MEDCouplingFieldDouble *getMeasureFieldOnNode(bool isAbs) const; + virtual MEDCouplingFieldDouble *fillFromAnalytic(TypeOfField t, int nbOfComp, const std::string& func) const; + virtual MEDCouplingFieldDouble *fillFromAnalyticCompo(TypeOfField t, int nbOfComp, const std::string& func) const; + virtual MEDCouplingFieldDouble *fillFromAnalyticNamedCompo(TypeOfField t, int nbOfComp, const std::vector& varsOrder, const std::string& func) const; + virtual MEDCouplingFieldDouble *buildOrthogonalField() const; + virtual MEDCouplingUMesh *buildUnstructured() const; + virtual MEDCouplingMesh *mergeMyselfWith(const MEDCouplingMesh *other) const; + virtual bool areCompatibleForMerge(const MEDCouplingMesh *other) const; + virtual DataArrayInt *simplexize(int policy); + virtual void unserialization(const std::vector& tinyInfoD, const std::vector& tinyInfo, const DataArrayInt *a1, DataArrayDouble *a2, const std::vector& littleStrings); + static MEDCouplingMesh *MergeMeshes(const MEDCouplingMesh *mesh1, const MEDCouplingMesh *mesh2); + static bool IsStaticGeometricType(INTERP_KERNEL::NormalizedCellType type); + static bool IsLinearGeometricType(INTERP_KERNEL::NormalizedCellType type); + static INTERP_KERNEL::NormalizedCellType GetCorrespondingPolyType(INTERP_KERNEL::NormalizedCellType type); + static int GetNumberOfNodesOfGeometricType(INTERP_KERNEL::NormalizedCellType type); + static int GetDimensionOfGeometricType(INTERP_KERNEL::NormalizedCellType type); + static const char *GetReprOfGeometricType(INTERP_KERNEL::NormalizedCellType type); %extend { - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->simpleRepr(); } - PyObject *getTime() throw(INTERP_KERNEL::Exception) + PyObject *getTime() { int tmp1,tmp2; double tmp0=self->getTime(tmp1,tmp2); @@ -678,7 +678,7 @@ namespace MEDCoupling return res; } - DataArrayDouble *getDirectAccessOfCoordsArrIfInStructure() const throw(INTERP_KERNEL::Exception) + DataArrayDouble *getDirectAccessOfCoordsArrIfInStructure() const { const DataArrayDouble *ret(self->getDirectAccessOfCoordsArrIfInStructure()); DataArrayDouble *ret2(const_cast(ret)); @@ -687,7 +687,7 @@ namespace MEDCoupling return ret2; } - int getCellContainingPoint(PyObject *p, double eps) const throw(INTERP_KERNEL::Exception) + int getCellContainingPoint(PyObject *p, double eps) const { double val; DataArrayDouble *a; @@ -700,7 +700,7 @@ namespace MEDCoupling return self->getCellContainingPoint(pos,eps); } - PyObject *getCellsContainingPoints(PyObject *p, int nbOfPoints, double eps) const throw(INTERP_KERNEL::Exception) + PyObject *getCellsContainingPoints(PyObject *p, int nbOfPoints, double eps) const { double val; DataArrayDouble *a; @@ -718,7 +718,7 @@ namespace MEDCoupling return ret; } - PyObject *getCellsContainingPointsLinearPartOnlyOnNonDynType(PyObject *p, int nbOfPoints, double eps) const throw(INTERP_KERNEL::Exception) + PyObject *getCellsContainingPointsLinearPartOnlyOnNonDynType(PyObject *p, int nbOfPoints, double eps) const { double val; DataArrayDouble *a; @@ -736,19 +736,19 @@ namespace MEDCoupling return ret; } - PyObject *getCellsContainingPoints(PyObject *p, double eps) const throw(INTERP_KERNEL::Exception) + PyObject *getCellsContainingPoints(PyObject *p, double eps) const { auto getCellsContainingPointsFunc=[self](const double *a, int b,double c, MCAuto& d, MCAuto& e) { self->getCellsContainingPoints(a,b,c,d,e); }; return Mesh_getCellsContainingPointsLike(p,eps,self,getCellsContainingPointsFunc); } - PyObject *getCellsContainingPointsLinearPartOnlyOnNonDynType(PyObject *p, double eps) const throw(INTERP_KERNEL::Exception) + PyObject *getCellsContainingPointsLinearPartOnlyOnNonDynType(PyObject *p, double eps) const { auto getCellsContainingPointsFunc=[self](const double *a, int b,double c, MCAuto& d, MCAuto& e) { self->getCellsContainingPointsLinearPartOnlyOnNonDynType(a,b,c,d,e); }; return Mesh_getCellsContainingPointsLike(p,eps,self,getCellsContainingPointsFunc); } - PyObject *getCellsContainingPoint(PyObject *p, double eps) const throw(INTERP_KERNEL::Exception) + PyObject *getCellsContainingPoint(PyObject *p, double eps) const { double val; DataArrayDouble *a; @@ -766,7 +766,7 @@ namespace MEDCoupling return SWIG_NewPointerObj(SWIG_as_voidptr(ret),SWIGTYPE_p_MEDCoupling__DataArrayInt, SWIG_POINTER_OWN | 0 ); } - virtual PyObject *getReverseNodalConnectivity() const throw(INTERP_KERNEL::Exception) + virtual PyObject *getReverseNodalConnectivity() const { MCAuto d0=DataArrayInt::New(); MCAuto d1=DataArrayInt::New(); @@ -777,7 +777,7 @@ namespace MEDCoupling return ret; } - void renumberCells(PyObject *li, bool check=true) throw(INTERP_KERNEL::Exception) + void renumberCells(PyObject *li, bool check=true) { int sw,sz(-1); int v0; std::vector v1; @@ -785,7 +785,7 @@ namespace MEDCoupling self->renumberCells(ids,check); } - PyObject *checkGeoEquivalWith(const MEDCouplingMesh *other, int levOfCheck, double prec) const throw(INTERP_KERNEL::Exception) + PyObject *checkGeoEquivalWith(const MEDCouplingMesh *other, int levOfCheck, double prec) const { DataArrayInt *cellCor, *nodeCor; self->checkGeoEquivalWith(other,levOfCheck,prec,cellCor,nodeCor); @@ -795,7 +795,7 @@ namespace MEDCoupling return res; } - PyObject *checkDeepEquivalWith(const MEDCouplingMesh *other, int cellCompPol, double prec) const throw(INTERP_KERNEL::Exception) + PyObject *checkDeepEquivalWith(const MEDCouplingMesh *other, int cellCompPol, double prec) const { DataArrayInt *cellCor=0,*nodeCor=0; self->checkDeepEquivalWith(other,cellCompPol,prec,cellCor,nodeCor); @@ -805,14 +805,14 @@ namespace MEDCoupling return res; } - DataArrayInt *checkDeepEquivalOnSameNodesWith(const MEDCouplingMesh *other, int cellCompPol, double prec) const throw(INTERP_KERNEL::Exception) + DataArrayInt *checkDeepEquivalOnSameNodesWith(const MEDCouplingMesh *other, int cellCompPol, double prec) const { DataArrayInt *cellCor=0; self->checkDeepEquivalOnSameNodesWith(other,cellCompPol,prec,cellCor); return cellCor; } - DataArrayInt *getCellIdsFullyIncludedInNodeIds(PyObject *li) const throw(INTERP_KERNEL::Exception) + DataArrayInt *getCellIdsFullyIncludedInNodeIds(PyObject *li) const { void *da=0; int res1=SWIG_ConvertPtr(li,&da,SWIGTYPE_p_MEDCoupling__DataArrayInt, 0 | 0 ); @@ -831,21 +831,21 @@ namespace MEDCoupling return self->getCellIdsFullyIncludedInNodeIds(da2->getConstPointer(),da2->getConstPointer()+da2->getNbOfElems()); } } - PyObject *getNodeIdsOfCell(int cellId) const throw(INTERP_KERNEL::Exception) + PyObject *getNodeIdsOfCell(int cellId) const { std::vector conn; self->getNodeIdsOfCell(cellId,conn); return convertIntArrToPyList2(conn); } - PyObject *getCoordinatesOfNode(int nodeId) const throw(INTERP_KERNEL::Exception) + PyObject *getCoordinatesOfNode(int nodeId) const { std::vector coo; self->getCoordinatesOfNode(nodeId,coo); return convertDblArrToPyList2(coo); } - void scale(PyObject *point, double factor) throw(INTERP_KERNEL::Exception) + void scale(PyObject *point, double factor) { double val; DataArrayDouble *a; @@ -858,7 +858,7 @@ namespace MEDCoupling self->scale(pointPtr,factor); } - PyObject *getBoundingBox() const throw(INTERP_KERNEL::Exception) + PyObject *getBoundingBox() const { int spaceDim=self->getSpaceDimension(); INTERP_KERNEL::AutoPtr tmp=new double[2*spaceDim]; @@ -867,7 +867,7 @@ namespace MEDCoupling return ret; } - PyObject *isEqualIfNotWhy(const MEDCouplingMesh *other, double prec) const throw(INTERP_KERNEL::Exception) + PyObject *isEqualIfNotWhy(const MEDCouplingMesh *other, double prec) const { std::string ret1; bool ret0=self->isEqualIfNotWhy(other,prec,ret1); @@ -879,7 +879,7 @@ namespace MEDCoupling return ret; } - PyObject *buildPart(PyObject *li) const throw(INTERP_KERNEL::Exception) + PyObject *buildPart(PyObject *li) const { int szArr,sw,iTypppArr; std::vector stdvecTyyppArr; @@ -896,7 +896,7 @@ namespace MEDCoupling return convertMesh(ret, SWIG_POINTER_OWN | 0 ); } - PyObject *buildPartAndReduceNodes(PyObject *li) const throw(INTERP_KERNEL::Exception) + PyObject *buildPartAndReduceNodes(PyObject *li) const { int szArr,sw,iTypppArr; std::vector stdvecTyyppArr; @@ -920,7 +920,7 @@ namespace MEDCoupling return res; } - PyObject *buildPartRangeAndReduceNodes(int beginCellIds, int endCellIds, int stepCellIds) const throw(INTERP_KERNEL::Exception) + PyObject *buildPartRangeAndReduceNodes(int beginCellIds, int endCellIds, int stepCellIds) const { int a,b,c; DataArrayInt *arr=0; @@ -937,7 +937,7 @@ namespace MEDCoupling return res; } - PyObject *getDistributionOfTypes() const throw(INTERP_KERNEL::Exception) + PyObject *getDistributionOfTypes() const { std::vector vals=self->getDistributionOfTypes(); if(vals.size()%3!=0) @@ -954,7 +954,7 @@ namespace MEDCoupling return ret; } - DataArrayInt *checkTypeConsistencyAndContig(PyObject *li, PyObject *li2) const throw(INTERP_KERNEL::Exception) + DataArrayInt *checkTypeConsistencyAndContig(PyObject *li, PyObject *li2) const { std::vector code; std::vector idsPerType; @@ -963,7 +963,7 @@ namespace MEDCoupling return self->checkTypeConsistencyAndContig(code,idsPerType); } - PyObject *splitProfilePerType(const DataArrayInt *profile, bool smartPflKiller=true) const throw(INTERP_KERNEL::Exception) + PyObject *splitProfilePerType(const DataArrayInt *profile, bool smartPflKiller=true) const { std::vector code; std::vector idsInPflPerType; @@ -996,7 +996,7 @@ namespace MEDCoupling return ret; } - void translate(PyObject *vector) throw(INTERP_KERNEL::Exception) + void translate(PyObject *vector) { double val; DataArrayDouble *a; @@ -1009,7 +1009,7 @@ namespace MEDCoupling self->translate(vectorPtr); } - void rotate(PyObject *center, double alpha) throw(INTERP_KERNEL::Exception) + void rotate(PyObject *center, double alpha) { const char msg[]="Python wrap of MEDCouplingPointSet::rotate : "; double val; @@ -1022,7 +1022,7 @@ namespace MEDCoupling self->rotate(centerPtr,0,alpha); } - void rotate(PyObject *center, PyObject *vector, double alpha) throw(INTERP_KERNEL::Exception) + void rotate(PyObject *center, PyObject *vector, double alpha) { const char msg[]="Python wrap of MEDCouplingPointSet::rotate : "; double val,val2; @@ -1036,7 +1036,7 @@ namespace MEDCoupling self->rotate(centerPtr,vectorPtr,alpha); } - PyObject *getAllGeoTypes() const throw(INTERP_KERNEL::Exception) + PyObject *getAllGeoTypes() const { std::set result=self->getAllGeoTypes(); std::set::const_iterator iL=result.begin(); @@ -1046,7 +1046,7 @@ namespace MEDCoupling return res; } - virtual PyObject *getTinySerializationInformation() const throw(INTERP_KERNEL::Exception) + virtual PyObject *getTinySerializationInformation() const { std::vector a0; std::vector a1; @@ -1065,7 +1065,7 @@ namespace MEDCoupling return ret; } - virtual PyObject *serialize() const throw(INTERP_KERNEL::Exception) + virtual PyObject *serialize() const { DataArrayInt *a0Tmp(0); DataArrayDouble *a1Tmp(0); @@ -1076,13 +1076,13 @@ namespace MEDCoupling return ret; } - void resizeForUnserialization(const std::vector& tinyInfo, DataArrayInt *a1, DataArrayDouble *a2) const throw(INTERP_KERNEL::Exception) + void resizeForUnserialization(const std::vector& tinyInfo, DataArrayInt *a1, DataArrayDouble *a2) const { std::vector littleStrings; self->resizeForUnserialization(tinyInfo,a1,a2,littleStrings); } - PyObject *__getstate__() const throw(INTERP_KERNEL::Exception) + PyObject *__getstate__() const { PyObject *ret0(MEDCoupling_MEDCouplingMesh_getTinySerializationInformation(self)); PyObject *ret1(MEDCoupling_MEDCouplingMesh_serialize(self)); @@ -1092,7 +1092,7 @@ namespace MEDCoupling return ret; } - void __setstate__(PyObject *inp) throw(INTERP_KERNEL::Exception) + void __setstate__(PyObject *inp) { static const char MSG[]="MEDCouplingMesh.__setstate__ : expected input is a tuple of size 2 !"; if(!PyTuple_Check(inp)) @@ -1134,7 +1134,7 @@ namespace MEDCoupling self->unserialization(a0,a1,b0,b1,a2); } - static MEDCouplingMesh *MergeMeshes(PyObject *li) throw(INTERP_KERNEL::Exception) + static MEDCouplingMesh *MergeMeshes(PyObject *li) { std::vector tmp; convertFromPyObjVectorOfObj(li,SWIGTYPE_p_MEDCoupling__MEDCouplingMesh,"MEDCouplingMesh",tmp); @@ -1154,7 +1154,7 @@ namespace MEDCoupling class MEDCouplingNatureOfField { public: - static const char *GetRepr(NatureOfField nat) throw(INTERP_KERNEL::Exception); + static const char *GetRepr(NatureOfField nat); static std::string GetReprNoThrow(NatureOfField nat); static std::string GetAllPossibilitiesStr(); }; @@ -1169,41 +1169,41 @@ namespace MEDCoupling { public: MEDCouplingGaussLocalization(INTERP_KERNEL::NormalizedCellType type, const std::vector& refCoo, - const std::vector& gsCoo, const std::vector& w) throw(INTERP_KERNEL::Exception); - MEDCouplingGaussLocalization(INTERP_KERNEL::NormalizedCellType typ) throw(INTERP_KERNEL::Exception); - INTERP_KERNEL::NormalizedCellType getType() const throw(INTERP_KERNEL::Exception); - void setType(INTERP_KERNEL::NormalizedCellType typ) throw(INTERP_KERNEL::Exception); - int getNumberOfGaussPt() const throw(INTERP_KERNEL::Exception); - int getDimension() const throw(INTERP_KERNEL::Exception); - int getNumberOfPtsInRefCell() const throw(INTERP_KERNEL::Exception); - std::string getStringRepr() const throw(INTERP_KERNEL::Exception); - void checkConsistencyLight() const throw(INTERP_KERNEL::Exception); - bool isEqual(const MEDCouplingGaussLocalization& other, double eps) const throw(INTERP_KERNEL::Exception); + const std::vector& gsCoo, const std::vector& w); + MEDCouplingGaussLocalization(INTERP_KERNEL::NormalizedCellType typ); + INTERP_KERNEL::NormalizedCellType getType() const; + void setType(INTERP_KERNEL::NormalizedCellType typ); + int getNumberOfGaussPt() const; + int getDimension() const; + int getNumberOfPtsInRefCell() const; + std::string getStringRepr() const; + void checkConsistencyLight() const; + bool isEqual(const MEDCouplingGaussLocalization& other, double eps) const; // - const std::vector& getRefCoords() const throw(INTERP_KERNEL::Exception); - double getRefCoord(int ptIdInCell, int comp) const throw(INTERP_KERNEL::Exception); - const std::vector& getGaussCoords() const throw(INTERP_KERNEL::Exception); - double getGaussCoord(int gaussPtIdInCell, int comp) const throw(INTERP_KERNEL::Exception); - const std::vector& getWeights() const throw(INTERP_KERNEL::Exception); - double getWeight(int gaussPtIdInCell, double newVal) const throw(INTERP_KERNEL::Exception); - void setRefCoord(int ptIdInCell, int comp, double newVal) throw(INTERP_KERNEL::Exception); - void setGaussCoord(int gaussPtIdInCell, int comp, double newVal) throw(INTERP_KERNEL::Exception); - void setWeight(int gaussPtIdInCell, double newVal) throw(INTERP_KERNEL::Exception); - void setRefCoords(const std::vector& refCoo) throw(INTERP_KERNEL::Exception); - void setGaussCoords(const std::vector& gsCoo) throw(INTERP_KERNEL::Exception); - void setWeights(const std::vector& w) throw(INTERP_KERNEL::Exception); + const std::vector& getRefCoords() const; + double getRefCoord(int ptIdInCell, int comp) const; + const std::vector& getGaussCoords() const; + double getGaussCoord(int gaussPtIdInCell, int comp) const; + const std::vector& getWeights() const; + double getWeight(int gaussPtIdInCell, double newVal) const; + void setRefCoord(int ptIdInCell, int comp, double newVal); + void setGaussCoord(int gaussPtIdInCell, int comp, double newVal); + void setWeight(int gaussPtIdInCell, double newVal); + void setRefCoords(const std::vector& refCoo); + void setGaussCoords(const std::vector& gsCoo); + void setWeights(const std::vector& w); // static bool AreAlmostEqual(const std::vector& v1, const std::vector& v2, double eps); // %extend { - DataArrayDouble *localizePtsInRefCooForEachCell(const DataArrayDouble *ptsInRefCoo, const MEDCouplingUMesh *mesh) const throw(INTERP_KERNEL::Exception) + DataArrayDouble *localizePtsInRefCooForEachCell(const DataArrayDouble *ptsInRefCoo, const MEDCouplingUMesh *mesh) const { MCAuto ret(self->localizePtsInRefCooForEachCell(ptsInRefCoo,mesh)); return ret.retn(); } - MEDCouplingUMesh *buildRefCell() const throw(INTERP_KERNEL::Exception) + MEDCouplingUMesh *buildRefCell() const { MCAuto ret(self->buildRefCell()); return ret.retn(); @@ -1214,7 +1214,7 @@ namespace MEDCoupling class MEDCouplingSkyLineArray { public: - static MEDCouplingSkyLineArray *BuildFromPolyhedronConn( const DataArrayInt* c, const DataArrayInt* cI ) throw(INTERP_KERNEL::Exception); + static MEDCouplingSkyLineArray *BuildFromPolyhedronConn( const DataArrayInt* c, const DataArrayInt* cI ); void set( DataArrayInt* index, DataArrayInt* value ); void set3( DataArrayInt* superIndex, DataArrayInt* index, DataArrayInt* value ); @@ -1223,34 +1223,34 @@ namespace MEDCoupling int getNumberOf() const; int getLength() const; - void deletePack(const int i, const int j) throw(INTERP_KERNEL::Exception); + void deletePack(const int i, const int j); - void deleteSimplePack(const int i) throw(INTERP_KERNEL::Exception); - void deleteSimplePacks(const DataArrayInt* idx) throw(INTERP_KERNEL::Exception); + void deleteSimplePack(const int i); + void deleteSimplePacks(const DataArrayInt* idx); %extend { - MEDCouplingSkyLineArray() throw(INTERP_KERNEL::Exception) + MEDCouplingSkyLineArray() { return MEDCouplingSkyLineArray::New(); } - MEDCouplingSkyLineArray( const std::vector& index, const std::vector& value) throw(INTERP_KERNEL::Exception) + MEDCouplingSkyLineArray( const std::vector& index, const std::vector& value) { return MEDCouplingSkyLineArray::New(index, value); } - MEDCouplingSkyLineArray( DataArrayInt* index, DataArrayInt* value ) throw(INTERP_KERNEL::Exception) + MEDCouplingSkyLineArray( DataArrayInt* index, DataArrayInt* value ) { return MEDCouplingSkyLineArray::New(index, value); } - MEDCouplingSkyLineArray( const MEDCouplingSkyLineArray & other ) throw(INTERP_KERNEL::Exception) + MEDCouplingSkyLineArray( const MEDCouplingSkyLineArray & other ) { return MEDCouplingSkyLineArray::New(other); } - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->simpleRepr(); } @@ -1279,14 +1279,14 @@ namespace MEDCoupling return ret; } - PyObject *getSimplePackSafe(int absolutePackId) const throw(INTERP_KERNEL::Exception) + PyObject *getSimplePackSafe(int absolutePackId) const { std::vector ret; self->getSimplePackSafe(absolutePackId,ret); return convertIntArrToPyList2(ret); } - PyObject *findPackIds(PyObject *superPackIndices, PyObject *pack) const throw(INTERP_KERNEL::Exception) + PyObject *findPackIds(PyObject *superPackIndices, PyObject *pack) const { std::vector vpack, vspIdx, out; @@ -1297,35 +1297,35 @@ namespace MEDCoupling return convertIntArrToPyList2(out); } - void pushBackPack(const int i, PyObject *pack) throw(INTERP_KERNEL::Exception) + void pushBackPack(const int i, PyObject *pack) { std::vector vpack; convertPyToNewIntArr3(pack,vpack); self->pushBackPack(i,vpack.data(), vpack.data()+vpack.size()); } - void replaceSimplePack(const int idx, PyObject *pack) throw(INTERP_KERNEL::Exception) + void replaceSimplePack(const int idx, PyObject *pack) { std::vector vpack; convertPyToNewIntArr3(pack,vpack); self->replaceSimplePack(idx, vpack.data(), vpack.data()+vpack.size()); } - void replaceSimplePacks(const DataArrayInt* idx, PyObject *listePacks) throw(INTERP_KERNEL::Exception) + void replaceSimplePacks(const DataArrayInt* idx, PyObject *listePacks) { std::vector packs; convertFromPyObjVectorOfObj(listePacks,SWIGTYPE_p_MEDCoupling__DataArrayInt,"DataArrayInt",packs); self->replaceSimplePacks(idx, packs); } - void replacePack(const int superIdx, const int idx, PyObject *pack) throw(INTERP_KERNEL::Exception) + void replacePack(const int superIdx, const int idx, PyObject *pack) { std::vector vpack; convertPyToNewIntArr3(pack,vpack); self->replacePack(superIdx, idx, vpack.data(), vpack.data()+vpack.size()); } - PyObject *convertToPolyhedronConn() const throw(INTERP_KERNEL::Exception) + PyObject *convertToPolyhedronConn() const { MCAuto d0=DataArrayInt::New(); MCAuto d1=DataArrayInt::New(); @@ -1348,44 +1348,44 @@ namespace MEDCoupling class MEDCouplingPointSet : public MEDCoupling::MEDCouplingMesh { public: - void setCoords(const DataArrayDouble *coords) throw(INTERP_KERNEL::Exception); - DataArrayDouble *getCoordinatesAndOwner() const throw(INTERP_KERNEL::Exception); - bool areCoordsEqual(const MEDCouplingPointSet& other, double prec) const throw(INTERP_KERNEL::Exception); - void zipCoords() throw(INTERP_KERNEL::Exception); - double getCaracteristicDimension() const throw(INTERP_KERNEL::Exception); - void recenterForMaxPrecision(double eps) throw(INTERP_KERNEL::Exception); - void changeSpaceDimension(int newSpaceDim, double dftVal=0.) throw(INTERP_KERNEL::Exception); - void tryToShareSameCoords(const MEDCouplingPointSet& other, double epsilon) throw(INTERP_KERNEL::Exception); - virtual void shallowCopyConnectivityFrom(const MEDCouplingPointSet *other) throw(INTERP_KERNEL::Exception); - virtual MEDCouplingPointSet *buildPartOfMySelfSlice(int start, int end, int step) const throw(INTERP_KERNEL::Exception); - virtual void tryToShareSameCoordsPermute(const MEDCouplingPointSet& other, double epsilon) throw(INTERP_KERNEL::Exception); - static DataArrayDouble *MergeNodesArray(const MEDCouplingPointSet *m1, const MEDCouplingPointSet *m2) throw(INTERP_KERNEL::Exception); - static MEDCouplingPointSet *BuildInstanceFromMeshType(MEDCouplingMeshType type) throw(INTERP_KERNEL::Exception); - static DataArrayInt *ComputeNbOfInteractionsWithSrcCells(const MEDCouplingPointSet *srcMesh, const MEDCouplingPointSet *trgMesh, double eps) throw(INTERP_KERNEL::Exception); - virtual DataArrayInt *computeFetchedNodeIds() const throw(INTERP_KERNEL::Exception); - virtual int getNumberOfNodesInCell(int cellId) const throw(INTERP_KERNEL::Exception); - virtual MEDCouplingPointSet *buildBoundaryMesh(bool keepCoords) const throw(INTERP_KERNEL::Exception); - virtual DataArrayInt *getCellsInBoundingBox(const INTERP_KERNEL::DirectedBoundingBox& bbox, double eps) throw(INTERP_KERNEL::Exception); - virtual DataArrayInt *zipCoordsTraducer() throw(INTERP_KERNEL::Exception); + void setCoords(const DataArrayDouble *coords); + DataArrayDouble *getCoordinatesAndOwner() const; + bool areCoordsEqual(const MEDCouplingPointSet& other, double prec) const; + void zipCoords(); + double getCaracteristicDimension() const; + void recenterForMaxPrecision(double eps); + void changeSpaceDimension(int newSpaceDim, double dftVal=0.); + void tryToShareSameCoords(const MEDCouplingPointSet& other, double epsilon); + virtual void shallowCopyConnectivityFrom(const MEDCouplingPointSet *other); + virtual MEDCouplingPointSet *buildPartOfMySelfSlice(int start, int end, int step) const; + virtual void tryToShareSameCoordsPermute(const MEDCouplingPointSet& other, double epsilon); + static DataArrayDouble *MergeNodesArray(const MEDCouplingPointSet *m1, const MEDCouplingPointSet *m2); + static MEDCouplingPointSet *BuildInstanceFromMeshType(MEDCouplingMeshType type); + static DataArrayInt *ComputeNbOfInteractionsWithSrcCells(const MEDCouplingPointSet *srcMesh, const MEDCouplingPointSet *trgMesh, double eps); + virtual DataArrayInt *computeFetchedNodeIds() const; + virtual int getNumberOfNodesInCell(int cellId) const; + virtual MEDCouplingPointSet *buildBoundaryMesh(bool keepCoords) const; + virtual DataArrayInt *getCellsInBoundingBox(const INTERP_KERNEL::DirectedBoundingBox& bbox, double eps); + virtual DataArrayInt *zipCoordsTraducer(); virtual DataArrayInt *findBoundaryNodes() const; - virtual DataArrayInt *zipConnectivityTraducer(int compType, int startCellId=0) throw(INTERP_KERNEL::Exception); - virtual MEDCouplingPointSet *mergeMyselfWithOnSameCoords(const MEDCouplingPointSet *other) const throw(INTERP_KERNEL::Exception); - virtual void checkFullyDefined() const throw(INTERP_KERNEL::Exception); - virtual bool isEmptyMesh(const std::vector& tinyInfo) const throw(INTERP_KERNEL::Exception); - virtual MEDCouplingPointSet *deepCopyConnectivityOnly() const throw(INTERP_KERNEL::Exception); - virtual DataArrayDouble *getBoundingBoxForBBTree(double arcDetEps=1e-12) const throw(INTERP_KERNEL::Exception); - virtual void renumberNodesWithOffsetInConn(int offset) throw(INTERP_KERNEL::Exception); - virtual bool areAllNodesFetched() const throw(INTERP_KERNEL::Exception); - virtual MEDCouplingFieldDouble *computeDiameterField() const throw(INTERP_KERNEL::Exception); - virtual void invertOrientationOfAllCells() throw(INTERP_KERNEL::Exception); + virtual DataArrayInt *zipConnectivityTraducer(int compType, int startCellId=0); + virtual MEDCouplingPointSet *mergeMyselfWithOnSameCoords(const MEDCouplingPointSet *other) const; + virtual void checkFullyDefined() const; + virtual bool isEmptyMesh(const std::vector& tinyInfo) const; + virtual MEDCouplingPointSet *deepCopyConnectivityOnly() const; + virtual DataArrayDouble *getBoundingBoxForBBTree(double arcDetEps=1e-12) const; + virtual void renumberNodesWithOffsetInConn(int offset); + virtual bool areAllNodesFetched() const; + virtual MEDCouplingFieldDouble *computeDiameterField() const; + virtual void invertOrientationOfAllCells(); %extend { - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->simpleRepr(); } - PyObject *buildNewNumberingFromCommonNodesFormat(const DataArrayInt *comm, const DataArrayInt *commIndex) const throw(INTERP_KERNEL::Exception) + PyObject *buildNewNumberingFromCommonNodesFormat(const DataArrayInt *comm, const DataArrayInt *commIndex) const { int newNbOfNodes; DataArrayInt *ret0=self->buildNewNumberingFromCommonNodesFormat(comm,commIndex,newNbOfNodes); @@ -1395,7 +1395,7 @@ namespace MEDCoupling return res; } - PyObject *findCommonNodes(double prec, int limitTupleId=-1) const throw(INTERP_KERNEL::Exception) + PyObject *findCommonNodes(double prec, int limitTupleId=-1) const { DataArrayInt *comm, *commIndex; self->findCommonNodes(prec,limitTupleId,comm,commIndex); @@ -1405,7 +1405,7 @@ namespace MEDCoupling return res; } - PyObject *getCoords() throw(INTERP_KERNEL::Exception) + PyObject *getCoords() { DataArrayDouble *ret1=self->getCoords(); if (ret1) @@ -1413,7 +1413,7 @@ namespace MEDCoupling return SWIG_NewPointerObj((void*)ret1,SWIGTYPE_p_MEDCoupling__DataArrayDouble,SWIG_POINTER_OWN | 0); } - PyObject *buildPartOfMySelf(PyObject *li, bool keepCoords=true) const throw(INTERP_KERNEL::Exception) + PyObject *buildPartOfMySelf(PyObject *li, bool keepCoords=true) const { int szArr,sw,iTypppArr; std::vector stdvecTyyppArr; @@ -1430,7 +1430,7 @@ namespace MEDCoupling return convertMesh(ret, SWIG_POINTER_OWN | 0 ); } - PyObject *buildPartOfMySelfNode(PyObject *li, bool fullyIn) const throw(INTERP_KERNEL::Exception) + PyObject *buildPartOfMySelfNode(PyObject *li, bool fullyIn) const { int szArr,sw,iTypppArr; std::vector stdvecTyyppArr; @@ -1447,7 +1447,7 @@ namespace MEDCoupling return convertMesh(ret, SWIG_POINTER_OWN | 0 ); } - virtual PyObject *buildPartOfMySelfKeepCoords(PyObject *li) const throw(INTERP_KERNEL::Exception) + virtual PyObject *buildPartOfMySelfKeepCoords(PyObject *li) const { int szArr,sw,iTypppArr; std::vector stdvecTyyppArr; @@ -1464,13 +1464,13 @@ namespace MEDCoupling return convertMesh(ret, SWIG_POINTER_OWN | 0 ); } - virtual PyObject *buildPartOfMySelfKeepCoordsSlice(int start, int end, int step) const throw(INTERP_KERNEL::Exception) + virtual PyObject *buildPartOfMySelfKeepCoordsSlice(int start, int end, int step) const { MEDCouplingPointSet *ret=self->buildPartOfMySelfKeepCoordsSlice(start,end,step); return convertMesh(ret, SWIG_POINTER_OWN | 0 ); } - PyObject *buildFacePartOfMySelfNode(PyObject *li, bool fullyIn) const throw(INTERP_KERNEL::Exception) + PyObject *buildFacePartOfMySelfNode(PyObject *li, bool fullyIn) const { int szArr,sw,iTypppArr; std::vector stdvecTyyppArr; @@ -1487,7 +1487,7 @@ namespace MEDCoupling return convertMesh(ret, SWIG_POINTER_OWN | 0 ); } - void renumberNodes(PyObject *li, int newNbOfNodes) throw(INTERP_KERNEL::Exception) + void renumberNodes(PyObject *li, int newNbOfNodes) { int szArr,sw,iTypppArr; std::vector stdvecTyyppArr; @@ -1495,7 +1495,7 @@ namespace MEDCoupling self->renumberNodes(tmp,newNbOfNodes); } - void renumberNodesCenter(PyObject *li, int newNbOfNodes) throw(INTERP_KERNEL::Exception) + void renumberNodesCenter(PyObject *li, int newNbOfNodes) { int szArr,sw,iTypppArr; std::vector stdvecTyyppArr; @@ -1503,7 +1503,7 @@ namespace MEDCoupling self->renumberNodesCenter(tmp,newNbOfNodes); } - PyObject *findNodesOnLine(PyObject *pt, PyObject *vec, double eps) const throw(INTERP_KERNEL::Exception) + PyObject *findNodesOnLine(PyObject *pt, PyObject *vec, double eps) const { int spaceDim=self->getSpaceDimension(); double val,val2; @@ -1522,7 +1522,7 @@ namespace MEDCoupling std::copy(nodes.begin(),nodes.end(),ret->getPointer()); return SWIG_NewPointerObj(SWIG_as_voidptr(ret),SWIGTYPE_p_MEDCoupling__DataArrayInt, SWIG_POINTER_OWN | 0 ); } - PyObject *findNodesOnPlane(PyObject *pt, PyObject *vec, double eps) const throw(INTERP_KERNEL::Exception) + PyObject *findNodesOnPlane(PyObject *pt, PyObject *vec, double eps) const { int spaceDim=self->getSpaceDimension(); double val,val2; @@ -1542,7 +1542,7 @@ namespace MEDCoupling return SWIG_NewPointerObj(SWIG_as_voidptr(ret),SWIGTYPE_p_MEDCoupling__DataArrayInt, SWIG_POINTER_OWN | 0 ); } - PyObject *getNodeIdsNearPoint(PyObject *pt, double eps) const throw(INTERP_KERNEL::Exception) + PyObject *getNodeIdsNearPoint(PyObject *pt, double eps) const { double val; DataArrayDouble *a; @@ -1556,7 +1556,7 @@ namespace MEDCoupling return SWIG_NewPointerObj(SWIG_as_voidptr(ret),SWIGTYPE_p_MEDCoupling__DataArrayInt, SWIG_POINTER_OWN | 0 ); } - PyObject *getNodeIdsNearPoints(PyObject *pt, int nbOfPoints, double eps) const throw(INTERP_KERNEL::Exception) + PyObject *getNodeIdsNearPoints(PyObject *pt, int nbOfPoints, double eps) const { DataArrayInt *c=0,*cI=0; // @@ -1575,7 +1575,7 @@ namespace MEDCoupling return ret; } - PyObject *getNodeIdsNearPoints(PyObject *pt, double eps) const throw(INTERP_KERNEL::Exception) + PyObject *getNodeIdsNearPoints(PyObject *pt, double eps) const { DataArrayInt *c=0,*cI=0; int spaceDim=self->getSpaceDimension(); @@ -1594,7 +1594,7 @@ namespace MEDCoupling return ret; } - PyObject *getCellsInBoundingBox(PyObject *bbox, double eps) const throw(INTERP_KERNEL::Exception) + PyObject *getCellsInBoundingBox(PyObject *bbox, double eps) const { double val; DataArrayDouble *a; @@ -1609,7 +1609,7 @@ namespace MEDCoupling return SWIG_NewPointerObj(SWIG_as_voidptr(elems),SWIGTYPE_p_MEDCoupling__DataArrayInt, SWIG_POINTER_OWN | 0 ); } - void duplicateNodesInCoords(PyObject *li) throw(INTERP_KERNEL::Exception) + void duplicateNodesInCoords(PyObject *li) { int sw; int singleVal; @@ -1630,7 +1630,7 @@ namespace MEDCoupling } } - virtual PyObject *findCommonCells(int compType, int startCellId=0) const throw(INTERP_KERNEL::Exception) + virtual PyObject *findCommonCells(int compType, int startCellId=0) const { DataArrayInt *v0(nullptr),*v1(nullptr); self->findCommonCells(compType,startCellId,v0,v1); @@ -1641,7 +1641,7 @@ namespace MEDCoupling } - virtual void renumberNodesInConn(PyObject *li) throw(INTERP_KERNEL::Exception) + virtual void renumberNodesInConn(PyObject *li) { void *da(nullptr); { @@ -1670,7 +1670,7 @@ namespace MEDCoupling } } - virtual PyObject *getNodeIdsInUse() const throw(INTERP_KERNEL::Exception) + virtual PyObject *getNodeIdsInUse() const { int ret1=-1; DataArrayInt *ret0=self->getNodeIdsInUse(ret1); @@ -1691,7 +1691,7 @@ namespace MEDCoupling return ret; } - virtual PyObject *mergeNodes(double precision) throw(INTERP_KERNEL::Exception) + virtual PyObject *mergeNodes(double precision) { bool ret1; int ret2; @@ -1703,7 +1703,7 @@ namespace MEDCoupling return res; } - virtual PyObject *mergeNodesCenter(double precision) throw(INTERP_KERNEL::Exception) + virtual PyObject *mergeNodesCenter(double precision) { bool ret1; int ret2; @@ -1715,7 +1715,7 @@ namespace MEDCoupling return res; } - DataArrayInt *getCellIdsLyingOnNodes(PyObject *li, bool fullyIn) const throw(INTERP_KERNEL::Exception) + DataArrayInt *getCellIdsLyingOnNodes(PyObject *li, bool fullyIn) const { void *da=0; int res1=SWIG_ConvertPtr(li,&da,SWIGTYPE_p_MEDCoupling__DataArrayInt, 0 | 0 ); @@ -1735,7 +1735,7 @@ namespace MEDCoupling } } - MEDCouplingPointSet *__getitem__(PyObject *listOrDataArrI) throw(INTERP_KERNEL::Exception) + MEDCouplingPointSet *__getitem__(PyObject *listOrDataArrI) { int sw; int singleVal; @@ -1791,7 +1791,7 @@ namespace MEDCoupling } } - static void Rotate2DAlg(PyObject *center, double angle, int nbNodes, PyObject *coords) throw(INTERP_KERNEL::Exception) + static void Rotate2DAlg(PyObject *center, double angle, int nbNodes, PyObject *coords) { int sz; INTERP_KERNEL::AutoCPtr c=convertPyToNewDblArr2(center,&sz); @@ -1801,7 +1801,7 @@ namespace MEDCoupling PyList_SetItem(coords,i,PyFloat_FromDouble(coo[i])); } - static void Rotate2DAlg(PyObject *center, double angle, PyObject *coords) throw(INTERP_KERNEL::Exception) + static void Rotate2DAlg(PyObject *center, double angle, PyObject *coords) { int sz; INTERP_KERNEL::AutoCPtr c=convertPyToNewDblArr2(center,&sz); @@ -1815,7 +1815,7 @@ namespace MEDCoupling MEDCoupling::DataArrayDouble::Rotate2DAlg(c,angle,nbNodes,coo,const_cast(coo)); } - static void Rotate3DAlg(PyObject *center, PyObject *vect, double angle, int nbNodes, PyObject *coords) throw(INTERP_KERNEL::Exception) + static void Rotate3DAlg(PyObject *center, PyObject *vect, double angle, int nbNodes, PyObject *coords) { int sz,sz2; INTERP_KERNEL::AutoCPtr c=convertPyToNewDblArr2(center,&sz); @@ -1826,7 +1826,7 @@ namespace MEDCoupling PyList_SetItem(coords,i,PyFloat_FromDouble(coo[i])); } - static void Rotate3DAlg(PyObject *center, PyObject *vect, double angle, PyObject *coords) throw(INTERP_KERNEL::Exception) + static void Rotate3DAlg(PyObject *center, PyObject *vect, double angle, PyObject *coords) { int sz,sz2; INTERP_KERNEL::AutoCPtr c=convertPyToNewDblArr2(center,&sz); @@ -1851,12 +1851,12 @@ namespace MEDCoupling INTERP_KERNEL::NormalizedCellType getType() const; %extend { - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->repr(); } - PyObject *getAllConn() const throw(INTERP_KERNEL::Exception) + PyObject *getAllConn() const { int ret2; const int *r=self->getAllConn(ret2); @@ -1939,111 +1939,111 @@ namespace MEDCoupling class MEDCouplingUMesh : public MEDCoupling::MEDCouplingPointSet { public: - static MEDCouplingUMesh *New() throw(INTERP_KERNEL::Exception); - static MEDCouplingUMesh *New(const char *meshName, int meshDim) throw(INTERP_KERNEL::Exception); - void checkConsistencyLight() const throw(INTERP_KERNEL::Exception); - void setMeshDimension(int meshDim) throw(INTERP_KERNEL::Exception); - void allocateCells(int nbOfCells=0) throw(INTERP_KERNEL::Exception); - void finishInsertingCells() throw(INTERP_KERNEL::Exception); - MEDCouplingUMeshCellByTypeEntry *cellsByType() throw(INTERP_KERNEL::Exception); - void setConnectivity(DataArrayInt *conn, DataArrayInt *connIndex, bool isComputingTypes=true) throw(INTERP_KERNEL::Exception); - INTERP_KERNEL::NormalizedCellType getTypeOfCell(int cellId) const throw(INTERP_KERNEL::Exception); - void setPartOfMySelfSlice(int start, int end, int step, const MEDCouplingUMesh& otherOnSameCoordsThanThis) throw(INTERP_KERNEL::Exception); - int getNodalConnectivityArrayLen() const throw(INTERP_KERNEL::Exception); - void computeTypes() throw(INTERP_KERNEL::Exception); - std::string reprConnectivityOfThis() const throw(INTERP_KERNEL::Exception); - MEDCouplingUMesh *buildSetInstanceFromThis(int spaceDim) const throw(INTERP_KERNEL::Exception); + static MEDCouplingUMesh *New(); + static MEDCouplingUMesh *New(const char *meshName, int meshDim); + void checkConsistencyLight() const; + void setMeshDimension(int meshDim); + void allocateCells(int nbOfCells=0); + void finishInsertingCells(); + MEDCouplingUMeshCellByTypeEntry *cellsByType(); + void setConnectivity(DataArrayInt *conn, DataArrayInt *connIndex, bool isComputingTypes=true); + INTERP_KERNEL::NormalizedCellType getTypeOfCell(int cellId) const; + void setPartOfMySelfSlice(int start, int end, int step, const MEDCouplingUMesh& otherOnSameCoordsThanThis); + int getNodalConnectivityArrayLen() const; + void computeTypes(); + std::string reprConnectivityOfThis() const; + MEDCouplingUMesh *buildSetInstanceFromThis(int spaceDim) const; //tools - DataArrayInt *conformize2D(double eps) throw(INTERP_KERNEL::Exception); - DataArrayInt *conformize3D(double eps) throw(INTERP_KERNEL::Exception); - DataArrayInt *colinearize2D(double eps) throw(INTERP_KERNEL::Exception); - DataArrayInt *colinearizeKeepingConform2D(double eps) throw(INTERP_KERNEL::Exception); - void shiftNodeNumbersInConn(int delta) throw(INTERP_KERNEL::Exception); - std::vector getQuadraticStatus() const throw(INTERP_KERNEL::Exception); - DataArrayInt *findCellIdsOnBoundary() const throw(INTERP_KERNEL::Exception); - MEDCouplingUMesh *computeSkin() const throw(INTERP_KERNEL::Exception); - bool checkConsecutiveCellTypes() const throw(INTERP_KERNEL::Exception); - bool checkConsecutiveCellTypesForMEDFileFrmt() const throw(INTERP_KERNEL::Exception); - DataArrayInt *rearrange2ConsecutiveCellTypes() throw(INTERP_KERNEL::Exception); - DataArrayInt *sortCellsInMEDFileFrmt() throw(INTERP_KERNEL::Exception); - DataArrayInt *getRenumArrForMEDFileFrmt() const throw(INTERP_KERNEL::Exception); - DataArrayInt *convertCellArrayPerGeoType(const DataArrayInt *da) const throw(INTERP_KERNEL::Exception); - MEDCouplingUMesh *buildDescendingConnectivity(DataArrayInt *desc, DataArrayInt *descIndx, DataArrayInt *revDesc, DataArrayInt *revDescIndx) const throw(INTERP_KERNEL::Exception); - MEDCouplingUMesh *buildDescendingConnectivity2(DataArrayInt *desc, DataArrayInt *descIndx, DataArrayInt *revDesc, DataArrayInt *revDescIndx) const throw(INTERP_KERNEL::Exception); - MEDCouplingUMesh *explode3DMeshTo1D(DataArrayInt *desc, DataArrayInt *descIndx, DataArrayInt *revDesc, DataArrayInt *revDescIndx) const throw(INTERP_KERNEL::Exception); - MEDCouplingUMesh *explodeMeshIntoMicroEdges(DataArrayInt *desc, DataArrayInt *descIndx, DataArrayInt *revDesc, DataArrayInt *revDescIndx) const throw(INTERP_KERNEL::Exception); - void orientCorrectlyPolyhedrons() throw(INTERP_KERNEL::Exception); - bool isPresenceOfQuadratic() const throw(INTERP_KERNEL::Exception); - bool isFullyQuadratic() const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldDouble *buildDirectionVectorField() const throw(INTERP_KERNEL::Exception); - bool isContiguous1D() const throw(INTERP_KERNEL::Exception); - void tessellate2D(double eps) throw(INTERP_KERNEL::Exception); - void convertQuadraticCellsToLinear() throw(INTERP_KERNEL::Exception); - DataArrayInt *convertLinearCellsToQuadratic(int conversionType=0) throw(INTERP_KERNEL::Exception); - void convertDegeneratedCells() throw(INTERP_KERNEL::Exception); - DataArrayInt *convertDegeneratedCellsAndRemoveFlatOnes() throw(INTERP_KERNEL::Exception); - bool removeDegenerated1DCells() throw(INTERP_KERNEL::Exception); - bool areOnlySimplexCells() const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldDouble *getEdgeRatioField() const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldDouble *getAspectRatioField() const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldDouble *getWarpField() const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldDouble *getSkewField() const throw(INTERP_KERNEL::Exception); - DataArrayDouble *computePlaneEquationOf3DFaces() const throw(INTERP_KERNEL::Exception); - DataArrayInt *convexEnvelop2D() throw(INTERP_KERNEL::Exception); - std::string cppRepr() const throw(INTERP_KERNEL::Exception); - DataArrayInt *findAndCorrectBadOriented3DExtrudedCells() throw(INTERP_KERNEL::Exception); - DataArrayInt *findAndCorrectBadOriented3DCells() throw(INTERP_KERNEL::Exception); - MEDCoupling::MEDCoupling1GTUMesh *convertIntoSingleGeoTypeMesh() const throw(INTERP_KERNEL::Exception); - MEDCouplingSkyLineArray *generateGraph() const throw(INTERP_KERNEL::Exception); - DataArrayInt *convertNodalConnectivityToStaticGeoTypeMesh() const throw(INTERP_KERNEL::Exception); - DataArrayInt *buildUnionOf2DMesh() const throw(INTERP_KERNEL::Exception); - DataArrayInt *buildUnionOf3DMesh() const throw(INTERP_KERNEL::Exception); - DataArrayInt *orderConsecutiveCells1D() const throw(INTERP_KERNEL::Exception); - DataArrayDouble *getBoundingBoxForBBTreeFast() const throw(INTERP_KERNEL::Exception); - DataArrayDouble *getBoundingBoxForBBTree2DQuadratic(double arcDetEps=1e-12) const throw(INTERP_KERNEL::Exception); - DataArrayDouble *getBoundingBoxForBBTree1DQuadratic(double arcDetEps=1e-12) const throw(INTERP_KERNEL::Exception); - void changeOrientationOfCells() throw(INTERP_KERNEL::Exception); - int split2DCells(const DataArrayInt *desc, const DataArrayInt *descI, const DataArrayInt *subNodesInSeg, const DataArrayInt *subNodesInSegI, const DataArrayInt *midOpt=0, const DataArrayInt *midOptI=0) throw(INTERP_KERNEL::Exception); - static MEDCouplingUMesh *Build0DMeshFromCoords(DataArrayDouble *da) throw(INTERP_KERNEL::Exception); - static MEDCouplingUMesh *MergeUMeshes(const MEDCouplingUMesh *mesh1, const MEDCouplingUMesh *mesh2) throw(INTERP_KERNEL::Exception); - static MEDCouplingUMesh *MergeUMeshesOnSameCoords(const MEDCouplingUMesh *mesh1, const MEDCouplingUMesh *mesh2) throw(INTERP_KERNEL::Exception); - static DataArrayInt *ComputeSpreadZoneGradually(const DataArrayInt *arrIn, const DataArrayInt *arrIndxIn) throw(INTERP_KERNEL::Exception); - static DataArrayInt *ComputeRangesFromTypeDistribution(const std::vector& code) throw(INTERP_KERNEL::Exception); + DataArrayInt *conformize2D(double eps); + DataArrayInt *conformize3D(double eps); + DataArrayInt *colinearize2D(double eps); + DataArrayInt *colinearizeKeepingConform2D(double eps); + void shiftNodeNumbersInConn(int delta); + std::vector getQuadraticStatus() const; + DataArrayInt *findCellIdsOnBoundary() const; + MEDCouplingUMesh *computeSkin() const; + bool checkConsecutiveCellTypes() const; + bool checkConsecutiveCellTypesForMEDFileFrmt() const; + DataArrayInt *rearrange2ConsecutiveCellTypes(); + DataArrayInt *sortCellsInMEDFileFrmt(); + DataArrayInt *getRenumArrForMEDFileFrmt() const; + DataArrayInt *convertCellArrayPerGeoType(const DataArrayInt *da) const; + MEDCouplingUMesh *buildDescendingConnectivity(DataArrayInt *desc, DataArrayInt *descIndx, DataArrayInt *revDesc, DataArrayInt *revDescIndx) const; + MEDCouplingUMesh *buildDescendingConnectivity2(DataArrayInt *desc, DataArrayInt *descIndx, DataArrayInt *revDesc, DataArrayInt *revDescIndx) const; + MEDCouplingUMesh *explode3DMeshTo1D(DataArrayInt *desc, DataArrayInt *descIndx, DataArrayInt *revDesc, DataArrayInt *revDescIndx) const; + MEDCouplingUMesh *explodeMeshIntoMicroEdges(DataArrayInt *desc, DataArrayInt *descIndx, DataArrayInt *revDesc, DataArrayInt *revDescIndx) const; + void orientCorrectlyPolyhedrons(); + bool isPresenceOfQuadratic() const; + bool isFullyQuadratic() const; + MEDCouplingFieldDouble *buildDirectionVectorField() const; + bool isContiguous1D() const; + void tessellate2D(double eps); + void convertQuadraticCellsToLinear(); + DataArrayInt *convertLinearCellsToQuadratic(int conversionType=0); + void convertDegeneratedCells(); + DataArrayInt *convertDegeneratedCellsAndRemoveFlatOnes(); + bool removeDegenerated1DCells(); + bool areOnlySimplexCells() const; + MEDCouplingFieldDouble *getEdgeRatioField() const; + MEDCouplingFieldDouble *getAspectRatioField() const; + MEDCouplingFieldDouble *getWarpField() const; + MEDCouplingFieldDouble *getSkewField() const; + DataArrayDouble *computePlaneEquationOf3DFaces() const; + DataArrayInt *convexEnvelop2D(); + std::string cppRepr() const; + DataArrayInt *findAndCorrectBadOriented3DExtrudedCells(); + DataArrayInt *findAndCorrectBadOriented3DCells(); + MEDCoupling::MEDCoupling1GTUMesh *convertIntoSingleGeoTypeMesh() const; + MEDCouplingSkyLineArray *generateGraph() const; + DataArrayInt *convertNodalConnectivityToStaticGeoTypeMesh() const; + DataArrayInt *buildUnionOf2DMesh() const; + DataArrayInt *buildUnionOf3DMesh() const; + DataArrayInt *orderConsecutiveCells1D() const; + DataArrayDouble *getBoundingBoxForBBTreeFast() const; + DataArrayDouble *getBoundingBoxForBBTree2DQuadratic(double arcDetEps=1e-12) const; + DataArrayDouble *getBoundingBoxForBBTree1DQuadratic(double arcDetEps=1e-12) const; + void changeOrientationOfCells(); + int split2DCells(const DataArrayInt *desc, const DataArrayInt *descI, const DataArrayInt *subNodesInSeg, const DataArrayInt *subNodesInSegI, const DataArrayInt *midOpt=0, const DataArrayInt *midOptI=0); + static MEDCouplingUMesh *Build0DMeshFromCoords(DataArrayDouble *da); + static MEDCouplingUMesh *MergeUMeshes(const MEDCouplingUMesh *mesh1, const MEDCouplingUMesh *mesh2); + static MEDCouplingUMesh *MergeUMeshesOnSameCoords(const MEDCouplingUMesh *mesh1, const MEDCouplingUMesh *mesh2); + static DataArrayInt *ComputeSpreadZoneGradually(const DataArrayInt *arrIn, const DataArrayInt *arrIndxIn); + static DataArrayInt *ComputeRangesFromTypeDistribution(const std::vector& code); %extend { - MEDCouplingUMesh() throw(INTERP_KERNEL::Exception) + MEDCouplingUMesh() { return MEDCouplingUMesh::New(); } - MEDCouplingUMesh(const char *meshName, int meshDim) throw(INTERP_KERNEL::Exception) + MEDCouplingUMesh(const char *meshName, int meshDim) { return MEDCouplingUMesh::New(meshName,meshDim); } - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->simpleRepr(); } - std::string __repr__() const throw(INTERP_KERNEL::Exception) + std::string __repr__() const { std::ostringstream oss; self->reprQuickOverview(oss); return oss.str(); } - MEDCouplingUMeshCellIterator *__iter__() throw(INTERP_KERNEL::Exception) + MEDCouplingUMeshCellIterator *__iter__() { return self->cellIterator(); } - static MEDCouplingUMesh *Build1DMeshFromCoords(DataArrayDouble *da) throw(INTERP_KERNEL::Exception) + static MEDCouplingUMesh *Build1DMeshFromCoords(DataArrayDouble *da) { MCAuto ret(MEDCouplingUMesh::Build1DMeshFromCoords(da)); return ret.retn(); } - PyObject *getAllGeoTypesSorted() const throw(INTERP_KERNEL::Exception) + PyObject *getAllGeoTypesSorted() const { std::vector result=self->getAllGeoTypesSorted(); std::vector::const_iterator iL=result.begin(); @@ -2053,7 +2053,7 @@ namespace MEDCoupling return res; } - void setPartOfMySelf(PyObject *li, const MEDCouplingUMesh& otherOnSameCoordsThanThis) throw(INTERP_KERNEL::Exception) + void setPartOfMySelf(PyObject *li, const MEDCouplingUMesh& otherOnSameCoordsThanThis) { int sw; int singleVal; @@ -2111,7 +2111,7 @@ namespace MEDCoupling } } - void __setitem__(PyObject *li, const MEDCouplingUMesh& otherOnSameCoordsThanThis) throw(INTERP_KERNEL::Exception) + void __setitem__(PyObject *li, const MEDCouplingUMesh& otherOnSameCoordsThanThis) { int sw; int singleVal; @@ -2174,7 +2174,7 @@ namespace MEDCoupling } } - void insertNextCell(INTERP_KERNEL::NormalizedCellType type, int size, PyObject *li) throw(INTERP_KERNEL::Exception) + void insertNextCell(INTERP_KERNEL::NormalizedCellType type, int size, PyObject *li) { int szArr,sw,iTypppArr; std::vector stdvecTyyppArr; @@ -2187,7 +2187,7 @@ namespace MEDCoupling self->insertNextCell(type,size,tmp); } - void insertNextCell(INTERP_KERNEL::NormalizedCellType type, PyObject *li) throw(INTERP_KERNEL::Exception) + void insertNextCell(INTERP_KERNEL::NormalizedCellType type, PyObject *li) { int szArr,sw,iTypppArr; std::vector stdvecTyyppArr; @@ -2195,14 +2195,14 @@ namespace MEDCoupling self->insertNextCell(type,szArr,tmp); } - DataArrayInt *getNodalConnectivity() throw(INTERP_KERNEL::Exception) + DataArrayInt *getNodalConnectivity() { DataArrayInt *ret=self->getNodalConnectivity(); if(ret) ret->incrRef(); return ret; } - DataArrayInt *getNodalConnectivityIndex() throw(INTERP_KERNEL::Exception) + DataArrayInt *getNodalConnectivityIndex() { DataArrayInt *ret=self->getNodalConnectivityIndex(); if(ret) @@ -2210,7 +2210,7 @@ namespace MEDCoupling return ret; } - static PyObject *ComputeSpreadZoneGraduallyFromSeed(PyObject *seed, const DataArrayInt *arrIn, const DataArrayInt *arrIndxIn, int nbOfDepthPeeling=-1) throw(INTERP_KERNEL::Exception) + static PyObject *ComputeSpreadZoneGraduallyFromSeed(PyObject *seed, const DataArrayInt *arrIn, const DataArrayInt *arrIndxIn, int nbOfDepthPeeling=-1) { int szArr,sw,iTypppArr; std::vector stdvecTyyppArr; @@ -2223,7 +2223,7 @@ namespace MEDCoupling return res; } - static PyObject *FindCommonCellsAlg(int compType, int startCellId, const DataArrayInt *nodal, const DataArrayInt *nodalI, const DataArrayInt *revNodal, const DataArrayInt *revNodalI) throw(INTERP_KERNEL::Exception) + static PyObject *FindCommonCellsAlg(int compType, int startCellId, const DataArrayInt *nodal, const DataArrayInt *nodalI, const DataArrayInt *revNodal, const DataArrayInt *revNodalI) { DataArrayInt *v0=0,*v1=0; MEDCouplingUMesh::FindCommonCellsAlg(compType,startCellId,nodal,nodalI,revNodal,revNodalI,v0,v1); @@ -2233,7 +2233,7 @@ namespace MEDCoupling return res; } - PyObject *distanceToPoint(PyObject *point) const throw(INTERP_KERNEL::Exception) + PyObject *distanceToPoint(PyObject *point) const { double val; DataArrayDouble *a; @@ -2251,7 +2251,7 @@ namespace MEDCoupling return ret; } - PyObject *distanceToPoints(const DataArrayDouble *pts) const throw(INTERP_KERNEL::Exception) + PyObject *distanceToPoints(const DataArrayDouble *pts) const { DataArrayInt *ret1=0; DataArrayDouble *ret0=self->distanceToPoints(pts,ret1); @@ -2261,7 +2261,7 @@ namespace MEDCoupling return ret; } - PyObject *tetrahedrize(int policy) throw(INTERP_KERNEL::Exception) + PyObject *tetrahedrize(int policy) { int ret2(-1); DataArrayInt *ret1(0); @@ -2273,7 +2273,7 @@ namespace MEDCoupling return ret; } - PyObject *checkButterflyCells(double eps=1e-12) throw(INTERP_KERNEL::Exception) + PyObject *checkButterflyCells(double eps=1e-12) { std::vector cells; self->checkButterflyCells(cells,eps); @@ -2283,7 +2283,7 @@ namespace MEDCoupling return SWIG_NewPointerObj(SWIG_as_voidptr(ret),SWIGTYPE_p_MEDCoupling__DataArrayInt, SWIG_POINTER_OWN | 0 ); } - PyObject *splitByType() const throw(INTERP_KERNEL::Exception) + PyObject *splitByType() const { std::vector ms=self->splitByType(); int sz=ms.size(); @@ -2293,7 +2293,7 @@ namespace MEDCoupling return ret; } - PyObject *partitionBySpreadZone() const throw(INTERP_KERNEL::Exception) + PyObject *partitionBySpreadZone() const { std::vector retCpp=self->partitionBySpreadZone(); int sz=retCpp.size(); @@ -2303,7 +2303,7 @@ namespace MEDCoupling return ret; } - static PyObject *PartitionBySpreadZone(const DataArrayInt *arrIn, const DataArrayInt *arrIndxIn) throw(INTERP_KERNEL::Exception) + static PyObject *PartitionBySpreadZone(const DataArrayInt *arrIn, const DataArrayInt *arrIndxIn) { std::vector retCpp(MEDCouplingUMesh::PartitionBySpreadZone(arrIn,arrIndxIn)); int sz=retCpp.size(); @@ -2313,7 +2313,7 @@ namespace MEDCoupling return ret; } - PyObject *keepSpecifiedCells(INTERP_KERNEL::NormalizedCellType type, PyObject *ids) const throw(INTERP_KERNEL::Exception) + PyObject *keepSpecifiedCells(INTERP_KERNEL::NormalizedCellType type, PyObject *ids) const { int size; INTERP_KERNEL::AutoPtr tmp=convertPyToNewIntArr2(ids,&size); @@ -2321,7 +2321,7 @@ namespace MEDCoupling return SWIG_NewPointerObj(SWIG_as_voidptr(ret),SWIGTYPE_p_MEDCoupling__MEDCouplingUMesh, SWIG_POINTER_OWN | 0 ); } - bool checkConsecutiveCellTypesAndOrder(PyObject *li) const throw(INTERP_KERNEL::Exception) + bool checkConsecutiveCellTypesAndOrder(PyObject *li) const { int sz; INTERP_KERNEL::AutoPtr order=(INTERP_KERNEL::NormalizedCellType *)convertPyToNewIntArr2(li,&sz); @@ -2329,7 +2329,7 @@ namespace MEDCoupling return ret; } - DataArrayInt *getRenumArrForConsecutiveCellTypesSpec(PyObject *li) const throw(INTERP_KERNEL::Exception) + DataArrayInt *getRenumArrForConsecutiveCellTypesSpec(PyObject *li) const { int sz; INTERP_KERNEL::AutoPtr order=(INTERP_KERNEL::NormalizedCellType *)convertPyToNewIntArr2(li,&sz); @@ -2337,7 +2337,7 @@ namespace MEDCoupling return ret; } - PyObject *findNodesToDuplicate(const MEDCouplingUMesh& otherDimM1OnSameCoords) const throw(INTERP_KERNEL::Exception) + PyObject *findNodesToDuplicate(const MEDCouplingUMesh& otherDimM1OnSameCoords) const { DataArrayInt *tmp0=0,*tmp1=0,*tmp2=0; self->findNodesToDuplicate(otherDimM1OnSameCoords,tmp0,tmp1,tmp2); @@ -2348,7 +2348,7 @@ namespace MEDCoupling return ret; } - PyObject *findCellIdsLyingOn(const MEDCouplingUMesh& otherDimM1OnSameCoords) const throw(INTERP_KERNEL::Exception) + PyObject *findCellIdsLyingOn(const MEDCouplingUMesh& otherDimM1OnSameCoords) const { DataArrayInt *tmp0=0,*tmp1=0; self->findCellIdsLyingOn(otherDimM1OnSameCoords,tmp0,tmp1); @@ -2358,7 +2358,7 @@ namespace MEDCoupling return ret; } - void duplicateNodes(PyObject *li) throw(INTERP_KERNEL::Exception) + void duplicateNodes(PyObject *li) { int sw; int singleVal; @@ -2379,7 +2379,7 @@ namespace MEDCoupling } } - void duplicateNodesInConn(PyObject *li, int offset) throw(INTERP_KERNEL::Exception) + void duplicateNodesInConn(PyObject *li, int offset) { int sw; int singleVal; @@ -2400,7 +2400,7 @@ namespace MEDCoupling } } - void attractSeg3MidPtsAroundNodes(double ratio, PyObject *nodeIds) throw(INTERP_KERNEL::Exception) + void attractSeg3MidPtsAroundNodes(double ratio, PyObject *nodeIds) { int szArr,sw,iTypppArr; std::vector stdvecTyyppArr; @@ -2408,7 +2408,7 @@ namespace MEDCoupling self->attractSeg3MidPtsAroundNodes(ratio,nodeIdsPtr,nodeIdsPtr+szArr); } - PyObject *getLevArrPerCellTypes(PyObject *li) const throw(INTERP_KERNEL::Exception) + PyObject *getLevArrPerCellTypes(PyObject *li) const { int sz; INTERP_KERNEL::AutoPtr order=(INTERP_KERNEL::NormalizedCellType *)convertPyToNewIntArr2(li,&sz); @@ -2420,7 +2420,7 @@ namespace MEDCoupling return ret; } - PyObject *convertNodalConnectivityToDynamicGeoTypeMesh() const throw(INTERP_KERNEL::Exception) + PyObject *convertNodalConnectivityToDynamicGeoTypeMesh() const { DataArrayInt *ret0=0,*ret1=0; self->convertNodalConnectivityToDynamicGeoTypeMesh(ret0,ret1); @@ -2430,7 +2430,7 @@ namespace MEDCoupling return ret; } - static PyObject *AggregateSortedByTypeMeshesOnSameCoords(PyObject *ms) throw(INTERP_KERNEL::Exception) + static PyObject *AggregateSortedByTypeMeshesOnSameCoords(PyObject *ms) { std::vector meshes; convertFromPyObjVectorOfObj(ms,SWIGTYPE_p_MEDCoupling__MEDCouplingUMesh,"MEDCouplingUMesh",meshes); @@ -2443,7 +2443,7 @@ namespace MEDCoupling return ret; } - static PyObject *MergeUMeshesOnSameCoords(PyObject *ms) throw(INTERP_KERNEL::Exception) + static PyObject *MergeUMeshesOnSameCoords(PyObject *ms) { std::vector meshes; convertFromPyObjVectorOfObj(ms,SWIGTYPE_p_MEDCoupling__MEDCouplingUMesh,"MEDCouplingUMesh",meshes); @@ -2451,7 +2451,7 @@ namespace MEDCoupling return convertMesh(ret, SWIG_POINTER_OWN | 0 ); } - static PyObject *FuseUMeshesOnSameCoords(PyObject *ms, int compType) throw(INTERP_KERNEL::Exception) + static PyObject *FuseUMeshesOnSameCoords(PyObject *ms, int compType) { int sz; std::vector meshes; @@ -2468,21 +2468,21 @@ namespace MEDCoupling return ret; } - static void PutUMeshesOnSameAggregatedCoords(PyObject *ms) throw(INTERP_KERNEL::Exception) + static void PutUMeshesOnSameAggregatedCoords(PyObject *ms) { std::vector meshes; convertFromPyObjVectorOfObj(ms,SWIGTYPE_p_MEDCoupling__MEDCouplingUMesh,"MEDCouplingUMesh",meshes); MEDCouplingUMesh::PutUMeshesOnSameAggregatedCoords(meshes); } - static void MergeNodesOnUMeshesSharingSameCoords(PyObject *ms, double eps) throw(INTERP_KERNEL::Exception) + static void MergeNodesOnUMeshesSharingSameCoords(PyObject *ms, double eps) { std::vector meshes; convertFromPyObjVectorOfObj(ms,SWIGTYPE_p_MEDCoupling__MEDCouplingUMesh,"MEDCouplingUMesh",meshes); MEDCouplingUMesh::MergeNodesOnUMeshesSharingSameCoords(meshes,eps); } - static bool RemoveIdsFromIndexedArrays(PyObject *li, DataArrayInt *arr, DataArrayInt *arrIndx, int offsetForRemoval=0) throw(INTERP_KERNEL::Exception) + static bool RemoveIdsFromIndexedArrays(PyObject *li, DataArrayInt *arr, DataArrayInt *arrIndx, int offsetForRemoval=0) { int sw; int singleVal; @@ -2505,7 +2505,7 @@ namespace MEDCoupling } } - static PyObject *ExtractFromIndexedArrays(PyObject *li, const DataArrayInt *arrIn, const DataArrayInt *arrIndxIn) throw(INTERP_KERNEL::Exception) + static PyObject *ExtractFromIndexedArrays(PyObject *li, const DataArrayInt *arrIn, const DataArrayInt *arrIndxIn) { DataArrayInt *arrOut=0,*arrIndexOut=0; int sw; @@ -2542,7 +2542,7 @@ namespace MEDCoupling return ret; } - static PyObject *ExtractFromIndexedArraysSlice(int strt, int stp, int step, const DataArrayInt *arrIn, const DataArrayInt *arrIndxIn) throw(INTERP_KERNEL::Exception) + static PyObject *ExtractFromIndexedArraysSlice(int strt, int stp, int step, const DataArrayInt *arrIn, const DataArrayInt *arrIndxIn) { DataArrayInt *arrOut=0,*arrIndexOut=0; MEDCouplingUMesh::ExtractFromIndexedArraysSlice(strt,stp,step,arrIn,arrIndxIn,arrOut,arrIndexOut); @@ -2552,7 +2552,7 @@ namespace MEDCoupling return ret; } - static PyObject *ExtractFromIndexedArraysSlice(PyObject *slic, const DataArrayInt *arrIn, const DataArrayInt *arrIndxIn) throw(INTERP_KERNEL::Exception) + static PyObject *ExtractFromIndexedArraysSlice(PyObject *slic, const DataArrayInt *arrIn, const DataArrayInt *arrIndxIn) { if(!PySlice_Check(slic)) throw INTERP_KERNEL::Exception("ExtractFromIndexedArraysSlice (wrap) : the first param is not a pyslice !"); @@ -2573,7 +2573,7 @@ namespace MEDCoupling static PyObject *SetPartOfIndexedArrays(PyObject *li, const DataArrayInt *arrIn, const DataArrayInt *arrIndxIn, - const DataArrayInt *srcArr, const DataArrayInt *srcArrIndex) throw(INTERP_KERNEL::Exception) + const DataArrayInt *srcArr, const DataArrayInt *srcArrIndex) { DataArrayInt *arrOut=0,*arrIndexOut=0; int sw; @@ -2611,7 +2611,7 @@ namespace MEDCoupling } static void SetPartOfIndexedArraysSameIdx(PyObject *li, DataArrayInt *arrIn, const DataArrayInt *arrIndxIn, - const DataArrayInt *srcArr, const DataArrayInt *srcArrIndex) throw(INTERP_KERNEL::Exception) + const DataArrayInt *srcArr, const DataArrayInt *srcArrIndex) { int sw; int singleVal; @@ -2643,7 +2643,7 @@ namespace MEDCoupling } } - PyObject *are2DCellsNotCorrectlyOriented(PyObject *vec, bool polyOnly) const throw(INTERP_KERNEL::Exception) + PyObject *are2DCellsNotCorrectlyOriented(PyObject *vec, bool polyOnly) const { double val; DataArrayDouble *a; @@ -2662,7 +2662,7 @@ namespace MEDCoupling return SWIG_NewPointerObj(SWIG_as_voidptr(ret),SWIGTYPE_p_MEDCoupling__DataArrayInt, SWIG_POINTER_OWN | 0 ); } - void orientCorrectly2DCells(PyObject *vec, bool polyOnly) throw(INTERP_KERNEL::Exception) + void orientCorrectly2DCells(PyObject *vec, bool polyOnly) { double val; DataArrayDouble *a; @@ -2675,7 +2675,7 @@ namespace MEDCoupling self->orientCorrectly2DCells(v,polyOnly); } - PyObject *arePolyhedronsNotCorrectlyOriented() const throw(INTERP_KERNEL::Exception) + PyObject *arePolyhedronsNotCorrectlyOriented() const { std::vector cells; self->arePolyhedronsNotCorrectlyOriented(cells); @@ -2685,7 +2685,7 @@ namespace MEDCoupling return SWIG_NewPointerObj(SWIG_as_voidptr(ret),SWIGTYPE_p_MEDCoupling__DataArrayInt, SWIG_POINTER_OWN | 0 ); } - PyObject *getFastAveragePlaneOfThis() const throw(INTERP_KERNEL::Exception) + PyObject *getFastAveragePlaneOfThis() const { double vec[3]; double pos[3]; @@ -2696,14 +2696,14 @@ namespace MEDCoupling return convertDblArrToPyListOfTuple(vals,3,2); } - static MEDCouplingUMesh *MergeUMeshes(PyObject *li) throw(INTERP_KERNEL::Exception) + static MEDCouplingUMesh *MergeUMeshes(PyObject *li) { std::vector tmp; convertFromPyObjVectorOfObj(li,SWIGTYPE_p_MEDCoupling__MEDCouplingUMesh,"MEDCouplingUMesh",tmp); return MEDCouplingUMesh::MergeUMeshes(tmp); } - PyObject *areCellsIncludedIn(const MEDCouplingUMesh *other, int compType) const throw(INTERP_KERNEL::Exception) + PyObject *areCellsIncludedIn(const MEDCouplingUMesh *other, int compType) const { DataArrayInt *ret1; bool ret0=self->areCellsIncludedIn(other,compType,ret1); @@ -2715,7 +2715,7 @@ namespace MEDCoupling return ret; } - PyObject *areCellsIncludedInPolicy7(const MEDCouplingUMesh *other) const throw(INTERP_KERNEL::Exception) + PyObject *areCellsIncludedInPolicy7(const MEDCouplingUMesh *other) const { DataArrayInt *ret1; bool ret0=self->areCellsIncludedInPolicy7(other,ret1); @@ -2727,7 +2727,7 @@ namespace MEDCoupling return ret; } - PyObject *explode3DMeshTo1D() const throw(INTERP_KERNEL::Exception) + PyObject *explode3DMeshTo1D() const { MCAuto d0=DataArrayInt::New(); MCAuto d1=DataArrayInt::New(); @@ -2743,7 +2743,7 @@ namespace MEDCoupling return ret; } - PyObject *explodeIntoEdges() const throw(INTERP_KERNEL::Exception) + PyObject *explodeIntoEdges() const { MCAuto desc,descIndex,revDesc,revDescIndx; MCAuto m(self->explodeIntoEdges(desc,descIndex,revDesc,revDescIndx)); @@ -2756,7 +2756,7 @@ namespace MEDCoupling return ret; } - PyObject *explodeMeshIntoMicroEdges() const throw(INTERP_KERNEL::Exception) + PyObject *explodeMeshIntoMicroEdges() const { MCAuto d0=DataArrayInt::New(); MCAuto d1=DataArrayInt::New(); @@ -2772,7 +2772,7 @@ namespace MEDCoupling return ret; } - PyObject *buildDescendingConnectivity() const throw(INTERP_KERNEL::Exception) + PyObject *buildDescendingConnectivity() const { MCAuto d0=DataArrayInt::New(); MCAuto d1=DataArrayInt::New(); @@ -2788,7 +2788,7 @@ namespace MEDCoupling return ret; } - PyObject *buildDescendingConnectivity2() const throw(INTERP_KERNEL::Exception) + PyObject *buildDescendingConnectivity2() const { MCAuto d0=DataArrayInt::New(); MCAuto d1=DataArrayInt::New(); @@ -2804,7 +2804,7 @@ namespace MEDCoupling return ret; } - PyObject *computeNeighborsOfCells() const throw(INTERP_KERNEL::Exception) + PyObject *computeNeighborsOfCells() const { DataArrayInt *neighbors=0,*neighborsIdx=0; self->computeNeighborsOfCells(neighbors,neighborsIdx); @@ -2814,7 +2814,7 @@ namespace MEDCoupling return ret; } - PyObject *computeNeighborsOfNodes() const throw(INTERP_KERNEL::Exception) + PyObject *computeNeighborsOfNodes() const { DataArrayInt *neighbors=0,*neighborsIdx=0; self->computeNeighborsOfNodes(neighbors,neighborsIdx); @@ -2824,7 +2824,7 @@ namespace MEDCoupling return ret; } - PyObject *computeEnlargedNeighborsOfNodes() const throw(INTERP_KERNEL::Exception) + PyObject *computeEnlargedNeighborsOfNodes() const { MCAuto neighbors,neighborsIdx; self->computeEnlargedNeighborsOfNodes(neighbors,neighborsIdx); @@ -2834,7 +2834,7 @@ namespace MEDCoupling return ret; } - PyObject *computeCellNeighborhoodFromNodesOne(const DataArrayInt *nodeNeigh, const DataArrayInt *nodeNeighI) const throw(INTERP_KERNEL::Exception) + PyObject *computeCellNeighborhoodFromNodesOne(const DataArrayInt *nodeNeigh, const DataArrayInt *nodeNeighI) const { MCAuto cellNeigh,cellNeighIndex; self->computeCellNeighborhoodFromNodesOne(nodeNeigh,nodeNeighI,cellNeigh,cellNeighIndex); @@ -2844,7 +2844,7 @@ namespace MEDCoupling return ret; } - static PyObject *ComputeNeighborsOfCellsAdv(const DataArrayInt *desc, const DataArrayInt *descI, const DataArrayInt *revDesc, const DataArrayInt *revDescI) throw(INTERP_KERNEL::Exception) + static PyObject *ComputeNeighborsOfCellsAdv(const DataArrayInt *desc, const DataArrayInt *descI, const DataArrayInt *revDesc, const DataArrayInt *revDescI) { DataArrayInt *neighbors=0,*neighborsIdx=0; MEDCouplingUMesh::ComputeNeighborsOfCellsAdv(desc,descI,revDesc,revDescI,neighbors,neighborsIdx); @@ -2871,7 +2871,7 @@ namespace MEDCoupling return ret; } - DataArrayDouble *getPartBarycenterAndOwner(DataArrayInt *da) const throw(INTERP_KERNEL::Exception) + DataArrayDouble *getPartBarycenterAndOwner(DataArrayInt *da) const { if(!da) throw INTERP_KERNEL::Exception("Not null DataArrayInt instance expected !"); @@ -2879,7 +2879,7 @@ namespace MEDCoupling return self->getPartBarycenterAndOwner(da->getConstPointer(),da->getConstPointer()+da->getNbOfElems()); } - DataArrayDouble *getPartMeasureField(bool isAbs, DataArrayInt *da) const throw(INTERP_KERNEL::Exception) + DataArrayDouble *getPartMeasureField(bool isAbs, DataArrayInt *da) const { if(!da) throw INTERP_KERNEL::Exception("Not null DataArrayInt instance expected !"); @@ -2887,7 +2887,7 @@ namespace MEDCoupling return self->getPartMeasureField(isAbs,da->getConstPointer(),da->getConstPointer()+da->getNbOfElems()); } - MEDCouplingFieldDouble *buildPartOrthogonalField(DataArrayInt *da) const throw(INTERP_KERNEL::Exception) + MEDCouplingFieldDouble *buildPartOrthogonalField(DataArrayInt *da) const { if(!da) throw INTERP_KERNEL::Exception("Not null DataArrayInt instance expected !"); @@ -2895,7 +2895,7 @@ namespace MEDCoupling return self->buildPartOrthogonalField(da->getConstPointer(),da->getConstPointer()+da->getNbOfElems()); } - PyObject *getTypesOfPart(DataArrayInt *da) const throw(INTERP_KERNEL::Exception) + PyObject *getTypesOfPart(DataArrayInt *da) const { if(!da) throw INTERP_KERNEL::Exception("Not null DataArrayInt instance expected !"); @@ -2908,7 +2908,7 @@ namespace MEDCoupling return res; } - DataArrayInt *keepCellIdsByType(INTERP_KERNEL::NormalizedCellType type, DataArrayInt *da) const throw(INTERP_KERNEL::Exception) + DataArrayInt *keepCellIdsByType(INTERP_KERNEL::NormalizedCellType type, DataArrayInt *da) const { if(!da) throw INTERP_KERNEL::Exception("Not null DataArrayInt instance expected !"); @@ -2918,7 +2918,7 @@ namespace MEDCoupling return ret; } - static PyObject *Intersect2DMeshes(const MEDCouplingUMesh *m1, const MEDCouplingUMesh *m2, double eps) throw(INTERP_KERNEL::Exception) + static PyObject *Intersect2DMeshes(const MEDCouplingUMesh *m1, const MEDCouplingUMesh *m2, double eps) { DataArrayInt *cellNb1=0,*cellNb2=0; MEDCouplingUMesh *mret=MEDCouplingUMesh::Intersect2DMeshes(m1,m2,eps,cellNb1,cellNb2); @@ -2929,7 +2929,7 @@ namespace MEDCoupling return ret; } - static PyObject *Intersect2DMeshWith1DLine(const MEDCouplingUMesh *mesh2D, const MEDCouplingUMesh *mesh1D, double eps) throw(INTERP_KERNEL::Exception) + static PyObject *Intersect2DMeshWith1DLine(const MEDCouplingUMesh *mesh2D, const MEDCouplingUMesh *mesh1D, double eps) { MEDCouplingUMesh *splitMesh2D(0),*splitMesh1D(0); DataArrayInt *cellIdInMesh2D(0),*cellIdInMesh1D(0); @@ -2942,7 +2942,7 @@ namespace MEDCoupling return ret; } - PyObject *buildSlice3D(PyObject *origin, PyObject *vec, double eps) const throw(INTERP_KERNEL::Exception) + PyObject *buildSlice3D(PyObject *origin, PyObject *vec, double eps) const { int spaceDim=self->getSpaceDimension(); if(spaceDim!=3) @@ -2965,7 +2965,7 @@ namespace MEDCoupling return ret; } - PyObject *buildSlice3DSurf(PyObject *origin, PyObject *vec, double eps) const throw(INTERP_KERNEL::Exception) + PyObject *buildSlice3DSurf(PyObject *origin, PyObject *vec, double eps) const { int spaceDim=self->getSpaceDimension(); if(spaceDim!=3) @@ -2988,7 +2988,7 @@ namespace MEDCoupling return ret; } - MEDCouplingUMesh *clipSingle3DCellByPlane(PyObject *origin, PyObject *vec, double eps) const throw(INTERP_KERNEL::Exception) + MEDCouplingUMesh *clipSingle3DCellByPlane(PyObject *origin, PyObject *vec, double eps) const { double val,val2; DataArrayDouble *a,*a2; @@ -3003,7 +3003,7 @@ namespace MEDCoupling return ret.retn(); } - DataArrayInt *getCellIdsCrossingPlane(PyObject *origin, PyObject *vec, double eps) const throw(INTERP_KERNEL::Exception) + DataArrayInt *getCellIdsCrossingPlane(PyObject *origin, PyObject *vec, double eps) const { int spaceDim=self->getSpaceDimension(); if(spaceDim!=3) @@ -3020,7 +3020,7 @@ namespace MEDCoupling return self->getCellIdsCrossingPlane(orig,vect,eps); } - void convertToPolyTypes(PyObject *li) throw(INTERP_KERNEL::Exception) + void convertToPolyTypes(PyObject *li) { int sw; int pos1; @@ -3053,11 +3053,11 @@ namespace MEDCoupling } } void convertAllToPoly(); - void convertExtrudedPolyhedra() throw(INTERP_KERNEL::Exception); - bool unPolyze() throw(INTERP_KERNEL::Exception); - void simplifyPolyhedra(double eps) throw(INTERP_KERNEL::Exception); - MEDCouplingUMesh *buildSpreadZonesWithPoly() const throw(INTERP_KERNEL::Exception); - MEDCouplingUMesh *buildExtrudedMesh(const MEDCouplingUMesh *mesh1D, int policy) throw(INTERP_KERNEL::Exception); + void convertExtrudedPolyhedra(); + bool unPolyze(); + void simplifyPolyhedra(double eps); + MEDCouplingUMesh *buildSpreadZonesWithPoly() const; + MEDCouplingUMesh *buildExtrudedMesh(const MEDCouplingUMesh *mesh1D, int policy); }; //== MEDCouplingUMesh End @@ -3067,17 +3067,17 @@ namespace MEDCoupling class MEDCouplingMappedExtrudedMesh : public MEDCoupling::MEDCouplingMesh { public: - static MEDCouplingMappedExtrudedMesh *New(const MEDCouplingUMesh *mesh3D, const MEDCouplingUMesh *mesh2D, int cell2DId) throw(INTERP_KERNEL::Exception); - static MEDCouplingMappedExtrudedMesh *New(const MEDCouplingCMesh *mesh3D) throw(INTERP_KERNEL::Exception); - MEDCouplingUMesh *build3DUnstructuredMesh() const throw(INTERP_KERNEL::Exception); + static MEDCouplingMappedExtrudedMesh *New(const MEDCouplingUMesh *mesh3D, const MEDCouplingUMesh *mesh2D, int cell2DId); + static MEDCouplingMappedExtrudedMesh *New(const MEDCouplingCMesh *mesh3D); + MEDCouplingUMesh *build3DUnstructuredMesh() const; int get2DCellIdForExtrusion() const; %extend { - MEDCouplingMappedExtrudedMesh(const MEDCouplingUMesh *mesh3D, const MEDCouplingUMesh *mesh2D, int cell2DId) throw(INTERP_KERNEL::Exception) + MEDCouplingMappedExtrudedMesh(const MEDCouplingUMesh *mesh3D, const MEDCouplingUMesh *mesh2D, int cell2DId) { return MEDCouplingMappedExtrudedMesh::New(mesh3D,mesh2D,cell2DId); } - MEDCouplingMappedExtrudedMesh(const MEDCouplingCMesh *mesh3D) throw(INTERP_KERNEL::Exception) + MEDCouplingMappedExtrudedMesh(const MEDCouplingCMesh *mesh3D) { return MEDCouplingMappedExtrudedMesh::New(mesh3D); } @@ -3087,33 +3087,33 @@ namespace MEDCoupling return MEDCouplingMappedExtrudedMesh::New(); } - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->simpleRepr(); } - std::string __repr__() const throw(INTERP_KERNEL::Exception) + std::string __repr__() const { std::ostringstream oss; self->reprQuickOverview(oss); return oss.str(); } - PyObject *getMesh2D() const throw(INTERP_KERNEL::Exception) + PyObject *getMesh2D() const { MEDCouplingUMesh *ret=self->getMesh2D(); if(ret) ret->incrRef(); return convertMesh(ret, SWIG_POINTER_OWN | 0 ); } - PyObject *getMesh1D() const throw(INTERP_KERNEL::Exception) + PyObject *getMesh1D() const { MEDCouplingUMesh *ret=self->getMesh1D(); if(ret) ret->incrRef(); return convertMesh(ret, SWIG_POINTER_OWN | 0 ); } - PyObject *getMesh3DIds() const throw(INTERP_KERNEL::Exception) + PyObject *getMesh3DIds() const { DataArrayInt *ret=self->getMesh3DIds(); if(ret) @@ -3128,15 +3128,15 @@ namespace MEDCoupling class MEDCoupling1GTUMesh : public MEDCoupling::MEDCouplingPointSet { public: - static MEDCoupling1GTUMesh *New(const std::string& name, INTERP_KERNEL::NormalizedCellType type) throw(INTERP_KERNEL::Exception); - static MEDCoupling1GTUMesh *New(const MEDCouplingUMesh *m) throw(INTERP_KERNEL::Exception); - INTERP_KERNEL::NormalizedCellType getCellModelEnum() const throw(INTERP_KERNEL::Exception); - int getNodalConnectivityLength() const throw(INTERP_KERNEL::Exception); - virtual void allocateCells(int nbOfCells=0) throw(INTERP_KERNEL::Exception); - virtual void checkConsistencyOfConnectivity() const throw(INTERP_KERNEL::Exception); + static MEDCoupling1GTUMesh *New(const std::string& name, INTERP_KERNEL::NormalizedCellType type); + static MEDCoupling1GTUMesh *New(const MEDCouplingUMesh *m); + INTERP_KERNEL::NormalizedCellType getCellModelEnum() const; + int getNodalConnectivityLength() const; + virtual void allocateCells(int nbOfCells=0); + virtual void checkConsistencyOfConnectivity() const; %extend { - virtual void insertNextCell(PyObject *li) throw(INTERP_KERNEL::Exception) + virtual void insertNextCell(PyObject *li) { int szArr,sw,iTypppArr; std::vector stdvecTyyppArr; @@ -3144,14 +3144,14 @@ namespace MEDCoupling self->insertNextCell(tmp,tmp+szArr); } - virtual DataArrayInt *getNodalConnectivity() const throw(INTERP_KERNEL::Exception) + virtual DataArrayInt *getNodalConnectivity() const { DataArrayInt *ret=self->getNodalConnectivity(); if(ret) ret->incrRef(); return ret; } - static MEDCouplingUMesh *AggregateOnSameCoordsToUMesh(PyObject *li) throw(INTERP_KERNEL::Exception) + static MEDCouplingUMesh *AggregateOnSameCoordsToUMesh(PyObject *li) { std::vector< const MEDCoupling1GTUMesh *> parts; convertFromPyObjVectorOfObj(li,SWIGTYPE_p_MEDCoupling__MEDCoupling1GTUMesh,"MEDCoupling1GTUMesh",parts); @@ -3165,15 +3165,15 @@ namespace MEDCoupling class MEDCoupling1SGTUMesh : public MEDCoupling::MEDCoupling1GTUMesh { public: - static MEDCoupling1SGTUMesh *New(const std::string& name, INTERP_KERNEL::NormalizedCellType type) throw(INTERP_KERNEL::Exception); - static MEDCoupling1SGTUMesh *New(const MEDCouplingUMesh *m) throw(INTERP_KERNEL::Exception); - void setNodalConnectivity(DataArrayInt *nodalConn) throw(INTERP_KERNEL::Exception); - int getNumberOfNodesPerCell() const throw(INTERP_KERNEL::Exception); - static MEDCoupling1SGTUMesh *Merge1SGTUMeshes(const MEDCoupling1SGTUMesh *mesh1, const MEDCoupling1SGTUMesh *mesh2) throw(INTERP_KERNEL::Exception); - MEDCoupling1SGTUMesh *buildSetInstanceFromThis(int spaceDim) const throw(INTERP_KERNEL::Exception); - MEDCoupling1GTUMesh *computeDualMesh() const throw(INTERP_KERNEL::Exception); - MEDCoupling1SGTUMesh *explodeEachHexa8To6Quad4() const throw(INTERP_KERNEL::Exception); - DataArrayInt *sortHexa8EachOther() throw(INTERP_KERNEL::Exception); + static MEDCoupling1SGTUMesh *New(const std::string& name, INTERP_KERNEL::NormalizedCellType type); + static MEDCoupling1SGTUMesh *New(const MEDCouplingUMesh *m); + void setNodalConnectivity(DataArrayInt *nodalConn); + int getNumberOfNodesPerCell() const; + static MEDCoupling1SGTUMesh *Merge1SGTUMeshes(const MEDCoupling1SGTUMesh *mesh1, const MEDCoupling1SGTUMesh *mesh2); + MEDCoupling1SGTUMesh *buildSetInstanceFromThis(int spaceDim) const; + MEDCoupling1GTUMesh *computeDualMesh() const; + MEDCoupling1SGTUMesh *explodeEachHexa8To6Quad4() const; + DataArrayInt *sortHexa8EachOther(); %extend { MEDCoupling1SGTUMesh() @@ -3181,29 +3181,29 @@ namespace MEDCoupling return MEDCoupling1SGTUMesh::New(); } - MEDCoupling1SGTUMesh(const std::string& name, INTERP_KERNEL::NormalizedCellType type) throw(INTERP_KERNEL::Exception) + MEDCoupling1SGTUMesh(const std::string& name, INTERP_KERNEL::NormalizedCellType type) { return MEDCoupling1SGTUMesh::New(name,type); } - MEDCoupling1SGTUMesh(const MEDCouplingUMesh *m) throw(INTERP_KERNEL::Exception) + MEDCoupling1SGTUMesh(const MEDCouplingUMesh *m) { return MEDCoupling1SGTUMesh::New(m); } - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->simpleRepr(); } - std::string __repr__() const throw(INTERP_KERNEL::Exception) + std::string __repr__() const { std::ostringstream oss; self->reprQuickOverview(oss); return oss.str(); } - PyObject *structurizeMe(double eps=1e-12) const throw(INTERP_KERNEL::Exception) + PyObject *structurizeMe(double eps=1e-12) const { DataArrayInt *cellPerm(0),*nodePerm(0); MEDCouplingCMesh *retCpp(self->structurizeMe(cellPerm,nodePerm,eps)); @@ -3214,14 +3214,14 @@ namespace MEDCoupling return ret; } - static MEDCoupling1SGTUMesh *Merge1SGTUMeshes(PyObject *li) throw(INTERP_KERNEL::Exception) + static MEDCoupling1SGTUMesh *Merge1SGTUMeshes(PyObject *li) { std::vector tmp; convertFromPyObjVectorOfObj(li,SWIGTYPE_p_MEDCoupling__MEDCoupling1SGTUMesh,"MEDCoupling1SGTUMesh",tmp); return MEDCoupling1SGTUMesh::Merge1SGTUMeshes(tmp); } - static MEDCoupling1SGTUMesh *Merge1SGTUMeshesOnSameCoords(PyObject *li) throw(INTERP_KERNEL::Exception) + static MEDCoupling1SGTUMesh *Merge1SGTUMeshesOnSameCoords(PyObject *li) { std::vector tmp; convertFromPyObjVectorOfObj(li,SWIGTYPE_p_MEDCoupling__MEDCoupling1SGTUMesh,"MEDCoupling1SGTUMesh",tmp); @@ -3237,47 +3237,47 @@ namespace MEDCoupling class MEDCoupling1DGTUMesh : public MEDCoupling::MEDCoupling1GTUMesh { public: - static MEDCoupling1DGTUMesh *New(const std::string& name, INTERP_KERNEL::NormalizedCellType type) throw(INTERP_KERNEL::Exception); - static MEDCoupling1DGTUMesh *New(const MEDCouplingUMesh *m) throw(INTERP_KERNEL::Exception); - void setNodalConnectivity(DataArrayInt *nodalConn, DataArrayInt *nodalConnIndex) throw(INTERP_KERNEL::Exception); - MEDCoupling1DGTUMesh *buildSetInstanceFromThis(int spaceDim) const throw(INTERP_KERNEL::Exception); - bool isPacked() const throw(INTERP_KERNEL::Exception); + static MEDCoupling1DGTUMesh *New(const std::string& name, INTERP_KERNEL::NormalizedCellType type); + static MEDCoupling1DGTUMesh *New(const MEDCouplingUMesh *m); + void setNodalConnectivity(DataArrayInt *nodalConn, DataArrayInt *nodalConnIndex); + MEDCoupling1DGTUMesh *buildSetInstanceFromThis(int spaceDim) const; + bool isPacked() const; %extend { MEDCoupling1DGTUMesh() { return MEDCoupling1DGTUMesh::New(); } - MEDCoupling1DGTUMesh(const std::string& name, INTERP_KERNEL::NormalizedCellType type) throw(INTERP_KERNEL::Exception) + MEDCoupling1DGTUMesh(const std::string& name, INTERP_KERNEL::NormalizedCellType type) { return MEDCoupling1DGTUMesh::New(name,type); } - MEDCoupling1DGTUMesh(const MEDCouplingUMesh *m) throw(INTERP_KERNEL::Exception) + MEDCoupling1DGTUMesh(const MEDCouplingUMesh *m) { return MEDCoupling1DGTUMesh::New(m); } - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->simpleRepr(); } - std::string __repr__() const throw(INTERP_KERNEL::Exception) + std::string __repr__() const { std::ostringstream oss; self->reprQuickOverview(oss); return oss.str(); } - DataArrayInt *getNodalConnectivityIndex() const throw(INTERP_KERNEL::Exception) + DataArrayInt *getNodalConnectivityIndex() const { DataArrayInt *ret=self->getNodalConnectivityIndex(); if(ret) ret->incrRef(); return ret; } - PyObject *retrievePackedNodalConnectivity() const throw(INTERP_KERNEL::Exception) + PyObject *retrievePackedNodalConnectivity() const { DataArrayInt *ret1=0,*ret2=0; bool ret0=self->retrievePackedNodalConnectivity(ret1,ret2); @@ -3290,7 +3290,7 @@ namespace MEDCoupling return ret; } - PyObject *copyWithNodalConnectivityPacked() const throw(INTERP_KERNEL::Exception) + PyObject *copyWithNodalConnectivityPacked() const { bool ret1; MEDCoupling1DGTUMesh *ret0=self->copyWithNodalConnectivityPacked(ret1); @@ -3301,21 +3301,21 @@ namespace MEDCoupling return ret; } - static MEDCoupling1DGTUMesh *Merge1DGTUMeshes(PyObject *li) throw(INTERP_KERNEL::Exception) + static MEDCoupling1DGTUMesh *Merge1DGTUMeshes(PyObject *li) { std::vector tmp; convertFromPyObjVectorOfObj(li,SWIGTYPE_p_MEDCoupling__MEDCoupling1DGTUMesh,"MEDCoupling1DGTUMesh",tmp); return MEDCoupling1DGTUMesh::Merge1DGTUMeshes(tmp); } - static MEDCoupling1DGTUMesh *Merge1DGTUMeshesOnSameCoords(PyObject *li) throw(INTERP_KERNEL::Exception) + static MEDCoupling1DGTUMesh *Merge1DGTUMeshesOnSameCoords(PyObject *li) { std::vector tmp; convertFromPyObjVectorOfObj(li,SWIGTYPE_p_MEDCoupling__MEDCoupling1DGTUMesh,"MEDCoupling1DGTUMesh",tmp); return MEDCoupling1DGTUMesh::Merge1DGTUMeshesOnSameCoords(tmp); } - static DataArrayInt *AggregateNodalConnAndShiftNodeIds(PyObject *li, const std::vector& offsetInNodeIdsPerElt) throw(INTERP_KERNEL::Exception) + static DataArrayInt *AggregateNodalConnAndShiftNodeIds(PyObject *li, const std::vector& offsetInNodeIdsPerElt) { std::vector tmp; convertFromPyObjVectorOfObj(li,SWIGTYPE_p_MEDCoupling__DataArrayInt,"DataArrayInt",tmp); @@ -3329,24 +3329,24 @@ namespace MEDCoupling class MEDCouplingStructuredMesh : public MEDCoupling::MEDCouplingMesh { public: - int getCellIdFromPos(int i, int j, int k) const throw(INTERP_KERNEL::Exception); - int getNodeIdFromPos(int i, int j, int k) const throw(INTERP_KERNEL::Exception); - int getNumberOfCellsOfSubLevelMesh() const throw(INTERP_KERNEL::Exception); - int getSpaceDimensionOnNodeStruct() const throw(INTERP_KERNEL::Exception); - double computeSquareness() const throw(INTERP_KERNEL::Exception); - virtual std::vector getNodeGridStructure() const throw(INTERP_KERNEL::Exception); - std::vector getCellGridStructure() const throw(INTERP_KERNEL::Exception); - MEDCoupling1SGTUMesh *build1SGTUnstructured() const throw(INTERP_KERNEL::Exception); - std::vector getLocationFromCellId(int cellId) const throw(INTERP_KERNEL::Exception); - std::vector getLocationFromNodeId(int cellId) const throw(INTERP_KERNEL::Exception); - static INTERP_KERNEL::NormalizedCellType GetGeoTypeGivenMeshDimension(int meshDim) throw(INTERP_KERNEL::Exception); - MEDCoupling1SGTUMesh *build1SGTSubLevelMesh() const throw(INTERP_KERNEL::Exception); - static int DeduceNumberOfGivenStructure(const std::vector& st) throw(INTERP_KERNEL::Exception); - static DataArrayInt *ComputeCornersGhost(const std::vector& st, int ghostLev) throw(INTERP_KERNEL::Exception); - static std::vector GetSplitVectFromStruct(const std::vector& strct) throw(INTERP_KERNEL::Exception); + int getCellIdFromPos(int i, int j, int k) const; + int getNodeIdFromPos(int i, int j, int k) const; + int getNumberOfCellsOfSubLevelMesh() const; + int getSpaceDimensionOnNodeStruct() const; + double computeSquareness() const; + virtual std::vector getNodeGridStructure() const; + std::vector getCellGridStructure() const; + MEDCoupling1SGTUMesh *build1SGTUnstructured() const; + std::vector getLocationFromCellId(int cellId) const; + std::vector getLocationFromNodeId(int cellId) const; + static INTERP_KERNEL::NormalizedCellType GetGeoTypeGivenMeshDimension(int meshDim); + MEDCoupling1SGTUMesh *build1SGTSubLevelMesh() const; + static int DeduceNumberOfGivenStructure(const std::vector& st); + static DataArrayInt *ComputeCornersGhost(const std::vector& st, int ghostLev); + static std::vector GetSplitVectFromStruct(const std::vector& strct); %extend { - virtual MEDCouplingStructuredMesh *buildStructuredSubPart(PyObject *cellPart) const throw(INTERP_KERNEL::Exception) + virtual MEDCouplingStructuredMesh *buildStructuredSubPart(PyObject *cellPart) const { int tmpp1=-1,tmpp2=-1; std::vector tmp=fillArrayWithPyListInt2(cellPart,tmpp1,tmpp2); @@ -3370,7 +3370,7 @@ namespace MEDCoupling return self->buildStructuredSubPart(inp); } - static DataArrayInt *BuildExplicitIdsFrom(PyObject *st, PyObject *part) throw(INTERP_KERNEL::Exception) + static DataArrayInt *BuildExplicitIdsFrom(PyObject *st, PyObject *part) { std::vector< std::pair > inp; convertPyToVectorPairInt(part,inp); @@ -3383,21 +3383,21 @@ namespace MEDCoupling return MEDCouplingStructuredMesh::BuildExplicitIdsFrom(tmp5,inp); } - static void MultiplyPartOf(const std::vector& st, PyObject *part, double factor, DataArrayDouble *da) throw(INTERP_KERNEL::Exception) + static void MultiplyPartOf(const std::vector& st, PyObject *part, double factor, DataArrayDouble *da) { std::vector< std::pair > inp; convertPyToVectorPairInt(part,inp); MEDCouplingStructuredMesh::MultiplyPartOf(st,inp,factor,da); } - static void MultiplyPartOfByGhost(const std::vector& st, PyObject *part, int ghostSize, double factor, DataArrayDouble *da) throw(INTERP_KERNEL::Exception) + static void MultiplyPartOfByGhost(const std::vector& st, PyObject *part, int ghostSize, double factor, DataArrayDouble *da) { std::vector< std::pair > inp; convertPyToVectorPairInt(part,inp); MEDCouplingStructuredMesh::MultiplyPartOfByGhost(st,inp,ghostSize,factor,da); } - static PyObject *PutInGhostFormat(int ghostSize, const std::vector& st, PyObject *part) throw(INTERP_KERNEL::Exception) + static PyObject *PutInGhostFormat(int ghostSize, const std::vector& st, PyObject *part) { std::vector< std::pair > inp; convertPyToVectorPairInt(part,inp); @@ -3410,28 +3410,28 @@ namespace MEDCoupling return ret; } - static DataArrayDouble *ExtractFieldOfDoubleFrom(const std::vector& st, const DataArrayDouble *fieldOfDbl, PyObject *partCompactFormat) throw(INTERP_KERNEL::Exception) + static DataArrayDouble *ExtractFieldOfDoubleFrom(const std::vector& st, const DataArrayDouble *fieldOfDbl, PyObject *partCompactFormat) { std::vector< std::pair > inp; convertPyToVectorPairInt(partCompactFormat,inp); return MEDCouplingStructuredMesh::ExtractFieldOfDoubleFrom(st,fieldOfDbl,inp); } - static void AssignPartOfFieldOfDoubleUsing(const std::vector& st, DataArrayDouble *fieldOfDbl, PyObject *partCompactFormat, const DataArrayDouble *other) throw(INTERP_KERNEL::Exception) + static void AssignPartOfFieldOfDoubleUsing(const std::vector& st, DataArrayDouble *fieldOfDbl, PyObject *partCompactFormat, const DataArrayDouble *other) { std::vector< std::pair > inp; convertPyToVectorPairInt(partCompactFormat,inp); MEDCouplingStructuredMesh::AssignPartOfFieldOfDoubleUsing(st,fieldOfDbl,inp,other); } - static int DeduceNumberOfGivenRangeInCompactFrmt(PyObject *part) throw(INTERP_KERNEL::Exception) + static int DeduceNumberOfGivenRangeInCompactFrmt(PyObject *part) { std::vector< std::pair > inp; convertPyToVectorPairInt(part,inp); return MEDCouplingStructuredMesh::DeduceNumberOfGivenRangeInCompactFrmt(inp); } - static DataArrayInt *Build1GTNodalConnectivity(PyObject *li) throw(INTERP_KERNEL::Exception) + static DataArrayInt *Build1GTNodalConnectivity(PyObject *li) { int szArr,sw,iTypppArr; std::vector stdvecTyyppArr; @@ -3439,7 +3439,7 @@ namespace MEDCoupling return MEDCouplingStructuredMesh::Build1GTNodalConnectivity(tmp,tmp+szArr); } - static DataArrayInt *Build1GTNodalConnectivityOfSubLevelMesh(PyObject *li) throw(INTERP_KERNEL::Exception) + static DataArrayInt *Build1GTNodalConnectivityOfSubLevelMesh(PyObject *li) { int szArr,sw,iTypppArr; std::vector stdvecTyyppArr; @@ -3447,14 +3447,14 @@ namespace MEDCoupling return MEDCouplingStructuredMesh::Build1GTNodalConnectivityOfSubLevelMesh(tmp,tmp+szArr); } - static std::vector GetDimensionsFromCompactFrmt(PyObject *partCompactFormat) throw(INTERP_KERNEL::Exception) + static std::vector GetDimensionsFromCompactFrmt(PyObject *partCompactFormat) { std::vector< std::pair > inp; convertPyToVectorPairInt(partCompactFormat,inp); return MEDCouplingStructuredMesh::GetDimensionsFromCompactFrmt(inp); } - static PyObject *GetCompactFrmtFromDimensions(const std::vector& dims) throw(INTERP_KERNEL::Exception) + static PyObject *GetCompactFrmtFromDimensions(const std::vector& dims) { std::vector< std::pair > ret(MEDCouplingStructuredMesh::GetCompactFrmtFromDimensions(dims)); PyObject *retPy=PyList_New(ret.size()); @@ -3468,7 +3468,7 @@ namespace MEDCoupling return retPy; } - static PyObject *IntersectRanges(PyObject *r1, PyObject *r2) throw(INTERP_KERNEL::Exception) + static PyObject *IntersectRanges(PyObject *r1, PyObject *r2) { std::vector< std::pair > r1Cpp,r2Cpp; convertPyToVectorPairInt(r1,r1Cpp); @@ -3493,7 +3493,7 @@ namespace MEDCoupling return MEDCouplingStructuredMesh::AreRangesIntersect(r1Cpp,r2Cpp); } - static PyObject *IsPartStructured(PyObject *li, PyObject *st) throw(INTERP_KERNEL::Exception) + static PyObject *IsPartStructured(PyObject *li, PyObject *st) { int szArr,sw,iTypppArr; std::vector stdvecTyyppArr; @@ -3519,7 +3519,7 @@ namespace MEDCoupling return ret; } - static PyObject *ChangeReferenceFromGlobalOfCompactFrmt(PyObject *bigInAbs, PyObject *partOfBigInAbs, bool check=true) throw(INTERP_KERNEL::Exception) + static PyObject *ChangeReferenceFromGlobalOfCompactFrmt(PyObject *bigInAbs, PyObject *partOfBigInAbs, bool check=true) { std::vector< std::pair > param0,param1,ret; convertPyToVectorPairInt(bigInAbs,param0); @@ -3536,7 +3536,7 @@ namespace MEDCoupling return retPy; } - static PyObject *TranslateCompactFrmt(PyObject *part, const std::vector& translation) throw(INTERP_KERNEL::Exception) + static PyObject *TranslateCompactFrmt(PyObject *part, const std::vector& translation) { std::vector< std::pair > param0; convertPyToVectorPairInt(part,param0); @@ -3552,7 +3552,7 @@ namespace MEDCoupling return retPy; } - static std::vector FindTranslationFrom(PyObject *startingFrom, PyObject *goingTo) throw(INTERP_KERNEL::Exception) + static std::vector FindTranslationFrom(PyObject *startingFrom, PyObject *goingTo) { std::vector< std::pair > param0,param1; convertPyToVectorPairInt(startingFrom,param0); @@ -3560,7 +3560,7 @@ namespace MEDCoupling return MEDCouplingStructuredMesh::FindTranslationFrom(param0,param1); } - static PyObject *ChangeReferenceToGlobalOfCompactFrmt(PyObject *bigInAbs, PyObject *partOfBigRelativeToBig, bool check=true) throw(INTERP_KERNEL::Exception) + static PyObject *ChangeReferenceToGlobalOfCompactFrmt(PyObject *bigInAbs, PyObject *partOfBigRelativeToBig, bool check=true) { std::vector< std::pair > param0,param1,ret; convertPyToVectorPairInt(bigInAbs,param0); @@ -3586,33 +3586,33 @@ namespace MEDCoupling class MEDCouplingCMesh : public MEDCoupling::MEDCouplingStructuredMesh { public: - static MEDCouplingCMesh *New() throw(INTERP_KERNEL::Exception); - static MEDCouplingCMesh *New(const std::string& meshName) throw(INTERP_KERNEL::Exception); + static MEDCouplingCMesh *New(); + static MEDCouplingCMesh *New(const std::string& meshName); void setCoords(const DataArrayDouble *coordsX, const DataArrayDouble *coordsY=0, - const DataArrayDouble *coordsZ=0) throw(INTERP_KERNEL::Exception); - void setCoordsAt(int i, const DataArrayDouble *arr) throw(INTERP_KERNEL::Exception); - MEDCouplingCurveLinearMesh *buildCurveLinear() const throw(INTERP_KERNEL::Exception); + const DataArrayDouble *coordsZ=0); + void setCoordsAt(int i, const DataArrayDouble *arr); + MEDCouplingCurveLinearMesh *buildCurveLinear() const; %extend { - MEDCouplingCMesh() throw(INTERP_KERNEL::Exception) + MEDCouplingCMesh() { return MEDCouplingCMesh::New(); } - MEDCouplingCMesh(const std::string& meshName) throw(INTERP_KERNEL::Exception) + MEDCouplingCMesh(const std::string& meshName) { return MEDCouplingCMesh::New(meshName); } - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->simpleRepr(); } - std::string __repr__() const throw(INTERP_KERNEL::Exception) + std::string __repr__() const { std::ostringstream oss; self->reprQuickOverview(oss); return oss.str(); } - DataArrayDouble *getCoordsAt(int i) throw(INTERP_KERNEL::Exception) + DataArrayDouble *getCoordsAt(int i) { DataArrayDouble *ret=self->getCoordsAt(i); if(ret) @@ -3629,36 +3629,36 @@ namespace MEDCoupling class MEDCouplingCurveLinearMesh : public MEDCoupling::MEDCouplingStructuredMesh { public: - static MEDCouplingCurveLinearMesh *New() throw(INTERP_KERNEL::Exception); - static MEDCouplingCurveLinearMesh *New(const std::string& meshName) throw(INTERP_KERNEL::Exception); - void setCoords(const DataArrayDouble *coords) throw(INTERP_KERNEL::Exception); + static MEDCouplingCurveLinearMesh *New(); + static MEDCouplingCurveLinearMesh *New(const std::string& meshName); + void setCoords(const DataArrayDouble *coords); %extend { - MEDCouplingCurveLinearMesh() throw(INTERP_KERNEL::Exception) + MEDCouplingCurveLinearMesh() { return MEDCouplingCurveLinearMesh::New(); } - MEDCouplingCurveLinearMesh(const std::string& meshName) throw(INTERP_KERNEL::Exception) + MEDCouplingCurveLinearMesh(const std::string& meshName) { return MEDCouplingCurveLinearMesh::New(meshName); } - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->simpleRepr(); } - std::string __repr__() const throw(INTERP_KERNEL::Exception) + std::string __repr__() const { std::ostringstream oss; self->reprQuickOverview(oss); return oss.str(); } - DataArrayDouble *getCoords() throw(INTERP_KERNEL::Exception) + DataArrayDouble *getCoords() { DataArrayDouble *ret=self->getCoords(); if(ret) ret->incrRef(); return ret; } - void setNodeGridStructure(PyObject *gridStruct) throw(INTERP_KERNEL::Exception) + void setNodeGridStructure(PyObject *gridStruct) { int szArr,sw,iTypppArr; std::vector stdvecTyyppArr; @@ -3675,26 +3675,26 @@ namespace MEDCoupling class MEDCouplingIMesh : public MEDCoupling::MEDCouplingStructuredMesh { public: - static MEDCouplingIMesh *New() throw(INTERP_KERNEL::Exception); + static MEDCouplingIMesh *New(); // - void setSpaceDimension(int spaceDim) throw(INTERP_KERNEL::Exception); - std::vector getNodeStruct() const throw(INTERP_KERNEL::Exception); - std::vector getOrigin() const throw(INTERP_KERNEL::Exception); - std::vector getDXYZ() const throw(INTERP_KERNEL::Exception); - void setAxisUnit(const std::string& unitName) throw(INTERP_KERNEL::Exception); - std::string getAxisUnit() const throw(INTERP_KERNEL::Exception); - double getMeasureOfAnyCell() const throw(INTERP_KERNEL::Exception); - MEDCouplingCMesh *convertToCartesian() const throw(INTERP_KERNEL::Exception); - void refineWithFactor(const std::vector& factors) throw(INTERP_KERNEL::Exception); - MEDCouplingIMesh *asSingleCell() const throw(INTERP_KERNEL::Exception); - MEDCouplingIMesh *buildWithGhost(int ghostLev) const throw(INTERP_KERNEL::Exception); + void setSpaceDimension(int spaceDim); + std::vector getNodeStruct() const; + std::vector getOrigin() const; + std::vector getDXYZ() const; + void setAxisUnit(const std::string& unitName); + std::string getAxisUnit() const; + double getMeasureOfAnyCell() const; + MEDCouplingCMesh *convertToCartesian() const; + void refineWithFactor(const std::vector& factors); + MEDCouplingIMesh *asSingleCell() const; + MEDCouplingIMesh *buildWithGhost(int ghostLev) const; %extend { MEDCouplingIMesh() { return MEDCouplingIMesh::New(); } - static MEDCouplingIMesh *New(const std::string& meshName, int spaceDim, PyObject *nodeStrct, PyObject *origin, PyObject *dxyz) throw(INTERP_KERNEL::Exception) + static MEDCouplingIMesh *New(const std::string& meshName, int spaceDim, PyObject *nodeStrct, PyObject *origin, PyObject *dxyz) { static const char msg0[]="MEDCouplingIMesh::New : error on 'origin' parameter !"; static const char msg1[]="MEDCouplingIMesh::New : error on 'dxyz' parameter !"; @@ -3713,12 +3713,12 @@ namespace MEDCoupling return MEDCouplingIMesh::New(meshName,spaceDim,nodeStrctPtr,nodeStrctPtr+sz,originPtr,originPtr+sz1,dxyzPtr,dxyzPtr+sz2); } - MEDCouplingIMesh(const std::string& meshName, int spaceDim, PyObject *nodeStrct, PyObject *origin, PyObject *dxyz) throw(INTERP_KERNEL::Exception) + MEDCouplingIMesh(const std::string& meshName, int spaceDim, PyObject *nodeStrct, PyObject *origin, PyObject *dxyz) { return MEDCoupling_MEDCouplingIMesh_New__SWIG_1(meshName,spaceDim,nodeStrct,origin,dxyz); } - void setNodeStruct(PyObject *nodeStrct) throw(INTERP_KERNEL::Exception) + void setNodeStruct(PyObject *nodeStrct) { int sw,sz,val0; std::vector bb0; @@ -3726,7 +3726,7 @@ namespace MEDCoupling self->setNodeStruct(nodeStrctPtr,nodeStrctPtr+sz); } - void setOrigin(PyObject *origin) throw(INTERP_KERNEL::Exception) + void setOrigin(PyObject *origin) { static const char msg[]="MEDCouplingIMesh::setOrigin : invalid input 'origin' parameter ! integer, float, list/tuple of float, DataArrayDouble or DataArrayDoubleTuple supported !"; double val; @@ -3738,7 +3738,7 @@ namespace MEDCoupling self->setOrigin(originPtr,originPtr+nbTuples); } - void setDXYZ(PyObject *dxyz) throw(INTERP_KERNEL::Exception) + void setDXYZ(PyObject *dxyz) { static const char msg[]="MEDCouplingIMesh::setDXYZ : invalid input 'dxyz' parameter ! integer, float, list/tuple of float, DataArrayDouble or DataArrayDoubleTuple supported !"; double val; @@ -3750,46 +3750,46 @@ namespace MEDCoupling self->setDXYZ(originPtr,originPtr+nbTuples); } - static void CondenseFineToCoarse(const std::vector& coarseSt, const DataArrayDouble *fineDA, PyObject *fineLocInCoarse, const std::vector& facts, DataArrayDouble *coarseDA) throw(INTERP_KERNEL::Exception) + static void CondenseFineToCoarse(const std::vector& coarseSt, const DataArrayDouble *fineDA, PyObject *fineLocInCoarse, const std::vector& facts, DataArrayDouble *coarseDA) { std::vector< std::pair > inp; convertPyToVectorPairInt(fineLocInCoarse,inp); MEDCouplingIMesh::CondenseFineToCoarse(coarseSt,fineDA,inp,facts,coarseDA); } - static void CondenseFineToCoarseGhost(const std::vector& coarseSt, const DataArrayDouble *fineDA, PyObject *fineLocInCoarse, const std::vector& facts, DataArrayDouble *coarseDA, int ghostSize) throw(INTERP_KERNEL::Exception) + static void CondenseFineToCoarseGhost(const std::vector& coarseSt, const DataArrayDouble *fineDA, PyObject *fineLocInCoarse, const std::vector& facts, DataArrayDouble *coarseDA, int ghostSize) { std::vector< std::pair > inp; convertPyToVectorPairInt(fineLocInCoarse,inp); MEDCouplingIMesh::CondenseFineToCoarseGhost(coarseSt,fineDA,inp,facts,coarseDA,ghostSize); } - static void SpreadCoarseToFine(const DataArrayDouble *coarseDA, const std::vector& coarseSt, DataArrayDouble *fineDA, PyObject *fineLocInCoarse, const std::vector& facts) throw(INTERP_KERNEL::Exception) + static void SpreadCoarseToFine(const DataArrayDouble *coarseDA, const std::vector& coarseSt, DataArrayDouble *fineDA, PyObject *fineLocInCoarse, const std::vector& facts) { std::vector< std::pair > inp; convertPyToVectorPairInt(fineLocInCoarse,inp); MEDCouplingIMesh::SpreadCoarseToFine(coarseDA,coarseSt,fineDA,inp,facts); } - static void SpreadCoarseToFineGhost(const DataArrayDouble *coarseDA, const std::vector& coarseSt, DataArrayDouble *fineDA, PyObject *fineLocInCoarse, const std::vector& facts, int ghostSize) throw(INTERP_KERNEL::Exception) + static void SpreadCoarseToFineGhost(const DataArrayDouble *coarseDA, const std::vector& coarseSt, DataArrayDouble *fineDA, PyObject *fineLocInCoarse, const std::vector& facts, int ghostSize) { std::vector< std::pair > inp; convertPyToVectorPairInt(fineLocInCoarse,inp); MEDCouplingIMesh::SpreadCoarseToFineGhost(coarseDA,coarseSt,fineDA,inp,facts,ghostSize); } - static void SpreadCoarseToFineGhostZone(const DataArrayDouble *coarseDA, const std::vector& coarseSt, DataArrayDouble *fineDA, PyObject *fineLocInCoarse, const std::vector& facts, int ghostSize) throw(INTERP_KERNEL::Exception) + static void SpreadCoarseToFineGhostZone(const DataArrayDouble *coarseDA, const std::vector& coarseSt, DataArrayDouble *fineDA, PyObject *fineLocInCoarse, const std::vector& facts, int ghostSize) { std::vector< std::pair > inp; convertPyToVectorPairInt(fineLocInCoarse,inp); MEDCouplingIMesh::SpreadCoarseToFineGhostZone(coarseDA,coarseSt,fineDA,inp,facts,ghostSize); } - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->simpleRepr(); } - std::string __repr__() const throw(INTERP_KERNEL::Exception) + std::string __repr__() const { std::ostringstream oss; self->reprQuickOverview(oss); @@ -3807,32 +3807,32 @@ namespace MEDCoupling class MEDCouplingField : public MEDCoupling::RefCountObject, public MEDCoupling::TimeLabel { public: - virtual void checkConsistencyLight() const throw(INTERP_KERNEL::Exception); - virtual bool areCompatibleForMerge(const MEDCouplingField *other) const throw(INTERP_KERNEL::Exception); - virtual void copyTinyStringsFrom(const MEDCouplingField *other) throw(INTERP_KERNEL::Exception); - void setMesh(const MEDCoupling::MEDCouplingMesh *mesh) throw(INTERP_KERNEL::Exception); - void setName(const char *name) throw(INTERP_KERNEL::Exception); - std::string getDescription() const throw(INTERP_KERNEL::Exception); - void setDescription(const char *desc) throw(INTERP_KERNEL::Exception); - std::string getName() const throw(INTERP_KERNEL::Exception); - TypeOfField getTypeOfField() const throw(INTERP_KERNEL::Exception); - NatureOfField getNature() const throw(INTERP_KERNEL::Exception); - virtual void setNature(NatureOfField nat) throw(INTERP_KERNEL::Exception); - DataArrayDouble *getLocalizationOfDiscr() const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldDouble *buildMeasureField(bool isAbs) const throw(INTERP_KERNEL::Exception); - int getNumberOfTuplesExpected() const throw(INTERP_KERNEL::Exception); - int getNumberOfMeshPlacesExpected() const throw(INTERP_KERNEL::Exception); + virtual void checkConsistencyLight() const; + virtual bool areCompatibleForMerge(const MEDCouplingField *other) const; + virtual void copyTinyStringsFrom(const MEDCouplingField *other); + void setMesh(const MEDCoupling::MEDCouplingMesh *mesh); + void setName(const char *name); + std::string getDescription() const; + void setDescription(const char *desc); + std::string getName() const; + TypeOfField getTypeOfField() const; + NatureOfField getNature() const; + virtual void setNature(NatureOfField nat); + DataArrayDouble *getLocalizationOfDiscr() const; + MEDCouplingFieldDouble *buildMeasureField(bool isAbs) const; + int getNumberOfTuplesExpected() const; + int getNumberOfMeshPlacesExpected() const; void setGaussLocalizationOnType(INTERP_KERNEL::NormalizedCellType type, const std::vector& refCoo, - const std::vector& gsCoo, const std::vector& 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); - const MEDCouplingGaussLocalization& getGaussLocalization(int locId) const throw(INTERP_KERNEL::Exception); - int getGaussLocalizationIdOfOneType(INTERP_KERNEL::NormalizedCellType type) const throw(INTERP_KERNEL::Exception); + const std::vector& gsCoo, const std::vector& wg); + void clearGaussLocalizations(); + MEDCouplingGaussLocalization& getGaussLocalization(int locId); + int getNbOfGaussLocalization() const; + int getGaussLocalizationIdOfOneCell(int cellId) const; + const MEDCouplingGaussLocalization& getGaussLocalization(int locId) const; + int getGaussLocalizationIdOfOneType(INTERP_KERNEL::NormalizedCellType type) const; void setDiscretization(MEDCouplingFieldDiscretization *newDisc); %extend { - PyObject *getMesh() const throw(INTERP_KERNEL::Exception) + PyObject *getMesh() const { MEDCouplingMesh *ret1=const_cast(self->getMesh()); if(ret1) @@ -3840,7 +3840,7 @@ namespace MEDCoupling return convertMesh(ret1,SWIG_POINTER_OWN | 0 ); } - PyObject *getDiscretization() throw(INTERP_KERNEL::Exception) + PyObject *getDiscretization() { MEDCouplingFieldDiscretization *ret=self->getDiscretization(); if(ret) @@ -3848,13 +3848,13 @@ namespace MEDCoupling return convertFieldDiscretization(ret,SWIG_POINTER_OWN | 0 ); } - PyObject *getGaussLocalizationIdsOfOneType(INTERP_KERNEL::NormalizedCellType type) const throw(INTERP_KERNEL::Exception) + PyObject *getGaussLocalizationIdsOfOneType(INTERP_KERNEL::NormalizedCellType type) const { std::set ret=self->getGaussLocalizationIdsOfOneType(type); return convertIntArrToPyList3(ret); } - PyObject *buildSubMeshData(PyObject *li) const throw(INTERP_KERNEL::Exception) + PyObject *buildSubMeshData(PyObject *li) const { DataArrayInt *ret1=0; MEDCouplingMesh *ret0=0; @@ -3880,7 +3880,7 @@ namespace MEDCoupling return res; } - PyObject *buildSubMeshDataRange(int begin, int end, int step) const throw(INTERP_KERNEL::Exception) + PyObject *buildSubMeshDataRange(int begin, int end, int step) const { DataArrayInt *ret1=0; int bb,ee,ss; @@ -3906,7 +3906,7 @@ namespace MEDCoupling } void setGaussLocalizationOnCells(PyObject *li, const std::vector& refCoo, - const std::vector& gsCoo, const std::vector& wg) throw(INTERP_KERNEL::Exception) + const std::vector& gsCoo, const std::vector& wg) { void *da=0; int res1=SWIG_ConvertPtr(li,&da,SWIGTYPE_p_MEDCoupling__DataArrayInt, 0 | 0 ); @@ -3926,7 +3926,7 @@ namespace MEDCoupling } } - PyObject *getCellIdsHavingGaussLocalization(int locId) const throw(INTERP_KERNEL::Exception) + PyObject *getCellIdsHavingGaussLocalization(int locId) const { std::vector tmp; self->getCellIdsHavingGaussLocalization(locId,tmp); @@ -3936,7 +3936,7 @@ namespace MEDCoupling return SWIG_NewPointerObj(SWIG_as_voidptr(ret),SWIGTYPE_p_MEDCoupling__DataArrayInt, SWIG_POINTER_OWN | 0 ); } - int getNumberOfTuplesExpectedRegardingCode(PyObject *code, PyObject *idsPerType) const throw(INTERP_KERNEL::Exception) + int getNumberOfTuplesExpectedRegardingCode(PyObject *code, PyObject *idsPerType) const { std::vector inp0; convertPyToNewIntArr4(code,1,3,inp0); @@ -3950,49 +3950,49 @@ namespace MEDCoupling class MEDCouplingFieldTemplate : public MEDCoupling::MEDCouplingField { public: - static MEDCouplingFieldTemplate *New(const MEDCouplingFieldDouble& f) throw(INTERP_KERNEL::Exception); - static MEDCouplingFieldTemplate *New(const MEDCouplingFieldFloat& f) throw(INTERP_KERNEL::Exception); - static MEDCouplingFieldTemplate *New(const MEDCouplingFieldInt& f) throw(INTERP_KERNEL::Exception); + static MEDCouplingFieldTemplate *New(const MEDCouplingFieldDouble& f); + static MEDCouplingFieldTemplate *New(const MEDCouplingFieldFloat& f); + static MEDCouplingFieldTemplate *New(const MEDCouplingFieldInt& f); static MEDCouplingFieldTemplate *New(TypeOfField type); - std::string simpleRepr() const throw(INTERP_KERNEL::Exception); - std::string advancedRepr() const throw(INTERP_KERNEL::Exception); - bool isEqual(const MEDCouplingFieldTemplate *other, double meshPrec) const throw(INTERP_KERNEL::Exception); - bool isEqualWithoutConsideringStr(const MEDCouplingFieldTemplate *other, double meshPrec) const throw(INTERP_KERNEL::Exception); + std::string simpleRepr() const; + std::string advancedRepr() const; + bool isEqual(const MEDCouplingFieldTemplate *other, double meshPrec) const; + bool isEqualWithoutConsideringStr(const MEDCouplingFieldTemplate *other, double meshPrec) const; %extend { - MEDCouplingFieldTemplate(const MEDCouplingFieldDouble& f) throw(INTERP_KERNEL::Exception) + MEDCouplingFieldTemplate(const MEDCouplingFieldDouble& f) { return MEDCouplingFieldTemplate::New(f); } - MEDCouplingFieldTemplate(const MEDCouplingFieldFloat& f) throw(INTERP_KERNEL::Exception) + MEDCouplingFieldTemplate(const MEDCouplingFieldFloat& f) { return MEDCouplingFieldTemplate::New(f); } - MEDCouplingFieldTemplate(const MEDCouplingFieldInt& f) throw(INTERP_KERNEL::Exception) + MEDCouplingFieldTemplate(const MEDCouplingFieldInt& f) { return MEDCouplingFieldTemplate::New(f); } - MEDCouplingFieldTemplate(TypeOfField type) throw(INTERP_KERNEL::Exception) + MEDCouplingFieldTemplate(TypeOfField type) { return MEDCouplingFieldTemplate::New(type); } - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->simpleRepr(); } - std::string __repr__() const throw(INTERP_KERNEL::Exception) + std::string __repr__() const { std::ostringstream oss; self->reprQuickOverview(oss); return oss.str(); } - PyObject *isEqualIfNotWhy(const MEDCouplingFieldTemplate *other, double meshPrec) const throw(INTERP_KERNEL::Exception) + PyObject *isEqualIfNotWhy(const MEDCouplingFieldTemplate *other, double meshPrec) const { std::string ret1; bool ret0=self->isEqualIfNotWhy(other,meshPrec,ret1); @@ -4010,7 +4010,7 @@ namespace MEDCoupling class MEDCouplingFieldT : public MEDCoupling::MEDCouplingField { public: - TypeOfTimeDiscretization getTimeDiscretization() const throw(INTERP_KERNEL::Exception); + TypeOfTimeDiscretization getTimeDiscretization() const; protected: MEDCouplingFieldT(); ~MEDCouplingFieldT(); @@ -4028,102 +4028,102 @@ namespace MEDCoupling public: static MEDCouplingFieldDouble *New(TypeOfField type, TypeOfTimeDiscretization td=ONE_TIME); static MEDCouplingFieldDouble *New(const MEDCouplingFieldTemplate& ft, TypeOfTimeDiscretization td=ONE_TIME); - bool isEqual(const MEDCouplingFieldDouble *other, double meshPrec, double valsPrec) const throw(INTERP_KERNEL::Exception); - bool isEqualWithoutConsideringStr(const MEDCouplingFieldDouble *other, double meshPrec, double valsPrec) const throw(INTERP_KERNEL::Exception); + bool isEqual(const MEDCouplingFieldDouble *other, double meshPrec, double valsPrec) const; + bool isEqualWithoutConsideringStr(const MEDCouplingFieldDouble *other, double meshPrec, double valsPrec) const; void setTimeUnit(const std::string& unit); std::string getTimeUnit() const; - void synchronizeTimeWithSupport() throw(INTERP_KERNEL::Exception); - void copyTinyAttrFrom(const MEDCouplingFieldDouble *other) throw(INTERP_KERNEL::Exception); - void copyAllTinyAttrFrom(const MEDCouplingFieldDouble *other) throw(INTERP_KERNEL::Exception); - std::string simpleRepr() const throw(INTERP_KERNEL::Exception); - std::string advancedRepr() const throw(INTERP_KERNEL::Exception); - std::string writeVTK(const std::string& fileName, bool isBinary=true) const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldInt *convertToIntField() const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldFloat *convertToFloatField() const throw(INTERP_KERNEL::Exception); + void synchronizeTimeWithSupport(); + void copyTinyAttrFrom(const MEDCouplingFieldDouble *other); + void copyAllTinyAttrFrom(const MEDCouplingFieldDouble *other); + std::string simpleRepr() const; + std::string advancedRepr() const; + std::string writeVTK(const std::string& fileName, bool isBinary=true) const; + MEDCouplingFieldInt *convertToIntField() const; + MEDCouplingFieldFloat *convertToFloatField() const; MEDCouplingFieldDouble *clone(bool recDeepCpy) const; MEDCouplingFieldDouble *cloneWithMesh(bool recDeepCpy) const; MEDCouplingFieldDouble *deepCopy() const; - MEDCouplingFieldDouble *buildNewTimeReprFromThis(TypeOfTimeDiscretization td, bool deepCopy) const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldDouble *nodeToCellDiscretization() const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldDouble *cellToNodeDiscretization() const throw(INTERP_KERNEL::Exception); - double getIJ(int tupleId, int compoId) const throw(INTERP_KERNEL::Exception); - double getIJK(int cellId, int nodeIdInCell, int compoId) const throw(INTERP_KERNEL::Exception); - void synchronizeTimeWithMesh() throw(INTERP_KERNEL::Exception); - void setArray(DataArrayDouble *array) throw(INTERP_KERNEL::Exception); - void setEndArray(DataArrayDouble *array) throw(INTERP_KERNEL::Exception); - void setTime(double val, int iteration, int order) throw(INTERP_KERNEL::Exception); - void setStartTime(double val, int iteration, int order) throw(INTERP_KERNEL::Exception); - void setEndTime(double val, int iteration, int order) throw(INTERP_KERNEL::Exception); - void applyLin(double a, double b, int compoId) throw(INTERP_KERNEL::Exception); - void applyLin(double a, double b) throw(INTERP_KERNEL::Exception); - int getNumberOfComponents() const throw(INTERP_KERNEL::Exception); - int getNumberOfTuples() const throw(INTERP_KERNEL::Exception); - int getNumberOfValues() const throw(INTERP_KERNEL::Exception); - void setTimeTolerance(double val) throw(INTERP_KERNEL::Exception); - double getTimeTolerance() const throw(INTERP_KERNEL::Exception); - void setIteration(int it) throw(INTERP_KERNEL::Exception); - void setEndIteration(int it) throw(INTERP_KERNEL::Exception); - void setOrder(int order) throw(INTERP_KERNEL::Exception); - void setEndOrder(int order) throw(INTERP_KERNEL::Exception); - void setTimeValue(double val) throw(INTERP_KERNEL::Exception); - void setEndTimeValue(double val) throw(INTERP_KERNEL::Exception); - void changeUnderlyingMesh(const MEDCouplingMesh *other, int levOfCheck, double precOnMesh, double eps=1e-15) throw(INTERP_KERNEL::Exception); - void substractInPlaceDM(const MEDCouplingFieldDouble *f, int levOfCheck, double precOnMesh, double eps=1e-15) throw(INTERP_KERNEL::Exception); - bool mergeNodes(double eps, double epsOnVals=1e-15) throw(INTERP_KERNEL::Exception); - bool mergeNodesCenter(double eps, double epsOnVals=1e-15) throw(INTERP_KERNEL::Exception); - bool zipCoords(double epsOnVals=1e-15) throw(INTERP_KERNEL::Exception); - bool zipConnectivity(int compType,double epsOnVals=1e-15) throw(INTERP_KERNEL::Exception); - bool simplexize(int policy) throw(INTERP_KERNEL::Exception); - MEDCouplingFieldDouble *doublyContractedProduct() const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldDouble *determinant() const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldDouble *eigenValues() const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldDouble *eigenVectors() const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldDouble *inverse() const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldDouble *trace() const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldDouble *deviator() const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldDouble *magnitude() const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldDouble *maxPerTuple() const throw(INTERP_KERNEL::Exception); - void changeNbOfComponents(int newNbOfComp, double dftValue=0.) throw(INTERP_KERNEL::Exception); - void sortPerTuple(bool asc) throw(INTERP_KERNEL::Exception); - MEDCouplingFieldDouble &operator=(double value) throw(INTERP_KERNEL::Exception); - void fillFromAnalytic(int nbOfComp, const std::string& func) throw(INTERP_KERNEL::Exception); - void fillFromAnalyticCompo(int nbOfComp, const std::string& func) throw(INTERP_KERNEL::Exception); - void fillFromAnalyticNamedCompo(int nbOfComp, const std::vector& varsOrder, const std::string& func) throw(INTERP_KERNEL::Exception); - void applyFunc(int nbOfComp, const std::string& func) throw(INTERP_KERNEL::Exception); - void applyFuncCompo(int nbOfComp, const std::string& func) throw(INTERP_KERNEL::Exception); - void applyFuncNamedCompo(int nbOfComp, const std::vector& varsOrder, const std::string& func) throw(INTERP_KERNEL::Exception); - void applyFunc(int nbOfComp, double val) throw(INTERP_KERNEL::Exception); - void applyFunc(const std::string& func) throw(INTERP_KERNEL::Exception); - void applyFuncFast32(const std::string& func) throw(INTERP_KERNEL::Exception); - void applyFuncFast64(const std::string& func) throw(INTERP_KERNEL::Exception); - double accumulate(int compId) const throw(INTERP_KERNEL::Exception); - double getMaxValue() const throw(INTERP_KERNEL::Exception); - double getMinValue() const throw(INTERP_KERNEL::Exception); - double getAverageValue() const throw(INTERP_KERNEL::Exception); - double norm2() const throw(INTERP_KERNEL::Exception); + MEDCouplingFieldDouble *buildNewTimeReprFromThis(TypeOfTimeDiscretization td, bool deepCopy) const; + MEDCouplingFieldDouble *nodeToCellDiscretization() const; + MEDCouplingFieldDouble *cellToNodeDiscretization() const; + double getIJ(int tupleId, int compoId) const; + double getIJK(int cellId, int nodeIdInCell, int compoId) const; + void synchronizeTimeWithMesh(); + void setArray(DataArrayDouble *array); + void setEndArray(DataArrayDouble *array); + void setTime(double val, int iteration, int order); + void setStartTime(double val, int iteration, int order); + void setEndTime(double val, int iteration, int order); + void applyLin(double a, double b, int compoId); + void applyLin(double a, double b); + int getNumberOfComponents() const; + int getNumberOfTuples() const; + int getNumberOfValues() const; + void setTimeTolerance(double val); + double getTimeTolerance() const; + void setIteration(int it); + void setEndIteration(int it); + void setOrder(int order); + void setEndOrder(int order); + void setTimeValue(double val); + void setEndTimeValue(double val); + void changeUnderlyingMesh(const MEDCouplingMesh *other, int levOfCheck, double precOnMesh, double eps=1e-15); + void substractInPlaceDM(const MEDCouplingFieldDouble *f, int levOfCheck, double precOnMesh, double eps=1e-15); + bool mergeNodes(double eps, double epsOnVals=1e-15); + bool mergeNodesCenter(double eps, double epsOnVals=1e-15); + bool zipCoords(double epsOnVals=1e-15); + bool zipConnectivity(int compType,double epsOnVals=1e-15); + bool simplexize(int policy); + MEDCouplingFieldDouble *doublyContractedProduct() const; + MEDCouplingFieldDouble *determinant() const; + MEDCouplingFieldDouble *eigenValues() const; + MEDCouplingFieldDouble *eigenVectors() const; + MEDCouplingFieldDouble *inverse() const; + MEDCouplingFieldDouble *trace() const; + MEDCouplingFieldDouble *deviator() const; + MEDCouplingFieldDouble *magnitude() const; + MEDCouplingFieldDouble *maxPerTuple() const; + void changeNbOfComponents(int newNbOfComp, double dftValue=0.); + void sortPerTuple(bool asc); + MEDCouplingFieldDouble &operator=(double value); + void fillFromAnalytic(int nbOfComp, const std::string& func); + void fillFromAnalyticCompo(int nbOfComp, const std::string& func); + void fillFromAnalyticNamedCompo(int nbOfComp, const std::vector& varsOrder, const std::string& func); + void applyFunc(int nbOfComp, const std::string& func); + void applyFuncCompo(int nbOfComp, const std::string& func); + void applyFuncNamedCompo(int nbOfComp, const std::vector& varsOrder, const std::string& func); + void applyFunc(int nbOfComp, double val); + void applyFunc(const std::string& func); + void applyFuncFast32(const std::string& func); + void applyFuncFast64(const std::string& func); + double accumulate(int compId) const; + double getMaxValue() const; + double getMinValue() const; + double getAverageValue() const; + double norm2() const; //do not put a default value to isWAbs because confusion in python with overloaded getWeightedAverageValue method - double getWeightedAverageValue(int compId, bool isWAbs) const throw(INTERP_KERNEL::Exception); - double integral(int compId, bool isWAbs) const throw(INTERP_KERNEL::Exception); - double normL1(int compId) const throw(INTERP_KERNEL::Exception); - double normL2(int compId) const throw(INTERP_KERNEL::Exception); - double normMax(int compId) const throw(INTERP_KERNEL::Exception); - DataArrayInt *findIdsInRange(double vmin, double vmax) const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldDouble *buildSubPartRange(int begin, int end, int step) const throw(INTERP_KERNEL::Exception); - static MEDCouplingFieldDouble *MergeFields(const MEDCouplingFieldDouble *f1, const MEDCouplingFieldDouble *f2) throw(INTERP_KERNEL::Exception); - static MEDCouplingFieldDouble *MeldFields(const MEDCouplingFieldDouble *f1, const MEDCouplingFieldDouble *f2) throw(INTERP_KERNEL::Exception); - static MEDCouplingFieldDouble *DotFields(const MEDCouplingFieldDouble *f1, const MEDCouplingFieldDouble *f2) throw(INTERP_KERNEL::Exception); - MEDCouplingFieldDouble *dot(const MEDCouplingFieldDouble& other) const throw(INTERP_KERNEL::Exception); - static MEDCouplingFieldDouble *CrossProductFields(const MEDCouplingFieldDouble *f1, const MEDCouplingFieldDouble *f2) throw(INTERP_KERNEL::Exception); - MEDCouplingFieldDouble *crossProduct(const MEDCouplingFieldDouble& other) const throw(INTERP_KERNEL::Exception); - static MEDCouplingFieldDouble *MaxFields(const MEDCouplingFieldDouble *f1, const MEDCouplingFieldDouble *f2) throw(INTERP_KERNEL::Exception); - MEDCouplingFieldDouble *max(const MEDCouplingFieldDouble& other) const throw(INTERP_KERNEL::Exception); - static MEDCouplingFieldDouble *MinFields(const MEDCouplingFieldDouble *f1, const MEDCouplingFieldDouble *f2) throw(INTERP_KERNEL::Exception); - static MEDCouplingFieldDouble *AddFields(const MEDCouplingFieldDouble *f1, const MEDCouplingFieldDouble *f2) throw(INTERP_KERNEL::Exception); - static MEDCouplingFieldDouble *SubstractFields(const MEDCouplingFieldDouble *f1, const MEDCouplingFieldDouble *f2) throw(INTERP_KERNEL::Exception); - static MEDCouplingFieldDouble *MultiplyFields(const MEDCouplingFieldDouble *f1, const MEDCouplingFieldDouble *f2) throw(INTERP_KERNEL::Exception); - static MEDCouplingFieldDouble *DivideFields(const MEDCouplingFieldDouble *f1, const MEDCouplingFieldDouble *f2) throw(INTERP_KERNEL::Exception); - MEDCouplingFieldDouble *min(const MEDCouplingFieldDouble& other) const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldDouble *negate() const throw(INTERP_KERNEL::Exception); + double getWeightedAverageValue(int compId, bool isWAbs) const; + double integral(int compId, bool isWAbs) const; + double normL1(int compId) const; + double normL2(int compId) const; + double normMax(int compId) const; + DataArrayInt *findIdsInRange(double vmin, double vmax) const; + MEDCouplingFieldDouble *buildSubPartRange(int begin, int end, int step) const; + static MEDCouplingFieldDouble *MergeFields(const MEDCouplingFieldDouble *f1, const MEDCouplingFieldDouble *f2); + static MEDCouplingFieldDouble *MeldFields(const MEDCouplingFieldDouble *f1, const MEDCouplingFieldDouble *f2); + static MEDCouplingFieldDouble *DotFields(const MEDCouplingFieldDouble *f1, const MEDCouplingFieldDouble *f2); + MEDCouplingFieldDouble *dot(const MEDCouplingFieldDouble& other) const; + static MEDCouplingFieldDouble *CrossProductFields(const MEDCouplingFieldDouble *f1, const MEDCouplingFieldDouble *f2); + MEDCouplingFieldDouble *crossProduct(const MEDCouplingFieldDouble& other) const; + static MEDCouplingFieldDouble *MaxFields(const MEDCouplingFieldDouble *f1, const MEDCouplingFieldDouble *f2); + MEDCouplingFieldDouble *max(const MEDCouplingFieldDouble& other) const; + static MEDCouplingFieldDouble *MinFields(const MEDCouplingFieldDouble *f1, const MEDCouplingFieldDouble *f2); + static MEDCouplingFieldDouble *AddFields(const MEDCouplingFieldDouble *f1, const MEDCouplingFieldDouble *f2); + static MEDCouplingFieldDouble *SubstractFields(const MEDCouplingFieldDouble *f1, const MEDCouplingFieldDouble *f2); + static MEDCouplingFieldDouble *MultiplyFields(const MEDCouplingFieldDouble *f1, const MEDCouplingFieldDouble *f2); + static MEDCouplingFieldDouble *DivideFields(const MEDCouplingFieldDouble *f1, const MEDCouplingFieldDouble *f2); + MEDCouplingFieldDouble *min(const MEDCouplingFieldDouble& other) const; + MEDCouplingFieldDouble *negate() const; %extend { MEDCouplingFieldDouble(TypeOfField type, TypeOfTimeDiscretization td=ONE_TIME) { @@ -4135,19 +4135,19 @@ namespace MEDCoupling return MEDCouplingFieldDouble::New(ft,td); } - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->simpleRepr(); } - std::string __repr__() const throw(INTERP_KERNEL::Exception) + std::string __repr__() const { std::ostringstream oss; self->reprQuickOverview(oss); return oss.str(); } - PyObject *isEqualIfNotWhy(const MEDCouplingFieldDouble *other, double meshPrec, double valsPrec) const throw(INTERP_KERNEL::Exception) + PyObject *isEqualIfNotWhy(const MEDCouplingFieldDouble *other, double meshPrec, double valsPrec) const { std::string ret1; bool ret0=self->isEqualIfNotWhy(other,meshPrec,valsPrec,ret1); @@ -4159,13 +4159,13 @@ namespace MEDCoupling return ret; } - MEDCouplingFieldDouble *voronoize(double eps) const throw(INTERP_KERNEL::Exception) + MEDCouplingFieldDouble *voronoize(double eps) const { MCAuto ret(self->voronoize(eps)); return ret.retn(); } - MEDCouplingFieldDouble *convertQuadraticCellsToLinear() const throw(INTERP_KERNEL::Exception) + MEDCouplingFieldDouble *convertQuadraticCellsToLinear() const { MCAuto ret(self->convertQuadraticCellsToLinear()); return ret.retn(); @@ -4184,7 +4184,7 @@ namespace MEDCoupling return self->computeVectorFieldCyl(centerPtr,vectorPtr); } - DataArrayDouble *getArray() throw(INTERP_KERNEL::Exception) + DataArrayDouble *getArray() { DataArrayDouble *ret=self->getArray(); if(ret) @@ -4192,7 +4192,7 @@ namespace MEDCoupling return ret; } - PyObject *getArrays() const throw(INTERP_KERNEL::Exception) + PyObject *getArrays() const { std::vector arrs=self->getArrays(); for(std::vector::iterator it=arrs.begin();it!=arrs.end();it++) @@ -4210,7 +4210,7 @@ namespace MEDCoupling return ret; } - void setArrays(PyObject *ls) throw(INTERP_KERNEL::Exception) + void setArrays(PyObject *ls) { std::vector tmp; convertFromPyObjVectorOfObj(ls,SWIGTYPE_p_MEDCoupling__DataArrayDouble,"DataArrayDouble",tmp); @@ -4221,7 +4221,7 @@ namespace MEDCoupling self->setArrays(arrs); } - DataArrayDouble *getEndArray() throw(INTERP_KERNEL::Exception) + DataArrayDouble *getEndArray() { DataArrayDouble *ret=self->getEndArray(); if(ret) @@ -4229,7 +4229,7 @@ namespace MEDCoupling return ret; } - PyObject *getValueOn(PyObject *sl) const throw(INTERP_KERNEL::Exception) + PyObject *getValueOn(PyObject *sl) const { double val; DataArrayDouble *a; @@ -4249,7 +4249,7 @@ namespace MEDCoupling return convertDblArrToPyList(res,sz); } - PyObject *getValueOnPos(int i, int j, int k) const throw(INTERP_KERNEL::Exception) + PyObject *getValueOnPos(int i, int j, int k) const { int sz=self->getNumberOfComponents(); INTERP_KERNEL::AutoPtr res=new double[sz]; @@ -4257,7 +4257,7 @@ namespace MEDCoupling return convertDblArrToPyList(res,sz); } - DataArrayDouble *getValueOnMulti(PyObject *locs) const throw(INTERP_KERNEL::Exception) + DataArrayDouble *getValueOnMulti(PyObject *locs) const { const MEDCouplingMesh *mesh(self->getMesh()); if(!mesh) @@ -4270,7 +4270,7 @@ namespace MEDCoupling return self->getValueOnMulti(inp,nbPts); } - PyObject *getValueOn(PyObject *sl, double time) const throw(INTERP_KERNEL::Exception) + PyObject *getValueOn(PyObject *sl, double time) const { double val; DataArrayDouble *a; @@ -4291,7 +4291,7 @@ namespace MEDCoupling return convertDblArrToPyList(res,sz); } - void setValues(PyObject *li, PyObject *nbOfTuples=0, PyObject *nbOfComp=0) throw(INTERP_KERNEL::Exception) + void setValues(PyObject *li, PyObject *nbOfTuples=0, PyObject *nbOfComp=0) { if(self->getArray()!=0) MEDCoupling_DataArrayDouble_setValues__SWIG_0(self->getArray(),li,nbOfTuples,nbOfComp); @@ -4303,7 +4303,7 @@ namespace MEDCoupling } } - PyObject *getTime() throw(INTERP_KERNEL::Exception) + PyObject *getTime() { int tmp1,tmp2; double tmp0=self->getTime(tmp1,tmp2); @@ -4314,7 +4314,7 @@ namespace MEDCoupling return res; } - PyObject *getStartTime() throw(INTERP_KERNEL::Exception) + PyObject *getStartTime() { int tmp1,tmp2; double tmp0=self->getStartTime(tmp1,tmp2); @@ -4325,7 +4325,7 @@ namespace MEDCoupling return res; } - PyObject *getEndTime() throw(INTERP_KERNEL::Exception) + PyObject *getEndTime() { int tmp1,tmp2; double tmp0=self->getEndTime(tmp1,tmp2); @@ -4335,49 +4335,49 @@ namespace MEDCoupling PyList_SetItem(res,2,SWIG_From_int(tmp2)); return res; } - PyObject *accumulate() const throw(INTERP_KERNEL::Exception) + PyObject *accumulate() const { int sz=self->getNumberOfComponents(); INTERP_KERNEL::AutoPtr tmp=new double[sz]; self->accumulate(tmp); return convertDblArrToPyList(tmp,sz); } - PyObject *integral(bool isWAbs) const throw(INTERP_KERNEL::Exception) + PyObject *integral(bool isWAbs) const { int sz=self->getNumberOfComponents(); INTERP_KERNEL::AutoPtr tmp=new double[sz]; self->integral(isWAbs,tmp); return convertDblArrToPyList(tmp,sz); } - PyObject *getWeightedAverageValue(bool isWAbs=true) const throw(INTERP_KERNEL::Exception) + PyObject *getWeightedAverageValue(bool isWAbs=true) const { int sz=self->getNumberOfComponents(); INTERP_KERNEL::AutoPtr tmp=new double[sz]; self->getWeightedAverageValue(tmp,isWAbs); return convertDblArrToPyList(tmp,sz); } - PyObject *normL1() const throw(INTERP_KERNEL::Exception) + PyObject *normL1() const { int sz=self->getNumberOfComponents(); INTERP_KERNEL::AutoPtr tmp=new double[sz]; self->normL1(tmp); return convertDblArrToPyList(tmp,sz); } - PyObject *normL2() const throw(INTERP_KERNEL::Exception) + PyObject *normL2() const { int sz=self->getNumberOfComponents(); INTERP_KERNEL::AutoPtr tmp=new double[sz]; self->normL2(tmp); return convertDblArrToPyList(tmp,sz); } - PyObject *normMax() const throw(INTERP_KERNEL::Exception) + PyObject *normMax() const { int sz=self->getNumberOfComponents(); INTERP_KERNEL::AutoPtr tmp=new double[sz]; self->normMax(tmp); return convertDblArrToPyList(tmp,sz); } - void renumberCells(PyObject *li, bool check=true) throw(INTERP_KERNEL::Exception) + void renumberCells(PyObject *li, bool check=true) { int szArr,sw,iTypppArr; std::vector stdvecTyyppArr; @@ -4385,7 +4385,7 @@ namespace MEDCoupling self->renumberCells(tmp,check); } - void renumberCellsWithoutMesh(PyObject *li, bool check=true) throw(INTERP_KERNEL::Exception) + void renumberCellsWithoutMesh(PyObject *li, bool check=true) { int szArr,sw,iTypppArr; std::vector stdvecTyyppArr; @@ -4393,7 +4393,7 @@ namespace MEDCoupling self->renumberCellsWithoutMesh(tmp,check); } - void renumberNodes(PyObject *li, double eps=1e-15) throw(INTERP_KERNEL::Exception) + void renumberNodes(PyObject *li, double eps=1e-15) { int szArr,sw,iTypppArr; std::vector stdvecTyyppArr; @@ -4401,7 +4401,7 @@ namespace MEDCoupling self->renumberNodes(tmp,eps); } - void renumberNodesWithoutMesh(PyObject *li, int newNbOfNodes, double eps=1e-15) throw(INTERP_KERNEL::Exception) + void renumberNodesWithoutMesh(PyObject *li, int newNbOfNodes, double eps=1e-15) { int szArr,sw,iTypppArr; std::vector stdvecTyyppArr; @@ -4409,17 +4409,17 @@ namespace MEDCoupling self->renumberNodesWithoutMesh(tmp,newNbOfNodes,eps); } - MEDCouplingFieldDouble *buildSubPart(PyObject *li) const throw(INTERP_KERNEL::Exception) + MEDCouplingFieldDouble *buildSubPart(PyObject *li) const { return fieldT_buildSubPart(self,li); } - MEDCouplingFieldDouble *__getitem__(PyObject *li) const throw(INTERP_KERNEL::Exception) + MEDCouplingFieldDouble *__getitem__(PyObject *li) const { return fieldT__getitem__(self,li); } - PyObject *getMaxValue2() const throw(INTERP_KERNEL::Exception) + PyObject *getMaxValue2() const { DataArrayInt *tmp; double r1=self->getMaxValue2(tmp); @@ -4429,7 +4429,7 @@ namespace MEDCoupling return ret; } - PyObject *getMinValue2() const throw(INTERP_KERNEL::Exception) + PyObject *getMinValue2() const { DataArrayInt *tmp; double r1=self->getMinValue2(tmp); @@ -4439,21 +4439,21 @@ namespace MEDCoupling return ret; } - MEDCouplingFieldDouble *keepSelectedComponents(PyObject *li) const throw(INTERP_KERNEL::Exception) + MEDCouplingFieldDouble *keepSelectedComponents(PyObject *li) const { std::vector tmp; convertPyToNewIntArr3(li,tmp); return self->keepSelectedComponents(tmp); } - void setSelectedComponents(const MEDCouplingFieldDouble *f, PyObject *li) throw(INTERP_KERNEL::Exception) + void setSelectedComponents(const MEDCouplingFieldDouble *f, PyObject *li) { std::vector tmp; convertPyToNewIntArr3(li,tmp); self->setSelectedComponents(f,tmp); } - MEDCouplingFieldDouble *extractSlice3D(PyObject *origin, PyObject *vec, double eps) const throw(INTERP_KERNEL::Exception) + MEDCouplingFieldDouble *extractSlice3D(PyObject *origin, PyObject *vec, double eps) const { double val,val2; DataArrayDouble *a,*a2; @@ -4469,17 +4469,17 @@ namespace MEDCoupling return self->extractSlice3D(orig,vect,eps); } - MEDCouplingFieldDouble *__add__(PyObject *obj) throw(INTERP_KERNEL::Exception) + MEDCouplingFieldDouble *__add__(PyObject *obj) { return MEDCoupling_MEDCouplingFieldDouble___add__Impl(self,obj); } - MEDCouplingFieldDouble *__radd__(PyObject *obj) throw(INTERP_KERNEL::Exception) + MEDCouplingFieldDouble *__radd__(PyObject *obj) { return MEDCoupling_MEDCouplingFieldDouble___radd__Impl(self,obj); } - MEDCouplingFieldDouble *__sub__(PyObject *obj) throw(INTERP_KERNEL::Exception) + MEDCouplingFieldDouble *__sub__(PyObject *obj) { const char msg[]="Unexpected situation in MEDCouplingFieldDouble.__sub__ ! Expecting a not null MEDCouplingFieldDouble or DataArrayDouble or DataArrayDoubleTuple instance, or a list of double, or a double."; const char msg2[]="in MEDCouplingFieldDouble.__sub__ : self field has no Array of values set !"; @@ -4546,22 +4546,22 @@ namespace MEDCoupling } } - MEDCouplingFieldDouble *__rsub__(PyObject *obj) throw(INTERP_KERNEL::Exception) + MEDCouplingFieldDouble *__rsub__(PyObject *obj) { return MEDCoupling_MEDCouplingFieldDouble___rsub__Impl(self,obj); } - MEDCouplingFieldDouble *__mul__(PyObject *obj) throw(INTERP_KERNEL::Exception) + MEDCouplingFieldDouble *__mul__(PyObject *obj) { return MEDCoupling_MEDCouplingFieldDouble___mul__Impl(self,obj); } - MEDCouplingFieldDouble *__rmul__(PyObject *obj) throw(INTERP_KERNEL::Exception) + MEDCouplingFieldDouble *__rmul__(PyObject *obj) { return MEDCoupling_MEDCouplingFieldDouble___rmul__Impl(self,obj); } - MEDCouplingFieldDouble *__div__(PyObject *obj) throw(INTERP_KERNEL::Exception) + MEDCouplingFieldDouble *__div__(PyObject *obj) { const char msg[]="Unexpected situation in MEDCouplingFieldDouble.__div__ ! Expecting a not null MEDCouplingFieldDouble or DataArrayDouble or DataArrayDoubleTuple instance, or a list of double, or a double."; const char msg2[]="in MEDCouplingFieldDouble.__div__ : self field has no Array of values set !"; @@ -4630,12 +4630,12 @@ namespace MEDCoupling } } - MEDCouplingFieldDouble *__rdiv__(PyObject *obj) throw(INTERP_KERNEL::Exception) + MEDCouplingFieldDouble *__rdiv__(PyObject *obj) { return MEDCoupling_MEDCouplingFieldDouble___rdiv__Impl(self,obj); } - MEDCouplingFieldDouble *__pow__(PyObject *obj) throw(INTERP_KERNEL::Exception) + MEDCouplingFieldDouble *__pow__(PyObject *obj) { const char msg[]="Unexpected situation in MEDCouplingFieldDouble.__pow__ ! Expecting a not null MEDCouplingFieldDouble or DataArrayDouble or DataArrayDoubleTuple instance, or a list of double, or a double."; const char msg2[]="in MEDCouplingFieldDouble.__pow__ : self field has no Array of values set !"; @@ -4702,12 +4702,12 @@ namespace MEDCoupling } } - MEDCouplingFieldDouble *__neg__() const throw(INTERP_KERNEL::Exception) + MEDCouplingFieldDouble *__neg__() const { return self->negate(); } - PyObject *___iadd___(PyObject *trueSelf, PyObject *obj) throw(INTERP_KERNEL::Exception) + PyObject *___iadd___(PyObject *trueSelf, PyObject *obj) { const char msg[]="Unexpected situation in MEDCouplingFieldDouble.__iadd__ ! Expecting a not null MEDCouplingFieldDouble or DataArrayDouble or DataArrayDoubleTuple instance, or a list of double, or a double."; const char msg2[]="in MEDCouplingFieldDouble.__iadd__ : self field has no Array of values set !"; @@ -4773,7 +4773,7 @@ namespace MEDCoupling } } - PyObject *___isub___(PyObject *trueSelf, PyObject *obj) throw(INTERP_KERNEL::Exception) + PyObject *___isub___(PyObject *trueSelf, PyObject *obj) { const char msg[]="Unexpected situation in MEDCouplingFieldDouble.__isub__ ! Expecting a not null MEDCouplingFieldDouble or DataArrayDouble or DataArrayDoubleTuple instance, or a list of double, or a double."; const char msg2[]="in MEDCouplingFieldDouble.__isub__ : self field has no Array of values set !"; @@ -4839,7 +4839,7 @@ namespace MEDCoupling } } - PyObject *___imul___(PyObject *trueSelf, PyObject *obj) throw(INTERP_KERNEL::Exception) + PyObject *___imul___(PyObject *trueSelf, PyObject *obj) { const char msg[]="Unexpected situation in MEDCouplingFieldDouble.__imul__ ! Expecting a not null MEDCouplingFieldDouble or DataArrayDouble or DataArrayDoubleTuple instance, or a list of double, or a double."; const char msg2[]="in MEDCouplingFieldDouble.__imul__ : self field has no Array of values set !"; @@ -4905,7 +4905,7 @@ namespace MEDCoupling } } - PyObject *___idiv___(PyObject *trueSelf, PyObject *obj) throw(INTERP_KERNEL::Exception) + PyObject *___idiv___(PyObject *trueSelf, PyObject *obj) { const char msg[]="Unexpected situation in MEDCouplingFieldDouble.__idiv__ ! Expecting a not null MEDCouplingFieldDouble or DataArrayDouble or DataArrayDoubleTuple instance, or a list of double, or a double."; const char msg2[]="in MEDCouplingFieldDouble.__idiv__ : self field has no Array of values set !"; @@ -4973,7 +4973,7 @@ namespace MEDCoupling } } - PyObject *___ipow___(PyObject *trueSelf, PyObject *obj) throw(INTERP_KERNEL::Exception) + PyObject *___ipow___(PyObject *trueSelf, PyObject *obj) { const char msg[]="Unexpected situation in MEDCouplingFieldDouble.__ipow__ ! Expecting a not null MEDCouplingFieldDouble or DataArrayDouble or DataArrayDoubleTuple instance, or a list of double, or a double."; const char msg2[]="in MEDCouplingFieldDouble.__ipow__ : self field has no Array of values set !"; @@ -5039,36 +5039,36 @@ namespace MEDCoupling } } - static MEDCouplingFieldDouble *MergeFields(PyObject *li) throw(INTERP_KERNEL::Exception) + static MEDCouplingFieldDouble *MergeFields(PyObject *li) { std::vector tmp; convertFromPyObjVectorOfObj(li,SWIGTYPE_p_MEDCoupling__MEDCouplingFieldDouble,"MEDCouplingFieldDouble",tmp); return MEDCouplingFieldDouble::MergeFields(tmp); } - static std::string WriteVTK(const char *fileName, PyObject *li, bool isBinary=true) throw(INTERP_KERNEL::Exception) + static std::string WriteVTK(const char *fileName, PyObject *li, bool isBinary=true) { std::vector tmp; convertFromPyObjVectorOfObj(li,SWIGTYPE_p_MEDCoupling__MEDCouplingFieldDouble,"MEDCouplingFieldDouble",tmp); return MEDCouplingFieldDouble::WriteVTK(fileName,tmp,isBinary); } - PyObject *getTinySerializationInformation() const throw(INTERP_KERNEL::Exception) + PyObject *getTinySerializationInformation() const { return field_getTinySerializationInformation(self); } - PyObject *serialize() const throw(INTERP_KERNEL::Exception) + PyObject *serialize() const { return field_serialize(self); } - PyObject *__getstate__() const throw(INTERP_KERNEL::Exception) + PyObject *__getstate__() const { return field__getstate__(self,MEDCoupling_MEDCouplingFieldDouble_getTinySerializationInformation,MEDCoupling_MEDCouplingFieldDouble_serialize); } - void __setstate__(PyObject *inp) throw(INTERP_KERNEL::Exception) + void __setstate__(PyObject *inp) { field__setstate__(self,inp); } @@ -5080,18 +5080,18 @@ namespace MEDCoupling public: int getNumberOfFields() const; MEDCouplingMultiFields *deepCopy() const; - virtual std::string simpleRepr() const throw(INTERP_KERNEL::Exception); - virtual std::string advancedRepr() const throw(INTERP_KERNEL::Exception); + virtual std::string simpleRepr() const; + virtual std::string advancedRepr() const; virtual bool isEqual(const MEDCouplingMultiFields *other, double meshPrec, double valsPrec) const; virtual bool isEqualWithoutConsideringStr(const MEDCouplingMultiFields *other, double meshPrec, double valsPrec) const; - virtual void checkConsistencyLight() const throw(INTERP_KERNEL::Exception); + virtual void checkConsistencyLight() const; %extend { - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->simpleRepr(); } - static MEDCouplingMultiFields *New(PyObject *li) throw(INTERP_KERNEL::Exception) + static MEDCouplingMultiFields *New(PyObject *li) { std::vector tmp; convertFromPyObjVectorOfObj(li,SWIGTYPE_p_MEDCoupling__MEDCouplingFieldDouble,"MEDCouplingFieldDouble",tmp); @@ -5101,7 +5101,7 @@ namespace MEDCoupling fs[i]=const_cast(tmp[i]); return MEDCouplingMultiFields::New(fs); } - MEDCouplingMultiFields(PyObject *li) throw(INTERP_KERNEL::Exception) + MEDCouplingMultiFields(PyObject *li) { std::vector tmp; convertFromPyObjVectorOfObj(li,SWIGTYPE_p_MEDCoupling__MEDCouplingFieldDouble,"MEDCouplingFieldDouble",tmp); @@ -5130,7 +5130,7 @@ namespace MEDCoupling } return res; } - PyObject *getFieldAtPos(int id) const throw(INTERP_KERNEL::Exception) + PyObject *getFieldAtPos(int id) const { const MEDCouplingFieldDouble *ret=self->getFieldAtPos(id); if(ret) @@ -5141,7 +5141,7 @@ namespace MEDCoupling else return SWIG_NewPointerObj(SWIG_as_voidptr(0),SWIGTYPE_p_MEDCoupling__MEDCouplingFieldDouble, 0 ); } - PyObject *getMeshes() const throw(INTERP_KERNEL::Exception) + PyObject *getMeshes() const { std::vector ms=self->getMeshes(); int sz=ms.size(); @@ -5160,7 +5160,7 @@ namespace MEDCoupling } return res; } - PyObject *getDifferentMeshes() const throw(INTERP_KERNEL::Exception) + PyObject *getDifferentMeshes() const { std::vector refs; std::vector ms=self->getDifferentMeshes(refs); @@ -5184,7 +5184,7 @@ namespace MEDCoupling PyTuple_SetItem(ret,1,convertIntArrToPyList2(refs)); return ret; } - PyObject *getArrays() const throw(INTERP_KERNEL::Exception) + PyObject *getArrays() const { std::vector ms=self->getArrays(); int sz=ms.size(); @@ -5203,7 +5203,7 @@ namespace MEDCoupling } return res; } - PyObject *getDifferentArrays() const throw(INTERP_KERNEL::Exception) + PyObject *getDifferentArrays() const { std::vector< std::vector > refs; std::vector ms=self->getDifferentArrays(refs); @@ -5237,17 +5237,17 @@ namespace MEDCoupling public: static MEDCouplingFieldInt *New(TypeOfField type, TypeOfTimeDiscretization td=ONE_TIME); static MEDCouplingFieldInt *New(const MEDCouplingFieldTemplate& ft, TypeOfTimeDiscretization td=ONE_TIME); - bool isEqual(const MEDCouplingFieldInt *other, double meshPrec, int valsPrec) const throw(INTERP_KERNEL::Exception); - bool isEqualWithoutConsideringStr(const MEDCouplingFieldInt *other, double meshPrec, int valsPrec) const throw(INTERP_KERNEL::Exception); - void setTimeUnit(const std::string& unit) throw(INTERP_KERNEL::Exception); - std::string getTimeUnit() const throw(INTERP_KERNEL::Exception); - void setTime(double val, int iteration, int order) throw(INTERP_KERNEL::Exception); - void setArray(DataArrayInt *array) throw(INTERP_KERNEL::Exception); - MEDCouplingFieldInt *deepCopy() const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldInt *clone(bool recDeepCpy) const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldInt *cloneWithMesh(bool recDeepCpy) const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldDouble *convertToDblField() const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldInt *buildSubPartRange(int begin, int end, int step) const throw(INTERP_KERNEL::Exception); + bool isEqual(const MEDCouplingFieldInt *other, double meshPrec, int valsPrec) const; + bool isEqualWithoutConsideringStr(const MEDCouplingFieldInt *other, double meshPrec, int valsPrec) const; + void setTimeUnit(const std::string& unit); + std::string getTimeUnit() const; + void setTime(double val, int iteration, int order); + void setArray(DataArrayInt *array); + MEDCouplingFieldInt *deepCopy() const; + MEDCouplingFieldInt *clone(bool recDeepCpy) const; + MEDCouplingFieldInt *cloneWithMesh(bool recDeepCpy) const; + MEDCouplingFieldDouble *convertToDblField() const; + MEDCouplingFieldInt *buildSubPartRange(int begin, int end, int step) const; %extend { MEDCouplingFieldInt(TypeOfField type, TypeOfTimeDiscretization td=ONE_TIME) { @@ -5259,7 +5259,7 @@ namespace MEDCoupling return MEDCouplingFieldInt::New(ft,td); } - PyObject *isEqualIfNotWhy(const MEDCouplingFieldInt *other, double meshPrec, int valsPrec) const throw(INTERP_KERNEL::Exception) + PyObject *isEqualIfNotWhy(const MEDCouplingFieldInt *other, double meshPrec, int valsPrec) const { std::string ret1; bool ret0=self->isEqualIfNotWhy(other,meshPrec,valsPrec,ret1); @@ -5271,29 +5271,29 @@ namespace MEDCoupling return ret; } - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->simpleRepr(); } - std::string __repr__() const throw(INTERP_KERNEL::Exception) + std::string __repr__() const { std::ostringstream oss; self->reprQuickOverview(oss); return oss.str(); } - MEDCouplingFieldInt *buildSubPart(PyObject *li) const throw(INTERP_KERNEL::Exception) + MEDCouplingFieldInt *buildSubPart(PyObject *li) const { return fieldT_buildSubPart(self,li); } - MEDCouplingFieldInt *__getitem__(PyObject *li) const throw(INTERP_KERNEL::Exception) + MEDCouplingFieldInt *__getitem__(PyObject *li) const { return fieldT__getitem__(self,li); } - DataArrayInt *getArray() throw(INTERP_KERNEL::Exception) + DataArrayInt *getArray() { DataArrayInt *ret=self->getArray(); if(ret) @@ -5301,7 +5301,7 @@ namespace MEDCoupling return ret; } - PyObject *getTime() throw(INTERP_KERNEL::Exception) + PyObject *getTime() { int tmp1,tmp2; double tmp0=self->getTime(tmp1,tmp2); @@ -5312,22 +5312,22 @@ namespace MEDCoupling return res; } - PyObject *getTinySerializationInformation() const throw(INTERP_KERNEL::Exception) + PyObject *getTinySerializationInformation() const { return field_getTinySerializationInformation(self); } - PyObject *serialize() const throw(INTERP_KERNEL::Exception) + PyObject *serialize() const { return field_serialize(self); } - PyObject *__getstate__() const throw(INTERP_KERNEL::Exception) + PyObject *__getstate__() const { return field__getstate__(self,MEDCoupling_MEDCouplingFieldInt_getTinySerializationInformation,MEDCoupling_MEDCouplingFieldInt_serialize); } - void __setstate__(PyObject *inp) throw(INTERP_KERNEL::Exception) + void __setstate__(PyObject *inp) { field__setstate__(self,inp); } @@ -5339,17 +5339,17 @@ namespace MEDCoupling public: static MEDCouplingFieldFloat *New(TypeOfField type, TypeOfTimeDiscretization td=ONE_TIME); static MEDCouplingFieldFloat *New(const MEDCouplingFieldTemplate& ft, TypeOfTimeDiscretization td=ONE_TIME); - bool isEqual(const MEDCouplingFieldFloat *other, double meshPrec, float valsPrec) const throw(INTERP_KERNEL::Exception); - bool isEqualWithoutConsideringStr(const MEDCouplingFieldFloat *other, double meshPrec, float valsPrec) const throw(INTERP_KERNEL::Exception); - void setTimeUnit(const std::string& unit) throw(INTERP_KERNEL::Exception); - std::string getTimeUnit() const throw(INTERP_KERNEL::Exception); - void setTime(double val, int iteration, int order) throw(INTERP_KERNEL::Exception); - void setArray(DataArrayFloat *array) throw(INTERP_KERNEL::Exception); - MEDCouplingFieldFloat *deepCopy() const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldFloat *clone(bool recDeepCpy) const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldFloat *cloneWithMesh(bool recDeepCpy) const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldDouble *convertToDblField() const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldFloat *buildSubPartRange(int begin, int end, int step) const throw(INTERP_KERNEL::Exception); + bool isEqual(const MEDCouplingFieldFloat *other, double meshPrec, float valsPrec) const; + bool isEqualWithoutConsideringStr(const MEDCouplingFieldFloat *other, double meshPrec, float valsPrec) const; + void setTimeUnit(const std::string& unit); + std::string getTimeUnit() const; + void setTime(double val, int iteration, int order); + void setArray(DataArrayFloat *array); + MEDCouplingFieldFloat *deepCopy() const; + MEDCouplingFieldFloat *clone(bool recDeepCpy) const; + MEDCouplingFieldFloat *cloneWithMesh(bool recDeepCpy) const; + MEDCouplingFieldDouble *convertToDblField() const; + MEDCouplingFieldFloat *buildSubPartRange(int begin, int end, int step) const; %extend { MEDCouplingFieldFloat(TypeOfField type, TypeOfTimeDiscretization td=ONE_TIME) { @@ -5361,7 +5361,7 @@ namespace MEDCoupling return MEDCouplingFieldFloat::New(ft,td); } - PyObject *isEqualIfNotWhy(const MEDCouplingFieldFloat *other, double meshPrec, float valsPrec) const throw(INTERP_KERNEL::Exception) + PyObject *isEqualIfNotWhy(const MEDCouplingFieldFloat *other, double meshPrec, float valsPrec) const { std::string ret1; bool ret0=self->isEqualIfNotWhy(other,meshPrec,valsPrec,ret1); @@ -5373,29 +5373,29 @@ namespace MEDCoupling return ret; } - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->simpleRepr(); } - std::string __repr__() const throw(INTERP_KERNEL::Exception) + std::string __repr__() const { std::ostringstream oss; self->reprQuickOverview(oss); return oss.str(); } - MEDCouplingFieldFloat *buildSubPart(PyObject *li) const throw(INTERP_KERNEL::Exception) + MEDCouplingFieldFloat *buildSubPart(PyObject *li) const { return fieldT_buildSubPart(self,li); } - MEDCouplingFieldFloat *__getitem__(PyObject *li) const throw(INTERP_KERNEL::Exception) + MEDCouplingFieldFloat *__getitem__(PyObject *li) const { return fieldT__getitem__(self,li); } - DataArrayFloat *getArray() throw(INTERP_KERNEL::Exception) + DataArrayFloat *getArray() { DataArrayFloat *ret=self->getArray(); if(ret) @@ -5403,7 +5403,7 @@ namespace MEDCoupling return ret; } - PyObject *getTime() throw(INTERP_KERNEL::Exception) + PyObject *getTime() { int tmp1,tmp2; double tmp0=self->getTime(tmp1,tmp2); @@ -5414,22 +5414,22 @@ namespace MEDCoupling return res; } - PyObject *getTinySerializationInformation() const throw(INTERP_KERNEL::Exception) + PyObject *getTinySerializationInformation() const { return field_getTinySerializationInformation(self); } - PyObject *serialize() const throw(INTERP_KERNEL::Exception) + PyObject *serialize() const { return field_serialize(self); } - PyObject *__getstate__() const throw(INTERP_KERNEL::Exception) + PyObject *__getstate__() const { return field__getstate__(self,MEDCoupling_MEDCouplingFieldFloat_getTinySerializationInformation,MEDCoupling_MEDCouplingFieldFloat_serialize); } - void __setstate__(PyObject *inp) throw(INTERP_KERNEL::Exception) + void __setstate__(PyObject *inp) { field__setstate__(self,inp); } @@ -5446,14 +5446,14 @@ namespace MEDCoupling std::vector getHotSpotsTime() const; %extend { - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { std::ostringstream oss; self->appendRepr(oss); return oss.str(); } - PyObject *getIdsOnTimeRight(double tm) const throw(INTERP_KERNEL::Exception) + PyObject *getIdsOnTimeRight(double tm) const { int meshId,arrId,arrIdInField,fieldId; self->getIdsOnTimeRight(tm,meshId,arrId,arrIdInField,fieldId); @@ -5465,7 +5465,7 @@ namespace MEDCoupling return res; } - PyObject *getIdsOnTimeLeft(double tm) const throw(INTERP_KERNEL::Exception) + PyObject *getIdsOnTimeLeft(double tm) const { int meshId,arrId,arrIdInField,fieldId; self->getIdsOnTimeLeft(tm,meshId,arrId,arrIdInField,fieldId); @@ -5482,12 +5482,12 @@ namespace MEDCoupling class MEDCouplingFieldOverTime : public MEDCouplingMultiFields { public: - double getTimeTolerance() const throw(INTERP_KERNEL::Exception); + double getTimeTolerance() const; MEDCouplingDefinitionTime getDefinitionTimeZone() const; %extend { - MEDCouplingFieldOverTime(PyObject *li) throw(INTERP_KERNEL::Exception) + MEDCouplingFieldOverTime(PyObject *li) { std::vector tmp; convertFromPyObjVectorOfObj(li,SWIGTYPE_p_MEDCoupling__MEDCouplingFieldDouble,"MEDCouplingFieldDouble",tmp); @@ -5497,11 +5497,11 @@ namespace MEDCoupling fs[i]=const_cast(tmp[i]); return MEDCouplingFieldOverTime::New(fs); } - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->simpleRepr(); } - static MEDCouplingFieldOverTime *New(PyObject *li) throw(INTERP_KERNEL::Exception) + static MEDCouplingFieldOverTime *New(PyObject *li) { std::vector tmp; convertFromPyObjVectorOfObj(li,SWIGTYPE_p_MEDCoupling__MEDCouplingFieldDouble,"MEDCouplingFieldDouble",tmp); @@ -5519,12 +5519,12 @@ namespace MEDCoupling class MEDCouplingCartesianAMRPatchGen : public RefCountObject { public: - int getNumberOfCellsRecursiveWithOverlap() const throw(INTERP_KERNEL::Exception); - int getNumberOfCellsRecursiveWithoutOverlap() const throw(INTERP_KERNEL::Exception); - int getMaxNumberOfLevelsRelativeToThis() const throw(INTERP_KERNEL::Exception); + int getNumberOfCellsRecursiveWithOverlap() const; + int getNumberOfCellsRecursiveWithoutOverlap() const; + int getMaxNumberOfLevelsRelativeToThis() const; %extend { - MEDCouplingCartesianAMRMeshGen *getMesh() const throw(INTERP_KERNEL::Exception) + MEDCouplingCartesianAMRMeshGen *getMesh() const { MEDCouplingCartesianAMRMeshGen *ret(const_cast(self->getMesh())); if(ret) @@ -5537,31 +5537,31 @@ namespace MEDCoupling class MEDCouplingCartesianAMRPatch : public MEDCouplingCartesianAMRPatchGen { public: - int getNumberOfOverlapedCellsForFather() const throw(INTERP_KERNEL::Exception); - bool isInMyNeighborhood(const MEDCouplingCartesianAMRPatch *other, int ghostLev) const throw(INTERP_KERNEL::Exception); - std::vector computeCellGridSt() const throw(INTERP_KERNEL::Exception); + int getNumberOfOverlapedCellsForFather() const; + bool isInMyNeighborhood(const MEDCouplingCartesianAMRPatch *other, int ghostLev) const; + std::vector computeCellGridSt() const; %extend { - PyObject *getBLTRRange() const throw(INTERP_KERNEL::Exception) + PyObject *getBLTRRange() const { const std::vector< std::pair >& ret(self->getBLTRRange()); return convertFromVectorPairInt(ret); } - PyObject *getBLTRRangeRelativeToGF() const throw(INTERP_KERNEL::Exception) + PyObject *getBLTRRangeRelativeToGF() const { std::vector< std::pair > ret(self->getBLTRRangeRelativeToGF()); return convertFromVectorPairInt(ret); } - void addPatch(PyObject *bottomLeftTopRight, const std::vector& factors) throw(INTERP_KERNEL::Exception) + void addPatch(PyObject *bottomLeftTopRight, const std::vector& factors) { std::vector< std::pair > inp; convertPyToVectorPairInt(bottomLeftTopRight,inp); self->addPatch(inp,factors); } - MEDCouplingCartesianAMRPatch *__getitem__(int patchId) const throw(INTERP_KERNEL::Exception) + MEDCouplingCartesianAMRPatch *__getitem__(int patchId) const { const MEDCouplingCartesianAMRMeshGen *mesh(self->getMesh()); if(!mesh) @@ -5579,7 +5579,7 @@ namespace MEDCoupling return ret; } - void __delitem__(int patchId) throw(INTERP_KERNEL::Exception) + void __delitem__(int patchId) { MEDCouplingCartesianAMRMeshGen *mesh(const_cast(self->getMesh())); if(!mesh) @@ -5587,7 +5587,7 @@ namespace MEDCoupling mesh->removePatch(patchId); } - int __len__() const throw(INTERP_KERNEL::Exception) + int __len__() const { const MEDCouplingCartesianAMRMeshGen *mesh(self->getMesh()); if(!mesh) @@ -5604,50 +5604,50 @@ namespace MEDCoupling class MEDCouplingCartesianAMRMeshGen : public RefCountObject, public TimeLabel { public: - int getAbsoluteLevel() const throw(INTERP_KERNEL::Exception); - int getAbsoluteLevelRelativeTo(const MEDCouplingCartesianAMRMeshGen *ref) const throw(INTERP_KERNEL::Exception); - std::vector getPositionRelativeTo(const MEDCouplingCartesianAMRMeshGen *ref) const throw(INTERP_KERNEL::Exception); - int getSpaceDimension() const throw(INTERP_KERNEL::Exception); - const std::vector& getFactors() const throw(INTERP_KERNEL::Exception); - void setFactors(const std::vector& newFactors) throw(INTERP_KERNEL::Exception); - int getMaxNumberOfLevelsRelativeToThis() const throw(INTERP_KERNEL::Exception); - int getNumberOfCellsAtCurrentLevel() const throw(INTERP_KERNEL::Exception); - int getNumberOfCellsAtCurrentLevelGhost(int ghostLev) const throw(INTERP_KERNEL::Exception); - int getNumberOfCellsRecursiveWithOverlap() const throw(INTERP_KERNEL::Exception); - int getNumberOfCellsRecursiveWithoutOverlap() const throw(INTERP_KERNEL::Exception); - bool isPatchInNeighborhoodOf(int patchId1, int patchId2, int ghostLev) const throw(INTERP_KERNEL::Exception); - virtual void detachFromFather() throw(INTERP_KERNEL::Exception); + int getAbsoluteLevel() const; + int getAbsoluteLevelRelativeTo(const MEDCouplingCartesianAMRMeshGen *ref) const; + std::vector getPositionRelativeTo(const MEDCouplingCartesianAMRMeshGen *ref) const; + int getSpaceDimension() const; + const std::vector& getFactors() const; + void setFactors(const std::vector& newFactors); + int getMaxNumberOfLevelsRelativeToThis() const; + int getNumberOfCellsAtCurrentLevel() const; + int getNumberOfCellsAtCurrentLevelGhost(int ghostLev) const; + int getNumberOfCellsRecursiveWithOverlap() const; + int getNumberOfCellsRecursiveWithoutOverlap() const; + bool isPatchInNeighborhoodOf(int patchId1, int patchId2, int ghostLev) const; + virtual void detachFromFather(); // - int getNumberOfPatches() const throw(INTERP_KERNEL::Exception); - int getPatchIdFromChildMesh(const MEDCouplingCartesianAMRMeshGen *mesh) const throw(INTERP_KERNEL::Exception); - MEDCouplingUMesh *buildUnstructured() const throw(INTERP_KERNEL::Exception); - DataArrayDouble *extractGhostFrom(int ghostSz, const DataArrayDouble *arr) const throw(INTERP_KERNEL::Exception); - std::vector getPatchIdsInTheNeighborhoodOf(int patchId, int ghostLev) const throw(INTERP_KERNEL::Exception); - MEDCoupling1SGTUMesh *buildMeshFromPatchEnvelop() const throw(INTERP_KERNEL::Exception); - MEDCoupling1SGTUMesh *buildMeshOfDirectChildrenOnly() const throw(INTERP_KERNEL::Exception); - void removeAllPatches() throw(INTERP_KERNEL::Exception); - void removePatch(int patchId) throw(INTERP_KERNEL::Exception); - void createPatchesFromCriterion(const INTERP_KERNEL::BoxSplittingOptions& bso, const DataArrayByte *criterion, const std::vector& factors) throw(INTERP_KERNEL::Exception); - void createPatchesFromCriterion(const INTERP_KERNEL::BoxSplittingOptions& bso, const DataArrayDouble *criterion, const std::vector& factors, double eps) throw(INTERP_KERNEL::Exception); - DataArrayDouble *createCellFieldOnPatch(int patchId, const DataArrayDouble *cellFieldOnThis) const throw(INTERP_KERNEL::Exception); - void fillCellFieldOnPatch(int patchId, const DataArrayDouble *cellFieldOnThis, DataArrayDouble *cellFieldOnPatch, bool isConservative=true) const throw(INTERP_KERNEL::Exception); - void fillCellFieldOnPatchGhost(int patchId, const DataArrayDouble *cellFieldOnThis, DataArrayDouble *cellFieldOnPatch, int ghostLev, bool isConservative=true) const throw(INTERP_KERNEL::Exception); - void fillCellFieldOnPatchOnlyOnGhostZone(int patchId, const DataArrayDouble *cellFieldOnThis, DataArrayDouble *cellFieldOnPatch, int ghostLev) const throw(INTERP_KERNEL::Exception); + int getNumberOfPatches() const; + int getPatchIdFromChildMesh(const MEDCouplingCartesianAMRMeshGen *mesh) const; + MEDCouplingUMesh *buildUnstructured() const; + DataArrayDouble *extractGhostFrom(int ghostSz, const DataArrayDouble *arr) const; + std::vector getPatchIdsInTheNeighborhoodOf(int patchId, int ghostLev) const; + MEDCoupling1SGTUMesh *buildMeshFromPatchEnvelop() const; + MEDCoupling1SGTUMesh *buildMeshOfDirectChildrenOnly() const; + void removeAllPatches(); + void removePatch(int patchId); + void createPatchesFromCriterion(const INTERP_KERNEL::BoxSplittingOptions& bso, const DataArrayByte *criterion, const std::vector& factors); + void createPatchesFromCriterion(const INTERP_KERNEL::BoxSplittingOptions& bso, const DataArrayDouble *criterion, const std::vector& factors, double eps); + DataArrayDouble *createCellFieldOnPatch(int patchId, const DataArrayDouble *cellFieldOnThis) const; + void fillCellFieldOnPatch(int patchId, const DataArrayDouble *cellFieldOnThis, DataArrayDouble *cellFieldOnPatch, bool isConservative=true) const; + void fillCellFieldOnPatchGhost(int patchId, const DataArrayDouble *cellFieldOnThis, DataArrayDouble *cellFieldOnPatch, int ghostLev, bool isConservative=true) const; + void fillCellFieldOnPatchOnlyOnGhostZone(int patchId, const DataArrayDouble *cellFieldOnThis, DataArrayDouble *cellFieldOnPatch, int ghostLev) const; void fillCellFieldOnPatchOnlyOnGhostZoneWith(int ghostLev, const MEDCouplingCartesianAMRPatch *patchToBeModified, const MEDCouplingCartesianAMRPatch *neighborPatch, DataArrayDouble *cellFieldOnPatch, const DataArrayDouble *cellFieldNeighbor) const; - void fillCellFieldComingFromPatch(int patchId, const DataArrayDouble *cellFieldOnPatch, DataArrayDouble *cellFieldOnThis, bool isConservative=true) const throw(INTERP_KERNEL::Exception); - void fillCellFieldComingFromPatchGhost(int patchId, const DataArrayDouble *cellFieldOnPatch, DataArrayDouble *cellFieldOnThis, int ghostLev, bool isConservative=true) const throw(INTERP_KERNEL::Exception); - DataArrayInt *findPatchesInTheNeighborhoodOf(int patchId, int ghostLev) const throw(INTERP_KERNEL::Exception); - std::string buildPythonDumpOfThis() const throw(INTERP_KERNEL::Exception); + void fillCellFieldComingFromPatch(int patchId, const DataArrayDouble *cellFieldOnPatch, DataArrayDouble *cellFieldOnThis, bool isConservative=true) const; + void fillCellFieldComingFromPatchGhost(int patchId, const DataArrayDouble *cellFieldOnPatch, DataArrayDouble *cellFieldOnThis, int ghostLev, bool isConservative=true) const; + DataArrayInt *findPatchesInTheNeighborhoodOf(int patchId, int ghostLev) const; + std::string buildPythonDumpOfThis() const; %extend { - void addPatch(PyObject *bottomLeftTopRight, const std::vector& factors) throw(INTERP_KERNEL::Exception) + void addPatch(PyObject *bottomLeftTopRight, const std::vector& factors) { std::vector< std::pair > inp; convertPyToVectorPairInt(bottomLeftTopRight,inp); self->addPatch(inp,factors); } - PyObject *getPatches() const throw(INTERP_KERNEL::Exception) + PyObject *getPatches() const { std::vector< const MEDCouplingCartesianAMRPatch *> ps(self->getPatches()); int sz(ps.size()); @@ -5663,12 +5663,12 @@ namespace MEDCoupling } // agy : don't know why typemap fails here ??? let it in the extend section - PyObject *deepCopy(MEDCouplingCartesianAMRMeshGen *father) const throw(INTERP_KERNEL::Exception) + PyObject *deepCopy(MEDCouplingCartesianAMRMeshGen *father) const { return convertCartesianAMRMesh(self->deepCopy(father), SWIG_POINTER_OWN | 0 ); } - MEDCouplingCartesianAMRPatch *getPatchAtPosition(const std::vector& pos) const throw(INTERP_KERNEL::Exception) + MEDCouplingCartesianAMRPatch *getPatchAtPosition(const std::vector& pos) const { const MEDCouplingCartesianAMRPatch *ret(self->getPatchAtPosition(pos)); MEDCouplingCartesianAMRPatch *ret2(const_cast(ret)); @@ -5677,7 +5677,7 @@ namespace MEDCoupling return ret2; } - MEDCouplingCartesianAMRMeshGen *getMeshAtPosition(const std::vector& pos) const throw(INTERP_KERNEL::Exception) + MEDCouplingCartesianAMRMeshGen *getMeshAtPosition(const std::vector& pos) const { const MEDCouplingCartesianAMRMeshGen *ret(self->getMeshAtPosition(pos)); MEDCouplingCartesianAMRMeshGen *ret2(const_cast(ret)); @@ -5686,7 +5686,7 @@ namespace MEDCoupling return ret2; } - virtual PyObject *positionRelativeToGodFather() const throw(INTERP_KERNEL::Exception) + virtual PyObject *positionRelativeToGodFather() const { std::vector out1; std::vector< std::pair > out0(self->positionRelativeToGodFather(out1)); @@ -5696,7 +5696,7 @@ namespace MEDCoupling return ret; } - virtual PyObject *retrieveGridsAt(int absoluteLev) const throw(INTERP_KERNEL::Exception) + virtual PyObject *retrieveGridsAt(int absoluteLev) const { std::vector ps(self->retrieveGridsAt(absoluteLev)); int sz(ps.size()); @@ -5713,7 +5713,7 @@ namespace MEDCoupling return self->buildCellFieldOnRecurseWithoutOverlapWithoutGhost(ghostSz,inp); } - virtual MEDCouplingCartesianAMRMeshGen *getFather() const throw(INTERP_KERNEL::Exception) + virtual MEDCouplingCartesianAMRMeshGen *getFather() const { MEDCouplingCartesianAMRMeshGen *ret(const_cast(self->getFather())); if(ret) @@ -5721,7 +5721,7 @@ namespace MEDCoupling return ret; } - virtual MEDCouplingCartesianAMRMeshGen *getGodFather() const throw(INTERP_KERNEL::Exception) + virtual MEDCouplingCartesianAMRMeshGen *getGodFather() const { MEDCouplingCartesianAMRMeshGen *ret(const_cast(self->getGodFather())); if(ret) @@ -5729,7 +5729,7 @@ namespace MEDCoupling return ret; } - MEDCouplingCartesianAMRPatch *getPatch(int patchId) const throw(INTERP_KERNEL::Exception) + MEDCouplingCartesianAMRPatch *getPatch(int patchId) const { MEDCouplingCartesianAMRPatch *ret(const_cast(self->getPatch(patchId))); if(ret) @@ -5737,7 +5737,7 @@ namespace MEDCoupling return ret; } - MEDCouplingIMesh *getImageMesh() const throw(INTERP_KERNEL::Exception) + MEDCouplingIMesh *getImageMesh() const { const MEDCouplingIMesh *ret(self->getImageMesh()); if(ret) @@ -5745,7 +5745,7 @@ namespace MEDCoupling return const_cast(ret); } - MEDCouplingCartesianAMRPatch *__getitem__(int patchId) const throw(INTERP_KERNEL::Exception) + MEDCouplingCartesianAMRPatch *__getitem__(int patchId) const { if(patchId==self->getNumberOfPatches()) { @@ -5760,7 +5760,7 @@ namespace MEDCoupling return ret; } - void fillCellFieldOnPatchGhostAdv(int patchId, const DataArrayDouble *cellFieldOnThis, int ghostLev, PyObject *arrsOnPatches, bool isConservative=true) const throw(INTERP_KERNEL::Exception) + void fillCellFieldOnPatchGhostAdv(int patchId, const DataArrayDouble *cellFieldOnThis, int ghostLev, PyObject *arrsOnPatches, bool isConservative=true) const { std::vector arrsOnPatches2; convertFromPyObjVectorOfObj(arrsOnPatches,SWIGTYPE_p_MEDCoupling__DataArrayDouble,"DataArrayDouble",arrsOnPatches2); @@ -5774,12 +5774,12 @@ namespace MEDCoupling self->fillCellFieldOnPatchOnlyGhostAdv(patchId,ghostLev,arrsOnPatches2); } - void __delitem__(int patchId) throw(INTERP_KERNEL::Exception) + void __delitem__(int patchId) { self->removePatch(patchId); } - int __len__() const throw(INTERP_KERNEL::Exception) + int __len__() const { return self->getNumberOfPatches(); } @@ -5793,10 +5793,10 @@ namespace MEDCoupling class MEDCouplingCartesianAMRMesh : public MEDCouplingCartesianAMRMeshGen { public: - static MEDCouplingCartesianAMRMesh *New(MEDCouplingIMesh *mesh) throw(INTERP_KERNEL::Exception); + static MEDCouplingCartesianAMRMesh *New(MEDCouplingIMesh *mesh); %extend { - static MEDCouplingCartesianAMRMesh *New(const std::string& meshName, int spaceDim, PyObject *nodeStrct, PyObject *origin, PyObject *dxyz) throw(INTERP_KERNEL::Exception) + static MEDCouplingCartesianAMRMesh *New(const std::string& meshName, int spaceDim, PyObject *nodeStrct, PyObject *origin, PyObject *dxyz) { static const char msg0[]="MEDCouplingCartesianAMRMesh::New : error on 'origin' parameter !"; static const char msg1[]="MEDCouplingCartesianAMRMesh::New : error on 'dxyz' parameter !"; @@ -5815,7 +5815,7 @@ namespace MEDCoupling return MEDCouplingCartesianAMRMesh::New(meshName,spaceDim,nodeStrctPtr,nodeStrctPtr+sz,originPtr,originPtr+sz1,dxyzPtr,dxyzPtr+sz2); } - void createPatchesFromCriterionML(PyObject *bso, const DataArrayDouble *criterion, PyObject *factors, double eps) throw(INTERP_KERNEL::Exception) + void createPatchesFromCriterionML(PyObject *bso, const DataArrayDouble *criterion, PyObject *factors, double eps) { std::vector inp0; convertFromPyObjVectorOfObj(bso,SWIGTYPE_p_INTERP_KERNEL__BoxSplittingOptions,"BoxSplittingOptions",inp0); @@ -5824,12 +5824,12 @@ namespace MEDCoupling self->createPatchesFromCriterionML(inp0,criterion,inp2,eps); } - MEDCouplingCartesianAMRMesh(const std::string& meshName, int spaceDim, PyObject *nodeStrct, PyObject *origin, PyObject *dxyz) throw(INTERP_KERNEL::Exception) + MEDCouplingCartesianAMRMesh(const std::string& meshName, int spaceDim, PyObject *nodeStrct, PyObject *origin, PyObject *dxyz) { return MEDCoupling_MEDCouplingCartesianAMRMesh_New__SWIG_1(meshName,spaceDim,nodeStrct,origin,dxyz); } - MEDCouplingCartesianAMRMesh(MEDCouplingIMesh *mesh) throw(INTERP_KERNEL::Exception) + MEDCouplingCartesianAMRMesh(MEDCouplingIMesh *mesh) { return MEDCouplingCartesianAMRMesh::New(mesh); } @@ -5839,19 +5839,19 @@ namespace MEDCoupling class MEDCouplingDataForGodFather : public RefCountObject { public: - virtual void synchronizeFineToCoarse() throw(INTERP_KERNEL::Exception); - virtual void synchronizeFineToCoarseBetween(int fromLev, int toLev) throw(INTERP_KERNEL::Exception); - virtual void synchronizeCoarseToFine() throw(INTERP_KERNEL::Exception); - virtual void synchronizeCoarseToFineBetween(int fromLev, int toLev) throw(INTERP_KERNEL::Exception); - virtual void synchronizeAllGhostZones() throw(INTERP_KERNEL::Exception); - virtual void synchronizeAllGhostZonesOfDirectChidrenOf(const MEDCouplingCartesianAMRMeshGen *mesh) throw(INTERP_KERNEL::Exception); - virtual void synchronizeAllGhostZonesAtASpecifiedLevel(int level) throw(INTERP_KERNEL::Exception); - virtual void synchronizeAllGhostZonesAtASpecifiedLevelUsingOnlyFather(int level) throw(INTERP_KERNEL::Exception); - virtual void alloc() throw(INTERP_KERNEL::Exception); - virtual void dealloc() throw(INTERP_KERNEL::Exception); + virtual void synchronizeFineToCoarse(); + virtual void synchronizeFineToCoarseBetween(int fromLev, int toLev); + virtual void synchronizeCoarseToFine(); + virtual void synchronizeCoarseToFineBetween(int fromLev, int toLev); + virtual void synchronizeAllGhostZones(); + virtual void synchronizeAllGhostZonesOfDirectChidrenOf(const MEDCouplingCartesianAMRMeshGen *mesh); + virtual void synchronizeAllGhostZonesAtASpecifiedLevel(int level); + virtual void synchronizeAllGhostZonesAtASpecifiedLevelUsingOnlyFather(int level); + virtual void alloc(); + virtual void dealloc(); %extend { - MEDCouplingCartesianAMRMesh *getMyGodFather() throw(INTERP_KERNEL::Exception) + MEDCouplingCartesianAMRMesh *getMyGodFather() { MEDCouplingCartesianAMRMesh *ret(self->getMyGodFather()); if(ret) @@ -5864,18 +5864,18 @@ namespace MEDCoupling class MEDCouplingAMRAttribute : public MEDCouplingDataForGodFather, public TimeLabel { public: - int getNumberOfLevels() const throw(INTERP_KERNEL::Exception); - MEDCouplingAMRAttribute *deepCopy() const throw(INTERP_KERNEL::Exception); - MEDCouplingAMRAttribute *deepCpyWithoutGodFather() const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldDouble *buildCellFieldOnRecurseWithoutOverlapWithoutGhost(MEDCouplingCartesianAMRMeshGen *mesh, const std::string& fieldName) const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldDouble *buildCellFieldOnWithGhost(MEDCouplingCartesianAMRMeshGen *mesh, const std::string& fieldName) const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldDouble *buildCellFieldOnWithoutGhost(MEDCouplingCartesianAMRMeshGen *mesh, const std::string& fieldName) const throw(INTERP_KERNEL::Exception); - bool changeGodFather(MEDCouplingCartesianAMRMesh *gf) throw(INTERP_KERNEL::Exception); - MEDCouplingAMRAttribute *projectTo(MEDCouplingCartesianAMRMesh *targetGF) const throw(INTERP_KERNEL::Exception); - std::string writeVTHB(const std::string& fileName) const throw(INTERP_KERNEL::Exception); + int getNumberOfLevels() const; + MEDCouplingAMRAttribute *deepCopy() const; + MEDCouplingAMRAttribute *deepCpyWithoutGodFather() const; + MEDCouplingFieldDouble *buildCellFieldOnRecurseWithoutOverlapWithoutGhost(MEDCouplingCartesianAMRMeshGen *mesh, const std::string& fieldName) const; + MEDCouplingFieldDouble *buildCellFieldOnWithGhost(MEDCouplingCartesianAMRMeshGen *mesh, const std::string& fieldName) const; + MEDCouplingFieldDouble *buildCellFieldOnWithoutGhost(MEDCouplingCartesianAMRMeshGen *mesh, const std::string& fieldName) const; + bool changeGodFather(MEDCouplingCartesianAMRMesh *gf); + MEDCouplingAMRAttribute *projectTo(MEDCouplingCartesianAMRMesh *targetGF) const; + std::string writeVTHB(const std::string& fileName) const; %extend { - static MEDCouplingAMRAttribute *New(MEDCouplingCartesianAMRMesh *gf, PyObject *fieldNames, int ghostLev) throw(INTERP_KERNEL::Exception) + static MEDCouplingAMRAttribute *New(MEDCouplingCartesianAMRMesh *gf, PyObject *fieldNames, int ghostLev) { std::vector< std::pair > fieldNamesCpp0; std::vector< std::pair > > fieldNamesCpp1; @@ -5893,12 +5893,12 @@ namespace MEDCoupling return ret; } - MEDCouplingAMRAttribute(MEDCouplingCartesianAMRMesh *gf, PyObject *fieldNames, int ghostLev) throw(INTERP_KERNEL::Exception) + MEDCouplingAMRAttribute(MEDCouplingCartesianAMRMesh *gf, PyObject *fieldNames, int ghostLev) { return MEDCoupling_MEDCouplingAMRAttribute_New(gf,fieldNames,ghostLev); } - DataArrayDouble *getFieldOn(MEDCouplingCartesianAMRMeshGen *mesh, const std::string& fieldName) const throw(INTERP_KERNEL::Exception) + DataArrayDouble *getFieldOn(MEDCouplingCartesianAMRMeshGen *mesh, const std::string& fieldName) const { const DataArrayDouble *ret(self->getFieldOn(mesh,fieldName)); DataArrayDouble *ret2(const_cast(ret)); @@ -5907,14 +5907,14 @@ namespace MEDCoupling return ret2; } - void spillInfoOnComponents(PyObject *compNames) throw(INTERP_KERNEL::Exception) + void spillInfoOnComponents(PyObject *compNames) { std::vector< std::vector > compNamesCpp; convertPyToVectorOfVectorOfString(compNames,compNamesCpp); self->spillInfoOnComponents(compNamesCpp); } - void spillNatures(PyObject *nfs) throw(INTERP_KERNEL::Exception) + void spillNatures(PyObject *nfs) { std::vector inp0; if(!fillIntVector(nfs,inp0)) @@ -5926,7 +5926,7 @@ namespace MEDCoupling self->spillNatures(inp00); } - PyObject *retrieveFieldsOn(MEDCouplingCartesianAMRMeshGen *mesh) const throw(INTERP_KERNEL::Exception) + PyObject *retrieveFieldsOn(MEDCouplingCartesianAMRMeshGen *mesh) const { std::vector ret(self->retrieveFieldsOn(mesh)); int sz((int)ret.size()); @@ -5941,34 +5941,34 @@ namespace MEDCoupling class DenseMatrix : public RefCountObject, public TimeLabel { public: - static DenseMatrix *New(int nbRows, int nbCols) throw(INTERP_KERNEL::Exception); - static DenseMatrix *New(DataArrayDouble *array, int nbRows, int nbCols) throw(INTERP_KERNEL::Exception); - DenseMatrix *deepCopy() const throw(INTERP_KERNEL::Exception); - DenseMatrix *shallowCpy() const throw(INTERP_KERNEL::Exception); + static DenseMatrix *New(int nbRows, int nbCols); + static DenseMatrix *New(DataArrayDouble *array, int nbRows, int nbCols); + DenseMatrix *deepCopy() const; + DenseMatrix *shallowCpy() const; // - int getNumberOfRows() const throw(INTERP_KERNEL::Exception); - int getNumberOfCols() const throw(INTERP_KERNEL::Exception); - int getNbOfElems() const throw(INTERP_KERNEL::Exception); - void reBuild(DataArrayDouble *array, int nbRows=-1, int nbCols=-1) throw(INTERP_KERNEL::Exception); - void reShape(int nbRows, int nbCols) throw(INTERP_KERNEL::Exception); - void transpose() throw(INTERP_KERNEL::Exception); + int getNumberOfRows() const; + int getNumberOfCols() const; + int getNbOfElems() const; + void reBuild(DataArrayDouble *array, int nbRows=-1, int nbCols=-1); + void reShape(int nbRows, int nbCols); + void transpose(); // - bool isEqual(const DenseMatrix& other, double eps) const throw(INTERP_KERNEL::Exception); - DataArrayDouble *matVecMult(const DataArrayDouble *vec) const throw(INTERP_KERNEL::Exception); - static DataArrayDouble *MatVecMult(const DenseMatrix *mat, const DataArrayDouble *vec) throw(INTERP_KERNEL::Exception); + bool isEqual(const DenseMatrix& other, double eps) const; + DataArrayDouble *matVecMult(const DataArrayDouble *vec) const; + static DataArrayDouble *MatVecMult(const DenseMatrix *mat, const DataArrayDouble *vec); %extend { - DenseMatrix(int nbRows, int nbCols) throw(INTERP_KERNEL::Exception) + DenseMatrix(int nbRows, int nbCols) { return DenseMatrix::New(nbRows,nbCols); } - DenseMatrix(DataArrayDouble *array, int nbRows, int nbCols) throw(INTERP_KERNEL::Exception) + DenseMatrix(DataArrayDouble *array, int nbRows, int nbCols) { return DenseMatrix::New(array,nbRows,nbCols); } - PyObject *isEqualIfNotWhy(const DenseMatrix& other, double eps) const throw(INTERP_KERNEL::Exception) + PyObject *isEqualIfNotWhy(const DenseMatrix& other, double eps) const { std::string ret1; bool ret0=self->isEqualIfNotWhy(other,eps,ret1); @@ -5980,7 +5980,7 @@ namespace MEDCoupling return ret; } - DataArrayDouble *getData() throw(INTERP_KERNEL::Exception) + DataArrayDouble *getData() { DataArrayDouble *ret(self->getData()); if(ret) @@ -5988,41 +5988,41 @@ namespace MEDCoupling return ret; } - DenseMatrix *__add__(const DenseMatrix *other) throw(INTERP_KERNEL::Exception) + DenseMatrix *__add__(const DenseMatrix *other) { return MEDCoupling::DenseMatrix::Add(self,other); } - DenseMatrix *__sub__(const DenseMatrix *other) throw(INTERP_KERNEL::Exception) + DenseMatrix *__sub__(const DenseMatrix *other) { return MEDCoupling::DenseMatrix::Substract(self,other); } - DenseMatrix *__mul__(const DenseMatrix *other) throw(INTERP_KERNEL::Exception) + DenseMatrix *__mul__(const DenseMatrix *other) { return MEDCoupling::DenseMatrix::Multiply(self,other); } - DenseMatrix *__mul__(const DataArrayDouble *other) throw(INTERP_KERNEL::Exception) + DenseMatrix *__mul__(const DataArrayDouble *other) { return MEDCoupling::DenseMatrix::Multiply(self,other); } - PyObject *___iadd___(PyObject *trueSelf, const DenseMatrix *other) throw(INTERP_KERNEL::Exception) + PyObject *___iadd___(PyObject *trueSelf, const DenseMatrix *other) { self->addEqual(other); Py_XINCREF(trueSelf); return trueSelf; } - PyObject *___isub___(PyObject *trueSelf, const DenseMatrix *other) throw(INTERP_KERNEL::Exception) + PyObject *___isub___(PyObject *trueSelf, const DenseMatrix *other) { self->substractEqual(other); Py_XINCREF(trueSelf); return trueSelf; } #ifdef WITH_NUMPY - PyObject *toNumPyMatrix() throw(INTERP_KERNEL::Exception) // not const. It is not a bug ! + PyObject *toNumPyMatrix() // not const. It is not a bug ! { PyObject *obj(ToNumPyArrayUnderground(self->getData(),NPY_DOUBLE,"DataArrayDouble",self->getNumberOfRows(),self->getNumberOfCols())); return obj; diff --git a/src/MEDCoupling_Swig/MEDCouplingFieldDiscretization.i b/src/MEDCoupling_Swig/MEDCouplingFieldDiscretization.i index a41bad46d..4b973f257 100644 --- a/src/MEDCoupling_Swig/MEDCouplingFieldDiscretization.i +++ b/src/MEDCoupling_Swig/MEDCouplingFieldDiscretization.i @@ -35,34 +35,34 @@ namespace MEDCoupling class MEDCouplingFieldDiscretization : public RefCountObject, public TimeLabel { public: - static MEDCouplingFieldDiscretization *New(TypeOfField type) throw(INTERP_KERNEL::Exception); - double getPrecision() const throw(INTERP_KERNEL::Exception); - void setPrecision(double val) throw(INTERP_KERNEL::Exception); - static TypeOfField GetTypeOfFieldFromStringRepr(const std::string& repr) throw(INTERP_KERNEL::Exception); - virtual TypeOfField getEnum() const throw(INTERP_KERNEL::Exception); - virtual bool isEqual(const MEDCouplingFieldDiscretization *other, double eps) const throw(INTERP_KERNEL::Exception); - virtual bool isEqualIfNotWhy(const MEDCouplingFieldDiscretization *other, double eps, std::string& reason) const throw(INTERP_KERNEL::Exception); - virtual bool isEqualWithoutConsideringStr(const MEDCouplingFieldDiscretization *other, double eps) const throw(INTERP_KERNEL::Exception); - virtual MEDCouplingFieldDiscretization *deepCopy() const throw(INTERP_KERNEL::Exception); - virtual MEDCouplingFieldDiscretization *clone() const throw(INTERP_KERNEL::Exception); - virtual MEDCouplingFieldDiscretization *clonePartRange(int beginCellIds, int endCellIds, int stepCellIds) const throw(INTERP_KERNEL::Exception); - virtual std::string getStringRepr() const throw(INTERP_KERNEL::Exception); - virtual const char *getRepr() const throw(INTERP_KERNEL::Exception); - virtual int getNumberOfTuples(const MEDCouplingMesh *mesh) const throw(INTERP_KERNEL::Exception); - virtual int getNumberOfMeshPlaces(const MEDCouplingMesh *mesh) const throw(INTERP_KERNEL::Exception); - virtual DataArrayInt *getOffsetArr(const MEDCouplingMesh *mesh) const throw(INTERP_KERNEL::Exception); - virtual DataArrayDouble *getLocalizationOfDiscValues(const MEDCouplingMesh *mesh) const throw(INTERP_KERNEL::Exception); - virtual void checkCompatibilityWithNature(NatureOfField nat) const 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 void checkCoherencyBetween(const MEDCouplingMesh *mesh, const DataArray *da) const throw(INTERP_KERNEL::Exception); - virtual MEDCouplingFieldDouble *getMeasureField(const MEDCouplingMesh *mesh, bool isAbs) const throw(INTERP_KERNEL::Exception); + static MEDCouplingFieldDiscretization *New(TypeOfField type); + double getPrecision() const; + void setPrecision(double val); + static TypeOfField GetTypeOfFieldFromStringRepr(const std::string& repr); + virtual TypeOfField getEnum() const; + virtual bool isEqual(const MEDCouplingFieldDiscretization *other, double eps) const; + virtual bool isEqualIfNotWhy(const MEDCouplingFieldDiscretization *other, double eps, std::string& reason) const; + virtual bool isEqualWithoutConsideringStr(const MEDCouplingFieldDiscretization *other, double eps) const; + virtual MEDCouplingFieldDiscretization *deepCopy() const; + virtual MEDCouplingFieldDiscretization *clone() const; + virtual MEDCouplingFieldDiscretization *clonePartRange(int beginCellIds, int endCellIds, int stepCellIds) const; + virtual std::string getStringRepr() const; + virtual const char *getRepr() const; + virtual int getNumberOfTuples(const MEDCouplingMesh *mesh) const; + virtual int getNumberOfMeshPlaces(const MEDCouplingMesh *mesh) const; + virtual DataArrayInt *getOffsetArr(const MEDCouplingMesh *mesh) const; + virtual DataArrayDouble *getLocalizationOfDiscValues(const MEDCouplingMesh *mesh) const; + virtual void checkCompatibilityWithNature(NatureOfField nat) const; + virtual double getIJK(const MEDCouplingMesh *mesh, const DataArrayDouble *da, int cellId, int nodeIdInCell, int compoId) const; + virtual void checkCoherencyBetween(const MEDCouplingMesh *mesh, const DataArray *da) const; + virtual MEDCouplingFieldDouble *getMeasureField(const MEDCouplingMesh *mesh, bool isAbs) const; virtual void setGaussLocalizationOnType(const MEDCouplingMesh *m, INTERP_KERNEL::NormalizedCellType type, const std::vector& refCoo, - const std::vector& gsCoo, const std::vector& 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); + const std::vector& gsCoo, const std::vector& wg); + virtual void clearGaussLocalizations(); + virtual MEDCouplingGaussLocalization& getGaussLocalization(int locId); + virtual int getNbOfGaussLocalization() const; + virtual int getGaussLocalizationIdOfOneCell(int cellId) const; + virtual int getGaussLocalizationIdOfOneType(INTERP_KERNEL::NormalizedCellType type) const; %extend { virtual MEDCouplingFieldDiscretization *clonePart(PyObject *li) @@ -73,7 +73,7 @@ namespace MEDCoupling return self->clonePart(inp,inp+sz); } - virtual PyObject *buildSubMeshDataRange(const MEDCouplingMesh *mesh, int beginCellIds, int endCellIds, int stepCellIds, int& beginOut, int& endOut, int& stepOut, DataArrayInt *&di) const throw(INTERP_KERNEL::Exception) + virtual PyObject *buildSubMeshDataRange(const MEDCouplingMesh *mesh, int beginCellIds, int endCellIds, int stepCellIds, int& beginOut, int& endOut, int& stepOut, DataArrayInt *&di) const { DataArrayInt *ret1=0; int bb,ee,ss; @@ -90,7 +90,7 @@ namespace MEDCoupling return res; } - virtual int getNumberOfTuplesExpectedRegardingCode(PyObject *code, PyObject *idsPerType) const throw(INTERP_KERNEL::Exception) + virtual int getNumberOfTuplesExpectedRegardingCode(PyObject *code, PyObject *idsPerType) const { std::vector inp0; convertPyToNewIntArr4(code,1,3,inp0); @@ -99,7 +99,7 @@ namespace MEDCoupling return self->getNumberOfTuplesExpectedRegardingCode(inp0,inp1); } - virtual PyObject *computeMeshRestrictionFromTupleIds(const MEDCouplingMesh *mesh, PyObject *tupleIds) const throw(INTERP_KERNEL::Exception) + virtual PyObject *computeMeshRestrictionFromTupleIds(const MEDCouplingMesh *mesh, PyObject *tupleIds) const { std::vector vVal; int iVal=-1; int sz=-1,sw=0; @@ -114,7 +114,7 @@ namespace MEDCoupling return pyRet; } - virtual PyObject *normL1(const MEDCouplingMesh *mesh, const DataArrayDouble *arr) const throw(INTERP_KERNEL::Exception) + virtual PyObject *normL1(const MEDCouplingMesh *mesh, const DataArrayDouble *arr) const { if(!arr) throw INTERP_KERNEL::Exception("wrap of MEDCouplingFieldDiscretization::normL1 : input array is null !"); @@ -124,7 +124,7 @@ namespace MEDCoupling return convertDblArrToPyList(tmp,sz); } - virtual PyObject *normL2(const MEDCouplingMesh *mesh, const DataArrayDouble *arr) const throw(INTERP_KERNEL::Exception) + virtual PyObject *normL2(const MEDCouplingMesh *mesh, const DataArrayDouble *arr) const { if(!arr) throw INTERP_KERNEL::Exception("wrap of MEDCouplingFieldDiscretization::normL2 : input array is null !"); @@ -134,7 +134,7 @@ namespace MEDCoupling return convertDblArrToPyList(tmp,sz); } - virtual PyObject *integral(const MEDCouplingMesh *mesh, const DataArrayDouble *arr, bool isWAbs) const throw(INTERP_KERNEL::Exception) + virtual PyObject *integral(const MEDCouplingMesh *mesh, const DataArrayDouble *arr, bool isWAbs) const { if(!arr) throw INTERP_KERNEL::Exception("wrap of MEDCouplingFieldDiscretization::integral : input array is null !"); @@ -144,7 +144,7 @@ namespace MEDCoupling return convertDblArrToPyList(tmp,sz); } - virtual PyObject *getCellIdsHavingGaussLocalization(int locId) const throw(INTERP_KERNEL::Exception) + virtual PyObject *getCellIdsHavingGaussLocalization(int locId) const { std::vector tmp; self->getCellIdsHavingGaussLocalization(locId,tmp); @@ -155,7 +155,7 @@ namespace MEDCoupling } virtual void setGaussLocalizationOnCells(const MEDCouplingMesh *m, PyObject *li, const std::vector& refCoo, - const std::vector& gsCoo, const std::vector& wg) throw(INTERP_KERNEL::Exception) + const std::vector& gsCoo, const std::vector& wg) { void *da=0; int res1=SWIG_ConvertPtr(li,&da,SWIGTYPE_p_MEDCoupling__DataArrayInt, 0 | 0 ); @@ -175,13 +175,13 @@ namespace MEDCoupling } } - virtual PyObject *getGaussLocalizationIdsOfOneType(INTERP_KERNEL::NormalizedCellType type) const throw(INTERP_KERNEL::Exception) + virtual PyObject *getGaussLocalizationIdsOfOneType(INTERP_KERNEL::NormalizedCellType type) const { std::set ret=self->getGaussLocalizationIdsOfOneType(type); return convertIntArrToPyList3(ret); } - virtual PyObject *getValueOn(const DataArrayDouble *arr, const MEDCouplingMesh *mesh, PyObject *sl) const throw(INTERP_KERNEL::Exception) + virtual PyObject *getValueOn(const DataArrayDouble *arr, const MEDCouplingMesh *mesh, PyObject *sl) const { double val; DataArrayDouble *a; @@ -199,7 +199,7 @@ namespace MEDCoupling return convertDblArrToPyList(res,spaceDim); } - virtual PyObject *getValueOnPos(const DataArrayDouble *arr, const MEDCouplingMesh *mesh, int i, int j, int k) const throw(INTERP_KERNEL::Exception) + virtual PyObject *getValueOnPos(const DataArrayDouble *arr, const MEDCouplingMesh *mesh, int i, int j, int k) const { if(!arr) throw INTERP_KERNEL::Exception("wrap of MEDCouplingFieldDiscretization::getValueOnPos : input array is null !"); @@ -209,7 +209,7 @@ namespace MEDCoupling return convertDblArrToPyList(res,sz); } - virtual DataArrayDouble *getValueOnMulti(const DataArrayDouble *arr, const MEDCouplingMesh *mesh, PyObject *loc) const throw(INTERP_KERNEL::Exception) + virtual DataArrayDouble *getValueOnMulti(const DataArrayDouble *arr, const MEDCouplingMesh *mesh, PyObject *loc) const { if(!mesh) throw INTERP_KERNEL::Exception("Python wrap MEDCouplingFieldDiscretization::getValueOnMulti : null input mesh !"); @@ -221,7 +221,7 @@ namespace MEDCoupling return self->getValueOnMulti(arr,mesh,inp,nbPts); } - virtual void renumberCells(PyObject *li, bool check=true) throw(INTERP_KERNEL::Exception) + virtual void renumberCells(PyObject *li, bool check=true) { int sw,sz(-1); int v0; std::vector v1; @@ -230,7 +230,7 @@ namespace MEDCoupling } virtual void renumberArraysForCell(const MEDCouplingMesh *mesh, PyObject *arrays, - PyObject *old2New, bool check) throw(INTERP_KERNEL::Exception) + PyObject *old2New, bool check) { std::vector input1; convertFromPyObjVectorOfObj(arrays,SWIGTYPE_p_MEDCoupling__DataArray,"DataArray",input1); @@ -242,7 +242,7 @@ namespace MEDCoupling self->renumberArraysForCell(mesh,input1,old2NewBg,check); } - virtual DataArrayInt *computeTupleIdsToSelectFromCellIds(const MEDCouplingMesh *mesh, PyObject *cellIds) const throw(INTERP_KERNEL::Exception) + virtual DataArrayInt *computeTupleIdsToSelectFromCellIds(const MEDCouplingMesh *mesh, PyObject *cellIds) const { int sw,sz(-1); int v0; std::vector v1; @@ -250,7 +250,7 @@ namespace MEDCoupling return self->computeTupleIdsToSelectFromCellIds(mesh,cellIdsBg,cellIdsBg+sz); } - virtual PyObject *buildSubMeshData(const MEDCouplingMesh *mesh, PyObject *ids) const throw(INTERP_KERNEL::Exception) + virtual PyObject *buildSubMeshData(const MEDCouplingMesh *mesh, PyObject *ids) { int sw,sz(-1); int v0; std::vector v1; @@ -263,7 +263,7 @@ namespace MEDCoupling return ret; } - virtual void renumberValuesOnNodes(double epsOnVals, PyObject *old2New, int newNbOfNodes, DataArrayDouble *arr) const throw(INTERP_KERNEL::Exception) + virtual void renumberValuesOnNodes(double epsOnVals, PyObject *old2New, int newNbOfNodes, DataArrayDouble *arr) const { int sw,sz(-1); int v0; std::vector v1; @@ -271,7 +271,7 @@ namespace MEDCoupling self->renumberValuesOnNodes(epsOnVals,old2NewBg,newNbOfNodes,arr); } - virtual void renumberValuesOnCells(double epsOnVals, const MEDCouplingMesh *mesh, PyObject *old2New, int newSz, DataArrayDouble *arr) const throw(INTERP_KERNEL::Exception) + virtual void renumberValuesOnCells(double epsOnVals, const MEDCouplingMesh *mesh, PyObject *old2New, int newSz, DataArrayDouble *arr) const { int sw,sz(-1); int v0; std::vector v1; @@ -279,7 +279,7 @@ namespace MEDCoupling self->renumberValuesOnCells(epsOnVals,mesh,old2NewBg,newSz,arr); } - virtual void renumberValuesOnCellsR(const MEDCouplingMesh *mesh, PyObject *new2old, int newSz, DataArrayDouble *arr) const throw(INTERP_KERNEL::Exception) + virtual void renumberValuesOnCellsR(const MEDCouplingMesh *mesh, PyObject *new2old, int newSz, DataArrayDouble *arr) const { int sw,sz(-1); int v0; std::vector v1; @@ -304,8 +304,8 @@ namespace MEDCoupling class MEDCouplingFieldDiscretizationPerCell : public MEDCouplingFieldDiscretization { public: - void setArrayOfDiscIds(const DataArrayInt *adids) throw(INTERP_KERNEL::Exception); - void checkNoOrphanCells() const throw(INTERP_KERNEL::Exception); + void setArrayOfDiscIds(const DataArrayInt *adids); + void checkNoOrphanCells() const; %extend { PyObject *getArrayOfDiscIds() const @@ -316,7 +316,7 @@ namespace MEDCoupling return SWIG_NewPointerObj(SWIG_as_voidptr(ret),SWIGTYPE_p_MEDCoupling__DataArrayInt, SWIG_POINTER_OWN | 0 ); } - PyObject *splitIntoSingleGaussDicrPerCellType() const throw(INTERP_KERNEL::Exception) + PyObject *splitIntoSingleGaussDicrPerCellType() const { std::vector ret1; std::vector ret0=self->splitIntoSingleGaussDicrPerCellType(ret1); @@ -349,21 +349,21 @@ namespace MEDCoupling public: %extend { - static PyObject *GetWeightArrayFromGeometricType(INTERP_KERNEL::NormalizedCellType geoType) throw(INTERP_KERNEL::Exception) + static PyObject *GetWeightArrayFromGeometricType(INTERP_KERNEL::NormalizedCellType geoType) { std::size_t sz(0); const double *ret(MEDCouplingFieldDiscretizationGaussNE::GetWeightArrayFromGeometricType(geoType,sz)); return convertDblArrToPyList(ret,sz); } - static PyObject *GetRefCoordsFromGeometricType(INTERP_KERNEL::NormalizedCellType geoType) throw(INTERP_KERNEL::Exception) + static PyObject *GetRefCoordsFromGeometricType(INTERP_KERNEL::NormalizedCellType geoType) { std::size_t sz(0); const double *ret(MEDCouplingFieldDiscretizationGaussNE::GetRefCoordsFromGeometricType(geoType,sz)); return convertDblArrToPyList(ret,sz); } - static PyObject *GetLocsFromGeometricType(INTERP_KERNEL::NormalizedCellType geoType) throw(INTERP_KERNEL::Exception) + static PyObject *GetLocsFromGeometricType(INTERP_KERNEL::NormalizedCellType geoType) { std::size_t sz(0); const double *ret(MEDCouplingFieldDiscretizationGaussNE::GetLocsFromGeometricType(geoType,sz)); @@ -375,10 +375,10 @@ namespace MEDCoupling class MEDCouplingFieldDiscretizationKriging : public MEDCouplingFieldDiscretizationOnNodes { public: - static DataArrayDouble *PerformDriftOfVec(const DataArrayDouble *arr, int isDrift) throw(INTERP_KERNEL::Exception); + static DataArrayDouble *PerformDriftOfVec(const DataArrayDouble *arr, int isDrift); %extend { - PyObject *computeVectorOfCoefficients(const MEDCouplingMesh *mesh, const DataArrayDouble *arr) const throw(INTERP_KERNEL::Exception) + PyObject *computeVectorOfCoefficients(const MEDCouplingMesh *mesh, const DataArrayDouble *arr) const { int ret1; DataArrayDouble *ret0=self->computeVectorOfCoefficients(mesh,arr,ret1); @@ -388,7 +388,7 @@ namespace MEDCoupling return ret; } - PyObject *computeInverseMatrix(const MEDCouplingMesh *mesh) const throw(INTERP_KERNEL::Exception) + PyObject *computeInverseMatrix(const MEDCouplingMesh *mesh) const { int ret1(-1),ret2(-1); DataArrayDouble *ret0=self->computeInverseMatrix(mesh,ret1,ret2); @@ -399,7 +399,7 @@ namespace MEDCoupling return ret; } - PyObject *computeMatrix(const MEDCouplingMesh *mesh) const throw(INTERP_KERNEL::Exception) + PyObject *computeMatrix(const MEDCouplingMesh *mesh) const { int ret1(-1),ret2(-1); DataArrayDouble *ret0=self->computeMatrix(mesh,ret1,ret2); @@ -410,7 +410,7 @@ namespace MEDCoupling return ret; } - PyObject *computeEvaluationMatrixOnGivenPts(const MEDCouplingMesh *mesh, PyObject *locs) const throw(INTERP_KERNEL::Exception) + PyObject *computeEvaluationMatrixOnGivenPts(const MEDCouplingMesh *mesh, PyObject *locs) const { if(!mesh) throw INTERP_KERNEL::Exception("wrap of MEDCouplingFieldDiscretizationKriging::computeEvaluationMatrixOnGivenPts : input mesh is empty !"); @@ -427,14 +427,14 @@ namespace MEDCoupling return ret; } - void operateOnDenseMatrix(int spaceDimension, DataArrayDouble *myMatrix) const throw(INTERP_KERNEL::Exception) + void operateOnDenseMatrix(int spaceDimension, DataArrayDouble *myMatrix) const { if(!myMatrix || !myMatrix->isAllocated() || myMatrix->getNumberOfComponents()!=1) throw INTERP_KERNEL::Exception("Wrap of MEDCouplingFieldDiscretizationKriging::operateOnDenseMatrix : invalid input matrix as DataArrayDouble ! Must be allocated with one component !"); self->operateOnDenseMatrix(spaceDimension,myMatrix->getNumberOfTuples(),myMatrix->getPointer()); } - PyObject *performDrift(const DataArrayDouble *matr, const DataArrayDouble *arr) const throw(INTERP_KERNEL::Exception) + PyObject *performDrift(const DataArrayDouble *matr, const DataArrayDouble *arr) const { int ret1(-1); DataArrayDouble *ret0(self->performDrift(matr,arr,ret1)); @@ -444,7 +444,7 @@ namespace MEDCoupling return res; } - static PyObject *PerformDriftRect(const DataArrayDouble *matr, const DataArrayDouble *arr) throw(INTERP_KERNEL::Exception) + static PyObject *PerformDriftRect(const DataArrayDouble *matr, const DataArrayDouble *arr) { int ret1(-1); DataArrayDouble *ret0(MEDCouplingFieldDiscretizationKriging::PerformDriftRect(matr,arr,ret1)); @@ -454,14 +454,14 @@ namespace MEDCoupling return res; } - static void OperateOnDenseMatrixH3(DataArrayDouble *myMatrix) throw(INTERP_KERNEL::Exception) + static void OperateOnDenseMatrixH3(DataArrayDouble *myMatrix) { if(!myMatrix || !myMatrix->isAllocated() || myMatrix->getNumberOfComponents()!=1) throw INTERP_KERNEL::Exception("Wrap of MEDCouplingFieldDiscretizationKriging::OperateOnDenseMatrixH3 : invalid input matrix as DataArrayDouble ! Must be allocated with one component !"); MEDCouplingFieldDiscretizationKriging::OperateOnDenseMatrixH3(myMatrix->getNumberOfTuples(),myMatrix->getPointer()); } - static void OperateOnDenseMatrixH2Ln(DataArrayDouble *myMatrix) throw(INTERP_KERNEL::Exception) + static void OperateOnDenseMatrixH2Ln(DataArrayDouble *myMatrix) //throw(INTERP_KERNEL::Exception) { if(!myMatrix || !myMatrix->isAllocated() || myMatrix->getNumberOfComponents()!=1) throw INTERP_KERNEL::Exception("Wrap of MEDCouplingFieldDiscretizationKriging::OperateOnDenseMatrixH2Ln : invalid input matrix as DataArrayDouble ! Must be allocated with one component !"); diff --git a/src/MEDCoupling_Swig/MEDCouplingMemArray.i b/src/MEDCoupling_Swig/MEDCouplingMemArray.i index 06f5dae41..4a62f1117 100644 --- a/src/MEDCoupling_Swig/MEDCouplingMemArray.i +++ b/src/MEDCoupling_Swig/MEDCouplingMemArray.i @@ -268,22 +268,22 @@ namespace MEDCoupling class PartDefinition : public RefCountObject, public TimeLabel { public: - static PartDefinition *New(int start, int stop, int step) throw(INTERP_KERNEL::Exception); - static PartDefinition *New(DataArrayInt *listOfIds) throw(INTERP_KERNEL::Exception); - virtual DataArrayInt *toDAI() const throw(INTERP_KERNEL::Exception); - virtual int getNumberOfElems() const throw(INTERP_KERNEL::Exception); - virtual std::string getRepr() const throw(INTERP_KERNEL::Exception); - virtual PartDefinition *composeWith(const PartDefinition *other) const throw(INTERP_KERNEL::Exception); - virtual void checkConsistencyLight() const throw(INTERP_KERNEL::Exception); - virtual PartDefinition *tryToSimplify() const throw(INTERP_KERNEL::Exception); + static PartDefinition *New(int start, int stop, int step); + static PartDefinition *New(DataArrayInt *listOfIds); + virtual DataArrayInt *toDAI() const; + virtual int getNumberOfElems() const; + virtual std::string getRepr() const; + virtual PartDefinition *composeWith(const PartDefinition *other) const; + virtual void checkConsistencyLight() const; + virtual PartDefinition *tryToSimplify() const; %extend { - virtual PartDefinition *__add__(const PartDefinition& other) const throw(INTERP_KERNEL::Exception) + virtual PartDefinition *__add__(const PartDefinition& other) const { return (*self)+other; } - virtual PyObject *isEqual(const PartDefinition *other) const throw(INTERP_KERNEL::Exception) + virtual PyObject *isEqual(const PartDefinition *other) const { std::string ret1; bool ret0(self->isEqual(other,ret1)); @@ -295,7 +295,7 @@ namespace MEDCoupling return ret; } - virtual PyObject *deepCopy() const throw(INTERP_KERNEL::Exception) + virtual PyObject *deepCopy() const { return convertPartDefinition(self->deepCopy(),SWIG_POINTER_OWN | 0); } @@ -307,20 +307,20 @@ namespace MEDCoupling class DataArrayPartDefinition : public PartDefinition { public: - static DataArrayPartDefinition *New(DataArrayInt *listOfIds) throw(INTERP_KERNEL::Exception); + static DataArrayPartDefinition *New(DataArrayInt *listOfIds); %extend { - DataArrayPartDefinition(DataArrayInt *listOfIds) throw(INTERP_KERNEL::Exception) + DataArrayPartDefinition(DataArrayInt *listOfIds) { return DataArrayPartDefinition::New(listOfIds); } - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->getRepr(); } - std::string __repr__() const throw(INTERP_KERNEL::Exception) + std::string __repr__() const { std::ostringstream oss; oss << "DataArrayPartDefinition C++ instance at " << self << "." << std::endl; oss << self->getRepr(); @@ -334,28 +334,28 @@ namespace MEDCoupling class SlicePartDefinition : public PartDefinition { public: - static SlicePartDefinition *New(int start, int stop, int step) throw(INTERP_KERNEL::Exception); - int getEffectiveStop() const throw(INTERP_KERNEL::Exception); + static SlicePartDefinition *New(int start, int stop, int step); + int getEffectiveStop() const; %extend { - SlicePartDefinition(int start, int stop, int step) throw(INTERP_KERNEL::Exception) + SlicePartDefinition(int start, int stop, int step) { return SlicePartDefinition::New(start,stop,step); } - PyObject *getSlice() const throw(INTERP_KERNEL::Exception) + PyObject *getSlice() const { int a,b,c; self->getSlice(a,b,c); return PySlice_New(PyInt_FromLong(a),PyInt_FromLong(b),PyInt_FromLong(c)); } - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->getRepr(); } - std::string __repr__() const throw(INTERP_KERNEL::Exception) + std::string __repr__() const { std::ostringstream oss; oss << "SlicePartDefinition C++ instance at " << self << "." << std::endl; oss << self->getRepr(); @@ -370,53 +370,53 @@ namespace MEDCoupling { public: void setName(const std::string& name); - void copyStringInfoFrom(const DataArray& other) throw(INTERP_KERNEL::Exception); - void copyPartOfStringInfoFrom(const DataArray& other, const std::vector& compoIds) throw(INTERP_KERNEL::Exception); - void copyPartOfStringInfoFrom2(const std::vector& compoIds, const DataArray& other) throw(INTERP_KERNEL::Exception); - bool areInfoEqualsIfNotWhy(const DataArray& other, std::string& reason) const throw(INTERP_KERNEL::Exception); - bool areInfoEquals(const DataArray& other) const throw(INTERP_KERNEL::Exception); - std::string cppRepr(const std::string& varName) const throw(INTERP_KERNEL::Exception); + void copyStringInfoFrom(const DataArray& other); + void copyPartOfStringInfoFrom(const DataArray& other, const std::vector& compoIds); + void copyPartOfStringInfoFrom2(const std::vector& compoIds, const DataArray& other); + bool areInfoEqualsIfNotWhy(const DataArray& other, std::string& reason) const; + bool areInfoEquals(const DataArray& other) const; + std::string cppRepr(const std::string& varName) const; std::string getName() const; - void setInfoOnComponents(const std::vector& info) throw(INTERP_KERNEL::Exception); - void setInfoAndChangeNbOfCompo(const std::vector& info) throw(INTERP_KERNEL::Exception); - std::vector getVarsOnComponent() const throw(INTERP_KERNEL::Exception); - std::vector getUnitsOnComponent() const throw(INTERP_KERNEL::Exception); - std::string getInfoOnComponent(int i) const throw(INTERP_KERNEL::Exception); - std::string getVarOnComponent(int i) const throw(INTERP_KERNEL::Exception); - std::string getUnitOnComponent(int i) const throw(INTERP_KERNEL::Exception); - void setInfoOnComponent(int i, const std::string& info) throw(INTERP_KERNEL::Exception); + void setInfoOnComponents(const std::vector& info); + void setInfoAndChangeNbOfCompo(const std::vector& info); + std::vector getVarsOnComponent() const; + std::vector getUnitsOnComponent() const; + std::string getInfoOnComponent(int i) const; + std::string getVarOnComponent(int i) const; + std::string getUnitOnComponent(int i) const; + void setInfoOnComponent(int i, const std::string& info); int getNumberOfComponents() const; - virtual void alloc(int nbOfTuple, int nbOfCompo=1) throw(INTERP_KERNEL::Exception); - virtual void reAlloc(int nbOfTuples) throw(INTERP_KERNEL::Exception); - virtual bool isAllocated() const throw(INTERP_KERNEL::Exception); - virtual void checkAllocated() const throw(INTERP_KERNEL::Exception); - virtual void desallocate() throw(INTERP_KERNEL::Exception); - virtual int getNumberOfTuples() const throw(INTERP_KERNEL::Exception); - virtual std::size_t getNbOfElems() const throw(INTERP_KERNEL::Exception); - virtual std::size_t getNbOfElemAllocated() const throw(INTERP_KERNEL::Exception); - virtual DataArray *deepCopy() const throw(INTERP_KERNEL::Exception); - virtual DataArray *buildNewEmptyInstance() const throw(INTERP_KERNEL::Exception); - virtual DataArray *selectByTupleIdSafeSlice(int bg, int end2, int step) const throw(INTERP_KERNEL::Exception); - virtual void rearrange(int newNbOfCompo) throw(INTERP_KERNEL::Exception); - virtual void circularPermutation(int nbOfShift=1) throw(INTERP_KERNEL::Exception); - virtual void circularPermutationPerTuple(int nbOfShift=1) throw(INTERP_KERNEL::Exception); - virtual void reversePerTuple() throw(INTERP_KERNEL::Exception); - void checkNbOfTuples(int nbOfTuples, const std::string& msg) const throw(INTERP_KERNEL::Exception); - void checkNbOfComps(int nbOfCompo, const std::string& msg) const throw(INTERP_KERNEL::Exception); - void checkNbOfTuplesAndComp(const DataArray& other, const std::string& msg) const throw(INTERP_KERNEL::Exception); - void checkNbOfTuplesAndComp(int nbOfTuples, int nbOfCompo, const std::string& msg) const throw(INTERP_KERNEL::Exception); - void checkNbOfElems(std::size_t nbOfElems, const std::string& msg) const throw(INTERP_KERNEL::Exception); - static int GetNumberOfItemGivenBES(int begin, int end, int step, const std::string& msg) throw(INTERP_KERNEL::Exception); - static int GetNumberOfItemGivenBESRelative(int begin, int end, int step, const std::string& msg) throw(INTERP_KERNEL::Exception); - static int GetPosOfItemGivenBESRelativeNoThrow(int value, int begin, int end, int step) throw(INTERP_KERNEL::Exception); - static std::string GetVarNameFromInfo(const std::string& info) throw(INTERP_KERNEL::Exception); - static std::string GetUnitFromInfo(const std::string& info) throw(INTERP_KERNEL::Exception); - static std::string BuildInfoFromVarAndUnit(const std::string& var, const std::string& unit) throw(INTERP_KERNEL::Exception); - static std::string GetAxisTypeRepr(MEDCouplingAxisType at) throw(INTERP_KERNEL::Exception); + virtual void alloc(int nbOfTuple, int nbOfCompo=1); + virtual void reAlloc(int nbOfTuples); + virtual bool isAllocated() const; + virtual void checkAllocated() const; + virtual void desallocate(); + virtual int getNumberOfTuples() const; + virtual std::size_t getNbOfElems() const; + virtual std::size_t getNbOfElemAllocated() const; + virtual DataArray *deepCopy() const; + virtual DataArray *buildNewEmptyInstance() const; + virtual DataArray *selectByTupleIdSafeSlice(int bg, int end2, int step) const; + virtual void rearrange(int newNbOfCompo); + virtual void circularPermutation(int nbOfShift=1); + virtual void circularPermutationPerTuple(int nbOfShift=1); + virtual void reversePerTuple(); + void checkNbOfTuples(int nbOfTuples, const std::string& msg) const; + void checkNbOfComps(int nbOfCompo, const std::string& msg) const; + void checkNbOfTuplesAndComp(const DataArray& other, const std::string& msg) const; + void checkNbOfTuplesAndComp(int nbOfTuples, int nbOfCompo, const std::string& msg) const; + void checkNbOfElems(std::size_t nbOfElems, const std::string& msg) const; + static int GetNumberOfItemGivenBES(int begin, int end, int step, const std::string& msg); + static int GetNumberOfItemGivenBESRelative(int begin, int end, int step, const std::string& msg); + static int GetPosOfItemGivenBESRelativeNoThrow(int value, int begin, int end, int step); + static std::string GetVarNameFromInfo(const std::string& info); + static std::string GetUnitFromInfo(const std::string& info); + static std::string BuildInfoFromVarAndUnit(const std::string& var, const std::string& unit); + static std::string GetAxisTypeRepr(MEDCouplingAxisType at); void updateTime() const; %extend { - PyObject *getInfoOnComponents() const throw(INTERP_KERNEL::Exception) + PyObject *getInfoOnComponents() const { const std::vector& comps=self->getInfoOnComponents(); PyObject *ret=PyList_New((int)comps.size()); @@ -425,21 +425,21 @@ namespace MEDCoupling return ret; } - void copyPartOfStringInfoFrom(const DataArray& other, PyObject *li) throw(INTERP_KERNEL::Exception) + void copyPartOfStringInfoFrom(const DataArray& other, PyObject *li) { std::vector tmp; convertPyToNewIntArr3(li,tmp); self->copyPartOfStringInfoFrom(other,tmp); } - void copyPartOfStringInfoFrom2(PyObject *li, const DataArray& other) throw(INTERP_KERNEL::Exception) + void copyPartOfStringInfoFrom2(PyObject *li, const DataArray& other) { std::vector tmp; convertPyToNewIntArr3(li,tmp); self->copyPartOfStringInfoFrom2(tmp,other); } - virtual void renumberInPlace(PyObject *li) throw(INTERP_KERNEL::Exception) + virtual void renumberInPlace(PyObject *li) { void *da=0; int res1=SWIG_ConvertPtr(li,&da,SWIGTYPE_p_MEDCoupling__DataArrayInt, 0 | 0 ); @@ -468,7 +468,7 @@ namespace MEDCoupling } } - virtual void renumberInPlaceR(PyObject *li) throw(INTERP_KERNEL::Exception) + virtual void renumberInPlaceR(PyObject *li) { void *da=0; int res1=SWIG_ConvertPtr(li,&da,SWIGTYPE_p_MEDCoupling__DataArrayInt, 0 | 0 ); @@ -498,7 +498,7 @@ namespace MEDCoupling } //tuplesSelec in PyObject * because DataArrayInt is not already existing ! - virtual void setContigPartOfSelectedValues(int tupleIdStart, PyObject *aBase, PyObject *tuplesSelec) throw(INTERP_KERNEL::Exception) + virtual void setContigPartOfSelectedValues(int tupleIdStart, PyObject *aBase, PyObject *tuplesSelec) { static const char msg[]="DataArray::setContigPartOfSelectedValuesSlice : 4th parameter \"tuplesSelec\" should be of type DataArrayInt"; DataArray *a=CheckAndRetrieveDataArrayInstance(aBase,"DataArray::setContigPartOfSelectedValuesSlice : 3rd parameter \"aBase\" should be of type DataArray"); @@ -513,20 +513,20 @@ namespace MEDCoupling self->setContigPartOfSelectedValues(tupleIdStart,a,tuplesSelecPtr2); } - virtual void setContigPartOfSelectedValuesSlice(int tupleIdStart, PyObject *aBase, int bg, int end2, int step) throw(INTERP_KERNEL::Exception) + virtual void setContigPartOfSelectedValuesSlice(int tupleIdStart, PyObject *aBase, int bg, int end2, int step) { DataArray *a=CheckAndRetrieveDataArrayInstance(aBase,"DataArray::setContigPartOfSelectedValuesSlice : 2nd parameter \"aBase\" should be of type DataArray"); self->setContigPartOfSelectedValuesSlice(tupleIdStart,a,bg,end2,step); } - virtual DataArray *selectByTupleRanges(PyObject *li) const throw(INTERP_KERNEL::Exception) + virtual DataArray *selectByTupleRanges(PyObject *li) const { std::vector > ranges; convertPyToVectorPairInt(li,ranges); return self->selectByTupleRanges(ranges); } - virtual DataArray *selectByTupleId(PyObject *li) const throw(INTERP_KERNEL::Exception) + virtual DataArray *selectByTupleId(PyObject *li) const { void *da=0; int res1=SWIG_ConvertPtr(li,&da,SWIGTYPE_p_MEDCoupling__DataArrayInt, 0 | 0 ); @@ -546,7 +546,7 @@ namespace MEDCoupling } } - virtual DataArray *selectByTupleIdSafe(PyObject *li) const throw(INTERP_KERNEL::Exception) + virtual DataArray *selectByTupleIdSafe(PyObject *li) const { void *da=0; int res1=SWIG_ConvertPtr(li,&da,SWIGTYPE_p_MEDCoupling__DataArrayInt, 0 | 0 ); @@ -566,7 +566,7 @@ namespace MEDCoupling } } - virtual PyObject *keepSelectedComponents(PyObject *li) const throw(INTERP_KERNEL::Exception) + virtual PyObject *keepSelectedComponents(PyObject *li) const { std::vector tmp; convertPyToNewIntArr3(li,tmp); @@ -574,7 +574,7 @@ namespace MEDCoupling return convertDataArray(ret,SWIG_POINTER_OWN | 0 ); } - static PyObject *GetSlice(PyObject *slic, int sliceId, int nbOfSlices) throw(INTERP_KERNEL::Exception) + static PyObject *GetSlice(PyObject *slic, int sliceId, int nbOfSlices) { if(!PySlice_Check(slic)) throw INTERP_KERNEL::Exception("DataArray::GetSlice (wrap) : expecting a pyslice as second (first) parameter !"); @@ -585,7 +585,7 @@ namespace MEDCoupling return PySlice_New(PyInt_FromLong(a),PyInt_FromLong(b),PyInt_FromLong(step)); } - PyObject *getSlice(PyObject *slic, int sliceId, int nbOfSlices) const throw(INTERP_KERNEL::Exception) + PyObject *getSlice(PyObject *slic, int sliceId, int nbOfSlices) const { if(!PySlice_Check(slic)) throw INTERP_KERNEL::Exception("DataArray::getSlice (wrap) : expecting a pyslice as second (first) parameter !"); @@ -596,7 +596,7 @@ namespace MEDCoupling return PySlice_New(PyInt_FromLong(a),PyInt_FromLong(b),PyInt_FromLong(step)); } - static int GetNumberOfItemGivenBES(PyObject *slic) throw(INTERP_KERNEL::Exception) + static int GetNumberOfItemGivenBES(PyObject *slic) { if(!PySlice_Check(slic)) throw INTERP_KERNEL::Exception("DataArray::GetNumberOfItemGivenBES (wrap) : expecting a pyslice as second (first) parameter !"); @@ -605,7 +605,7 @@ namespace MEDCoupling return DataArray::GetNumberOfItemGivenBES(strt,stp,step,""); } - static int GetNumberOfItemGivenBESRelative(PyObject *slic) throw(INTERP_KERNEL::Exception) + static int GetNumberOfItemGivenBESRelative(PyObject *slic) { if(!PySlice_Check(slic)) throw INTERP_KERNEL::Exception("DataArray::GetNumberOfItemGivenBESRelative (wrap) : expecting a pyslice as second (first) parameter !"); @@ -614,14 +614,14 @@ namespace MEDCoupling return DataArray::GetNumberOfItemGivenBESRelative(strt,stp,step,""); } - static DataArray *Aggregate(PyObject *arrs) throw(INTERP_KERNEL::Exception) + static DataArray *Aggregate(PyObject *arrs) { std::vector tmp; convertFromPyObjVectorOfObj(arrs,SWIGTYPE_p_MEDCoupling__DataArray,"DataArray",tmp); return DataArray::Aggregate(tmp); } - int getNumberOfItemGivenBES(PyObject *slic) const throw(INTERP_KERNEL::Exception) + int getNumberOfItemGivenBES(PyObject *slic) const { if(!PySlice_Check(slic)) throw INTERP_KERNEL::Exception("DataArray::getNumberOfItemGivenBES (wrap) : expecting a pyslice as second (first) parameter !"); @@ -630,7 +630,7 @@ namespace MEDCoupling return DataArray::GetNumberOfItemGivenBES(strt,stp,step,""); } - int getNumberOfItemGivenBESRelative(PyObject *slic) throw(INTERP_KERNEL::Exception) + int getNumberOfItemGivenBESRelative(PyObject *slic) { if(!PySlice_Check(slic)) throw INTERP_KERNEL::Exception("DataArray::getNumberOfItemGivenBESRelative (wrap) : expecting a pyslice as second (first) parameter !"); @@ -639,7 +639,7 @@ namespace MEDCoupling return DataArray::GetNumberOfItemGivenBESRelative(strt,stp,step,""); } - PyObject *__getstate__() const throw(INTERP_KERNEL::Exception) + PyObject *__getstate__() const { PyObject *ret(PyTuple_New(2)); std::string a0(self->getName()); @@ -655,7 +655,7 @@ namespace MEDCoupling return ret; } - void __setstate__(PyObject *inp) throw(INTERP_KERNEL::Exception) + void __setstate__(PyObject *inp) { static const char MSG[]="DataArrayDouble.__setstate__ : expected input is a tuple of size 2 with string as 1st arg and list of string as 2nd arg !"; if(!PyTuple_Check(inp)) @@ -680,50 +680,50 @@ namespace MEDCoupling { public: static DataArrayFloat *New(); - void fillWithValue(float val) throw(INTERP_KERNEL::Exception); - bool isEqual(const DataArrayFloat& other, float prec) const throw(INTERP_KERNEL::Exception); - bool isEqualWithoutConsideringStr(const DataArrayFloat& other, float prec) const throw(INTERP_KERNEL::Exception); - bool isUniform(float val, float eps) const throw(INTERP_KERNEL::Exception); - void pushBackSilent(float val) throw(INTERP_KERNEL::Exception); - void iota(float init=0.) throw(INTERP_KERNEL::Exception); - DataArrayFloatIterator *iterator() throw(INTERP_KERNEL::Exception); - MCAuto convertToDblArr() const throw(INTERP_KERNEL::Exception); - static DataArrayFloat *Meld(const DataArrayFloat *a1, const DataArrayFloat *a2) throw(INTERP_KERNEL::Exception); + void fillWithValue(float val); + bool isEqual(const DataArrayFloat& other, float prec) const; + bool isEqualWithoutConsideringStr(const DataArrayFloat& other, float prec) const; + bool isUniform(float val, float eps) const; + void pushBackSilent(float val); + void iota(float init=0.); + DataArrayFloatIterator *iterator(); + MCAuto convertToDblArr() const; + static DataArrayFloat *Meld(const DataArrayFloat *a1, const DataArrayFloat *a2); %extend { - DataArrayFloat() throw(INTERP_KERNEL::Exception) + DataArrayFloat() { return DataArrayFloat::New(); } - static DataArrayFloat *New(PyObject *elt0, PyObject *nbOfTuples=0, PyObject *elt2=0) throw(INTERP_KERNEL::Exception) + static DataArrayFloat *New(PyObject *elt0, PyObject *nbOfTuples=0, PyObject *elt2=0) { return DataArrayT_New(elt0,nbOfTuples,elt2); } - DataArrayFloat(PyObject *elt0, PyObject *nbOfTuples=0, PyObject *elt2=0) throw(INTERP_KERNEL::Exception) + DataArrayFloat(PyObject *elt0, PyObject *nbOfTuples=0, PyObject *elt2=0) { return MEDCoupling_DataArrayFloat_New__SWIG_1(elt0,nbOfTuples,elt2); } - DataArrayFloatIterator *__iter__() throw(INTERP_KERNEL::Exception) + DataArrayFloatIterator *__iter__() { return self->iterator(); } - std::string __repr__() const throw(INTERP_KERNEL::Exception) + std::string __repr__() const { std::ostringstream oss; self->reprQuickOverview(oss); return oss.str(); } - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->reprNotTooLong(); } - int __len__() const throw(INTERP_KERNEL::Exception) + int __len__() const { if(self->isAllocated()) { @@ -735,20 +735,20 @@ namespace MEDCoupling } } - PyObject *getValues() const throw(INTERP_KERNEL::Exception) + PyObject *getValues() const { const float *vals(self->begin()); return convertDblArrToPyList(vals,self->getNbOfElems()); } - PyObject *getValuesAsTuple() const throw(INTERP_KERNEL::Exception) + PyObject *getValuesAsTuple() const { const float *vals(self->begin()); int nbOfComp(self->getNumberOfComponents()),nbOfTuples(self->getNumberOfTuples()); return convertDblArrToPyListOfTuple(vals,nbOfComp,nbOfTuples); } - PyObject *isEqualIfNotWhy(const DataArrayFloat& other, float prec) const throw(INTERP_KERNEL::Exception) + PyObject *isEqualIfNotWhy(const DataArrayFloat& other, float prec) const { std::string ret1; bool ret0=self->isEqualIfNotWhy(other,prec,ret1); @@ -760,43 +760,43 @@ namespace MEDCoupling return ret; } - PyObject *__getitem__(PyObject *obj) throw(INTERP_KERNEL::Exception) + PyObject *__getitem__(PyObject *obj) { return DataArrayT__getitem(self,obj); } - DataArrayFloat *__setitem__(PyObject *obj, PyObject *value) throw(INTERP_KERNEL::Exception) + DataArrayFloat *__setitem__(PyObject *obj, PyObject *value) { return DataArrayT__setitem__(self,obj,value); } - PyObject *___iadd___(PyObject *trueSelf, PyObject *obj) throw(INTERP_KERNEL::Exception) + PyObject *___iadd___(PyObject *trueSelf, PyObject *obj) { return DataArrayT_iadd(trueSelf,obj,self); } - PyObject *___isub___(PyObject *trueSelf, PyObject *obj) throw(INTERP_KERNEL::Exception) + PyObject *___isub___(PyObject *trueSelf, PyObject *obj) { return DataArrayT_isub(trueSelf,obj,self); } - PyObject *___imul___(PyObject *trueSelf, PyObject *obj) throw(INTERP_KERNEL::Exception) + PyObject *___imul___(PyObject *trueSelf, PyObject *obj) { return DataArrayT_imul(trueSelf,obj,self); } - DataArrayFloat *__rmul__(PyObject *obj) throw(INTERP_KERNEL::Exception) + DataArrayFloat *__rmul__(PyObject *obj) { return DataArrayFPT_rmul(self,obj); } - PyObject *___idiv___(PyObject *trueSelf, PyObject *obj) throw(INTERP_KERNEL::Exception) + PyObject *___idiv___(PyObject *trueSelf, PyObject *obj) { return DataArrayT_idiv(trueSelf,obj,self); } #ifdef WITH_NUMPY - PyObject *toNumPyArray() throw(INTERP_KERNEL::Exception) // not const. It is not a bug ! + PyObject *toNumPyArray() // not const. It is not a bug ! { return ToNumPyArray(self,NPY_FLOAT,"DataArrayFloat"); } @@ -830,26 +830,26 @@ namespace MEDCoupling class DataArrayFloatTuple { public: - int getNumberOfCompo() const throw(INTERP_KERNEL::Exception); - DataArrayFloat *buildDAFloat(int nbOfTuples, int nbOfCompo) const throw(INTERP_KERNEL::Exception); + int getNumberOfCompo() const; + DataArrayFloat *buildDAFloat(int nbOfTuples, int nbOfCompo) const; %extend { - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->repr(); } - float __float__() const throw(INTERP_KERNEL::Exception) + float __float__() const { return self->floatValue(); } - DataArrayFloat *buildDAFloat() throw(INTERP_KERNEL::Exception) + DataArrayFloat *buildDAFloat() { return self->buildDAFloat(1,self->getNumberOfCompo()); } - /*PyObject *___imul___(PyObject *trueSelf, PyObject *obj) throw(INTERP_KERNEL::Exception) + /*PyObject *___imul___(PyObject *trueSelf, PyObject *obj) { MCAuto ret=self->buildDAFloat(1,self->getNumberOfCompo()); MEDCoupling_DataArrayFloat____imul___(ret,0,obj); @@ -857,7 +857,7 @@ namespace MEDCoupling return trueSelf; }*/ - PyObject *__len__() throw(INTERP_KERNEL::Exception) + PyObject *__len__() { return PyInt_FromLong(self->getNumberOfCompo()); } @@ -871,142 +871,142 @@ namespace MEDCoupling { public: static DataArrayDouble *New(); - double doubleValue() const throw(INTERP_KERNEL::Exception); - bool empty() const throw(INTERP_KERNEL::Exception); - void aggregate(const DataArrayDouble *other) throw(INTERP_KERNEL::Exception); - DataArrayDouble *performCopyOrIncrRef(bool deepCopy) const throw(INTERP_KERNEL::Exception); - void deepCopyFrom(const DataArrayDouble& other) throw(INTERP_KERNEL::Exception); - void reserve(std::size_t nbOfElems) throw(INTERP_KERNEL::Exception); - void pushBackSilent(double val) throw(INTERP_KERNEL::Exception); - double popBackSilent() throw(INTERP_KERNEL::Exception); - void pack() const throw(INTERP_KERNEL::Exception); - void allocIfNecessary(int nbOfTuple, int nbOfCompo) throw(INTERP_KERNEL::Exception); - void fillWithZero() throw(INTERP_KERNEL::Exception); - void fillWithValue(double val) throw(INTERP_KERNEL::Exception); - void iota(double init=0.) throw(INTERP_KERNEL::Exception); - bool isUniform(double val, double eps) const throw(INTERP_KERNEL::Exception); - void sort(bool asc=true) throw(INTERP_KERNEL::Exception); - void reverse() throw(INTERP_KERNEL::Exception); - void checkMonotonic(bool increasing, double eps) const throw(INTERP_KERNEL::Exception); - bool isMonotonic(bool increasing, double eps) const throw(INTERP_KERNEL::Exception); - std::string repr() const throw(INTERP_KERNEL::Exception); - std::string reprZip() const throw(INTERP_KERNEL::Exception); - std::string reprNotTooLong() const throw(INTERP_KERNEL::Exception); - bool isEqual(const DataArrayDouble& other, double prec) const throw(INTERP_KERNEL::Exception); - bool isEqualWithoutConsideringStr(const DataArrayDouble& other, double prec) const throw(INTERP_KERNEL::Exception); - DataArrayDouble *fromNoInterlace() const throw(INTERP_KERNEL::Exception); - DataArrayDouble *toNoInterlace() const throw(INTERP_KERNEL::Exception); - DataArrayDouble *subArray(int tupleIdBg, int tupleIdEnd=-1) const throw(INTERP_KERNEL::Exception); - void transpose() throw(INTERP_KERNEL::Exception); - DataArrayDouble *changeNbOfComponents(int newNbOfComp, double dftValue) const throw(INTERP_KERNEL::Exception); - void meldWith(const DataArrayDouble *other) throw(INTERP_KERNEL::Exception); - DataArrayDouble *duplicateEachTupleNTimes(int nbTimes) const throw(INTERP_KERNEL::Exception); - DataArrayDouble *getDifferentValues(double prec, int limitTupleId=-1) const throw(INTERP_KERNEL::Exception); - DataArrayInt *findClosestTupleId(const DataArrayDouble *other) const throw(INTERP_KERNEL::Exception); - DataArrayInt *computeNbOfInteractionsWith(const DataArrayDouble *otherBBoxFrmt, double eps) const throw(INTERP_KERNEL::Exception); - void setPartOfValues1(const DataArrayDouble *a, int bgTuples, int endTuples, int stepTuples, int bgComp, int endComp, int stepComp, bool strictCompoCompare=true) throw(INTERP_KERNEL::Exception); - void setPartOfValuesSimple1(double a, int bgTuples, int endTuples, int stepTuples, int bgComp, int endComp, int stepComp) throw(INTERP_KERNEL::Exception); - void setPartOfValuesAdv(const DataArrayDouble *a, const DataArrayInt *tuplesSelec) throw(INTERP_KERNEL::Exception); - double getIJ(int tupleId, int compoId) const throw(INTERP_KERNEL::Exception); - double front() const throw(INTERP_KERNEL::Exception); - double back() const throw(INTERP_KERNEL::Exception); - double getIJSafe(int tupleId, int compoId) const throw(INTERP_KERNEL::Exception); - void setIJ(int tupleId, int compoId, double newVal) throw(INTERP_KERNEL::Exception); - void setIJSilent(int tupleId, int compoId, double newVal) throw(INTERP_KERNEL::Exception); - double *getPointer() throw(INTERP_KERNEL::Exception); - void checkNoNullValues() const throw(INTERP_KERNEL::Exception); - DataArrayDouble *computeBBoxPerTuple(double epsilon=0.0) const throw(INTERP_KERNEL::Exception); - void recenterForMaxPrecision(double eps) throw(INTERP_KERNEL::Exception); - double getMaxValueInArray() const throw(INTERP_KERNEL::Exception); - double getMaxAbsValueInArray() const throw(INTERP_KERNEL::Exception); - double getMinValueInArray() const throw(INTERP_KERNEL::Exception); - int count(double value, double eps) const throw(INTERP_KERNEL::Exception); - double getAverageValue() const throw(INTERP_KERNEL::Exception); - double norm2() const throw(INTERP_KERNEL::Exception); - double normMax() const throw(INTERP_KERNEL::Exception); - double normMin() const throw(INTERP_KERNEL::Exception); - double accumulate(int compId) const throw(INTERP_KERNEL::Exception); - DataArrayDouble *fromPolarToCart() const throw(INTERP_KERNEL::Exception); - DataArrayDouble *fromCylToCart() const throw(INTERP_KERNEL::Exception); - DataArrayDouble *fromSpherToCart() const throw(INTERP_KERNEL::Exception); - DataArrayDouble *fromCartToPolar() const throw(INTERP_KERNEL::Exception); - DataArrayDouble *fromCartToCyl() const throw(INTERP_KERNEL::Exception); - DataArrayDouble *fromCartToSpher() const throw(INTERP_KERNEL::Exception); - DataArrayDouble *cartesianize(MEDCouplingAxisType atOfThis) const throw(INTERP_KERNEL::Exception); - DataArrayDouble *doublyContractedProduct() const throw(INTERP_KERNEL::Exception); - DataArrayDouble *determinant() const throw(INTERP_KERNEL::Exception); - DataArrayDouble *eigenValues() const throw(INTERP_KERNEL::Exception); - DataArrayDouble *eigenVectors() const throw(INTERP_KERNEL::Exception); - DataArrayDouble *inverse() const throw(INTERP_KERNEL::Exception); - DataArrayDouble *trace() const throw(INTERP_KERNEL::Exception); - DataArrayDouble *deviator() const throw(INTERP_KERNEL::Exception); - DataArrayDouble *magnitude() const throw(INTERP_KERNEL::Exception); - DataArrayDouble *maxPerTuple() const throw(INTERP_KERNEL::Exception); - DataArrayDouble *sumPerTuple() const throw(INTERP_KERNEL::Exception); - DataArrayDouble *buildEuclidianDistanceDenseMatrix() const throw(INTERP_KERNEL::Exception); - DataArrayDouble *buildEuclidianDistanceDenseMatrixWith(const DataArrayDouble *other) const throw(INTERP_KERNEL::Exception); - void sortPerTuple(bool asc) throw(INTERP_KERNEL::Exception); - void abs() throw(INTERP_KERNEL::Exception); - DataArrayDouble *computeAbs() const throw(INTERP_KERNEL::Exception); - void applyLin(double a, double b, int compoId) throw(INTERP_KERNEL::Exception); - void applyLin(double a, double b) throw(INTERP_KERNEL::Exception); - void applyInv(double numerator) throw(INTERP_KERNEL::Exception); - void applyPow(double val) throw(INTERP_KERNEL::Exception); - void applyRPow(double val) throw(INTERP_KERNEL::Exception); - DataArrayDouble *negate() const throw(INTERP_KERNEL::Exception); - DataArrayDouble *applyFunc(int nbOfComp, FunctionToEvaluate func) const throw(INTERP_KERNEL::Exception); - DataArrayDouble *applyFunc(int nbOfComp, const std::string& func, bool isSafe=true) const throw(INTERP_KERNEL::Exception); - DataArrayDouble *applyFunc(const std::string& func, bool isSafe=true) const throw(INTERP_KERNEL::Exception); - void applyFuncOnThis(const std::string& func, bool isSafe=true) throw(INTERP_KERNEL::Exception); - DataArrayDouble *applyFuncCompo(int nbOfComp, const std::string& func, bool isSafe=true) const throw(INTERP_KERNEL::Exception); - DataArrayDouble *applyFuncNamedCompo(int nbOfComp, const std::vector& varsOrder, const std::string& func, bool isSafe=true) const throw(INTERP_KERNEL::Exception); - void applyFuncFast32(const std::string& func) throw(INTERP_KERNEL::Exception); - void applyFuncFast64(const std::string& func) throw(INTERP_KERNEL::Exception); - DataArrayInt *findIdsInRange(double vmin, double vmax) const throw(INTERP_KERNEL::Exception); - DataArrayInt *findIdsNotInRange(double vmin, double vmax) const throw(INTERP_KERNEL::Exception); - DataArrayInt *findIdsStrictlyNegative() const throw(INTERP_KERNEL::Exception); - static DataArrayDouble *Aggregate(const DataArrayDouble *a1, const DataArrayDouble *a2) throw(INTERP_KERNEL::Exception); - static DataArrayDouble *Meld(const DataArrayDouble *a1, const DataArrayDouble *a2) throw(INTERP_KERNEL::Exception); - static DataArrayDouble *Dot(const DataArrayDouble *a1, const DataArrayDouble *a2) throw(INTERP_KERNEL::Exception); - static DataArrayDouble *CrossProduct(const DataArrayDouble *a1, const DataArrayDouble *a2) throw(INTERP_KERNEL::Exception); - static DataArrayDouble *Max(const DataArrayDouble *a1, const DataArrayDouble *a2) throw(INTERP_KERNEL::Exception); - static DataArrayDouble *Min(const DataArrayDouble *a1, const DataArrayDouble *a2) throw(INTERP_KERNEL::Exception); - static DataArrayDouble *Add(const DataArrayDouble *a1, const DataArrayDouble *a2) throw(INTERP_KERNEL::Exception); - void addEqual(const DataArrayDouble *other) throw(INTERP_KERNEL::Exception); - static DataArrayDouble *Substract(const DataArrayDouble *a1, const DataArrayDouble *a2) throw(INTERP_KERNEL::Exception); - void substractEqual(const DataArrayDouble *other) throw(INTERP_KERNEL::Exception); - static DataArrayDouble *Multiply(const DataArrayDouble *a1, const DataArrayDouble *a2) throw(INTERP_KERNEL::Exception); - void multiplyEqual(const DataArrayDouble *other) throw(INTERP_KERNEL::Exception); - static DataArrayDouble *Divide(const DataArrayDouble *a1, const DataArrayDouble *a2) throw(INTERP_KERNEL::Exception); - void divideEqual(const DataArrayDouble *other) throw(INTERP_KERNEL::Exception); - static DataArrayDouble *Pow(const DataArrayDouble *a1, const DataArrayDouble *a2) throw(INTERP_KERNEL::Exception); - void powEqual(const DataArrayDouble *other) throw(INTERP_KERNEL::Exception); - MCAuto findIdsGreaterOrEqualTo(double val) const throw(INTERP_KERNEL::Exception); - MCAuto findIdsGreaterThan(double val) const throw(INTERP_KERNEL::Exception); - MCAuto findIdsLowerOrEqualTo(double val) const throw(INTERP_KERNEL::Exception); - MCAuto findIdsLowerThan(double val) const throw(INTERP_KERNEL::Exception); - MCAuto convertToIntArr() const throw(INTERP_KERNEL::Exception); - MCAuto selectPartDef(const PartDefinition* pd) const throw(INTERP_KERNEL::Exception); - MCAuto cumSum() const throw(INTERP_KERNEL::Exception); - MCAuto convertToFloatArr() const throw(INTERP_KERNEL::Exception); + double doubleValue() const; + bool empty() const; + void aggregate(const DataArrayDouble *other); + DataArrayDouble *performCopyOrIncrRef(bool deepCopy) const; + void deepCopyFrom(const DataArrayDouble& other); + void reserve(std::size_t nbOfElems); + void pushBackSilent(double val); + double popBackSilent(); + void pack() const; + void allocIfNecessary(int nbOfTuple, int nbOfCompo); + void fillWithZero(); + void fillWithValue(double val); + void iota(double init=0.); + bool isUniform(double val, double eps) const; + void sort(bool asc=true); + void reverse(); + void checkMonotonic(bool increasing, double eps) const; + bool isMonotonic(bool increasing, double eps) const; + std::string repr() const; + std::string reprZip() const; + std::string reprNotTooLong() const; + bool isEqual(const DataArrayDouble& other, double prec) const; + bool isEqualWithoutConsideringStr(const DataArrayDouble& other, double prec) const; + DataArrayDouble *fromNoInterlace() const; + DataArrayDouble *toNoInterlace() const; + DataArrayDouble *subArray(int tupleIdBg, int tupleIdEnd=-1) const; + void transpose(); + DataArrayDouble *changeNbOfComponents(int newNbOfComp, double dftValue) const; + void meldWith(const DataArrayDouble *other); + DataArrayDouble *duplicateEachTupleNTimes(int nbTimes) const; + DataArrayDouble *getDifferentValues(double prec, int limitTupleId=-1) const; + DataArrayInt *findClosestTupleId(const DataArrayDouble *other) const; + DataArrayInt *computeNbOfInteractionsWith(const DataArrayDouble *otherBBoxFrmt, double eps) const; + void setPartOfValues1(const DataArrayDouble *a, int bgTuples, int endTuples, int stepTuples, int bgComp, int endComp, int stepComp, bool strictCompoCompare=true); + void setPartOfValuesSimple1(double a, int bgTuples, int endTuples, int stepTuples, int bgComp, int endComp, int stepComp); + void setPartOfValuesAdv(const DataArrayDouble *a, const DataArrayInt *tuplesSelec); + double getIJ(int tupleId, int compoId) const; + double front() const; + double back() const; + double getIJSafe(int tupleId, int compoId) const; + void setIJ(int tupleId, int compoId, double newVal); + void setIJSilent(int tupleId, int compoId, double newVal); + double *getPointer(); + void checkNoNullValues() const; + DataArrayDouble *computeBBoxPerTuple(double epsilon=0.0) const; + void recenterForMaxPrecision(double eps); + double getMaxValueInArray() const; + double getMaxAbsValueInArray() const; + double getMinValueInArray() const; + int count(double value, double eps) const; + double getAverageValue() const; + double norm2() const; + double normMax() const; + double normMin() const; + double accumulate(int compId) const; + DataArrayDouble *fromPolarToCart() const; + DataArrayDouble *fromCylToCart() const; + DataArrayDouble *fromSpherToCart() const; + DataArrayDouble *fromCartToPolar() const; + DataArrayDouble *fromCartToCyl() const; + DataArrayDouble *fromCartToSpher() const; + DataArrayDouble *cartesianize(MEDCouplingAxisType atOfThis) const; + DataArrayDouble *doublyContractedProduct() const; + DataArrayDouble *determinant() const; + DataArrayDouble *eigenValues() const; + DataArrayDouble *eigenVectors() const; + DataArrayDouble *inverse() const; + DataArrayDouble *trace() const; + DataArrayDouble *deviator() const; + DataArrayDouble *magnitude() const; + DataArrayDouble *maxPerTuple() const; + DataArrayDouble *sumPerTuple() const; + DataArrayDouble *buildEuclidianDistanceDenseMatrix() const; + DataArrayDouble *buildEuclidianDistanceDenseMatrixWith(const DataArrayDouble *other) const; + void sortPerTuple(bool asc); + void abs(); + DataArrayDouble *computeAbs() const; + void applyLin(double a, double b, int compoId); + void applyLin(double a, double b); + void applyInv(double numerator); + void applyPow(double val); + void applyRPow(double val); + DataArrayDouble *negate() const; + DataArrayDouble *applyFunc(int nbOfComp, FunctionToEvaluate func) const; + DataArrayDouble *applyFunc(int nbOfComp, const std::string& func, bool isSafe=true) const; + DataArrayDouble *applyFunc(const std::string& func, bool isSafe=true) const; + void applyFuncOnThis(const std::string& func, bool isSafe=true); + DataArrayDouble *applyFuncCompo(int nbOfComp, const std::string& func, bool isSafe=true) const; + DataArrayDouble *applyFuncNamedCompo(int nbOfComp, const std::vector& varsOrder, const std::string& func, bool isSafe=true) const; + void applyFuncFast32(const std::string& func); + void applyFuncFast64(const std::string& func); + DataArrayInt *findIdsInRange(double vmin, double vmax) const; + DataArrayInt *findIdsNotInRange(double vmin, double vmax) const; + DataArrayInt *findIdsStrictlyNegative() const; + static DataArrayDouble *Aggregate(const DataArrayDouble *a1, const DataArrayDouble *a2); + static DataArrayDouble *Meld(const DataArrayDouble *a1, const DataArrayDouble *a2); + static DataArrayDouble *Dot(const DataArrayDouble *a1, const DataArrayDouble *a2); + static DataArrayDouble *CrossProduct(const DataArrayDouble *a1, const DataArrayDouble *a2); + static DataArrayDouble *Max(const DataArrayDouble *a1, const DataArrayDouble *a2); + static DataArrayDouble *Min(const DataArrayDouble *a1, const DataArrayDouble *a2); + static DataArrayDouble *Add(const DataArrayDouble *a1, const DataArrayDouble *a2); + void addEqual(const DataArrayDouble *other); + static DataArrayDouble *Substract(const DataArrayDouble *a1, const DataArrayDouble *a2); + void substractEqual(const DataArrayDouble *other); + static DataArrayDouble *Multiply(const DataArrayDouble *a1, const DataArrayDouble *a2); + void multiplyEqual(const DataArrayDouble *other); + static DataArrayDouble *Divide(const DataArrayDouble *a1, const DataArrayDouble *a2); + void divideEqual(const DataArrayDouble *other); + static DataArrayDouble *Pow(const DataArrayDouble *a1, const DataArrayDouble *a2); + void powEqual(const DataArrayDouble *other); + MCAuto findIdsGreaterOrEqualTo(double val) const; + MCAuto findIdsGreaterThan(double val) const; + MCAuto findIdsLowerOrEqualTo(double val) const; + MCAuto findIdsLowerThan(double val) const; + MCAuto convertToIntArr() const; + MCAuto selectPartDef(const PartDefinition* pd) const; + MCAuto cumSum() const; + MCAuto convertToFloatArr() const; %extend { - DataArrayDouble() throw(INTERP_KERNEL::Exception) + DataArrayDouble() { return DataArrayDouble::New(); } - static DataArrayDouble *New(PyObject *elt0, PyObject *nbOfTuples=0, PyObject *elt2=0) throw(INTERP_KERNEL::Exception) + static DataArrayDouble *New(PyObject *elt0, PyObject *nbOfTuples=0, PyObject *elt2=0) { return DataArrayT_New(elt0,nbOfTuples,elt2); } - DataArrayDouble(PyObject *elt0, PyObject *nbOfTuples=0, PyObject *elt2=0) throw(INTERP_KERNEL::Exception) + DataArrayDouble(PyObject *elt0, PyObject *nbOfTuples=0, PyObject *elt2=0) { return MEDCoupling_DataArrayDouble_New__SWIG_1(elt0,nbOfTuples,elt2); } - void pushBackValsSilent(PyObject *li) throw(INTERP_KERNEL::Exception) + void pushBackValsSilent(PyObject *li) { double val; std::vector bb; @@ -1016,24 +1016,24 @@ namespace MEDCoupling self->pushBackValsSilent(tmp,tmp+nbTuples); } - std::string __repr__() const throw(INTERP_KERNEL::Exception) + std::string __repr__() const { std::ostringstream oss; self->reprQuickOverview(oss); return oss.str(); } - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->reprNotTooLong(); } - double __float__() const throw(INTERP_KERNEL::Exception) + double __float__() const { return self->doubleValue(); } - int __len__() const throw(INTERP_KERNEL::Exception) + int __len__() const { if(self->isAllocated()) { @@ -1045,7 +1045,7 @@ namespace MEDCoupling } } - PyObject *asArcOfCircle() const throw(INTERP_KERNEL::Exception) + PyObject *asArcOfCircle() const { double center[2],radius,ang; self->asArcOfCircle(center,radius,ang); @@ -1061,12 +1061,12 @@ namespace MEDCoupling return ret; } - DataArrayDoubleIterator *__iter__() throw(INTERP_KERNEL::Exception) + DataArrayDoubleIterator *__iter__() { return self->iterator(); } - void setValues(PyObject *li, PyObject *nbOfTuples=0, PyObject *nbOfComp=0) throw(INTERP_KERNEL::Exception) + void setValues(PyObject *li, PyObject *nbOfTuples=0, PyObject *nbOfComp=0) { const char *msg="MEDCoupling::DataArrayDouble::setValues : Available API are : \n-DataArrayDouble.setValues([1.,3.,4.])\n-DataArrayDouble.setValues([1.,3.,4.],3)\n-DataArrayDouble.setValues([1.,3.,4.,5.],2,2)\n-DataArrayDouble.setValues([(1.,1.7),(3.,3.7),(4.,4.7)])\n !"; if(PyList_Check(li) || PyTuple_Check(li)) @@ -1112,20 +1112,20 @@ namespace MEDCoupling throw INTERP_KERNEL::Exception(msg); } - PyObject *getValues() const throw(INTERP_KERNEL::Exception) + PyObject *getValues() const { const double *vals(self->begin()); return convertDblArrToPyList(vals,self->getNbOfElems()); } #ifdef WITH_NUMPY - PyObject *toNumPyArray() throw(INTERP_KERNEL::Exception) // not const. It is not a bug ! + PyObject *toNumPyArray() // not const. It is not a bug ! { return ToNumPyArray(self,NPY_DOUBLE,"DataArrayDouble"); } #endif - PyObject *isEqualIfNotWhy(const DataArrayDouble& other, double prec) const throw(INTERP_KERNEL::Exception) + PyObject *isEqualIfNotWhy(const DataArrayDouble& other, double prec) const { std::string ret1; bool ret0=self->isEqualIfNotWhy(other,prec,ret1); @@ -1137,14 +1137,14 @@ namespace MEDCoupling return ret; } - PyObject *getValuesAsTuple() const throw(INTERP_KERNEL::Exception) + PyObject *getValuesAsTuple() const { const double *vals(self->begin()); int nbOfComp(self->getNumberOfComponents()),nbOfTuples(self->getNumberOfTuples()); return convertDblArrToPyListOfTuple(vals,nbOfComp,nbOfTuples); } - static PyObject *ComputeIntegralOfSeg2IntoTri3(PyObject *seg2, PyObject *tri3) throw(INTERP_KERNEL::Exception) + static PyObject *ComputeIntegralOfSeg2IntoTri3(PyObject *seg2, PyObject *tri3) { const char msg[]="Python wrap of DataArrayDouble::ComputeIntegralOfSeg2IntoTri3 : "; double val,val2; @@ -1166,7 +1166,7 @@ namespace MEDCoupling return ret; } - DataArrayDouble *symmetry3DPlane(PyObject *point, PyObject *normalVector) throw(INTERP_KERNEL::Exception) + DataArrayDouble *symmetry3DPlane(PyObject *point, PyObject *normalVector) { const char msg[]="Python wrap of DataArrayDouble::symmetry3DPlane : "; double val,val2; @@ -1180,7 +1180,7 @@ namespace MEDCoupling return ret.retn(); } - static PyObject *GiveBaseForPlane(PyObject *normalVector) throw(INTERP_KERNEL::Exception) + static PyObject *GiveBaseForPlane(PyObject *normalVector) { const char msg[]="Python wrap of DataArrayDouble::GiveBaseForPlane : "; double val,val2; @@ -1207,7 +1207,7 @@ namespace MEDCoupling return self->fromCartToCylGiven(coords,centerPtr,vectorPtr); } - DataArrayDouble *renumber(PyObject *li) throw(INTERP_KERNEL::Exception) + DataArrayDouble *renumber(PyObject *li) { void *da=0; int res1=SWIG_ConvertPtr(li,&da,SWIGTYPE_p_MEDCoupling__DataArrayInt, 0 | 0 ); @@ -1236,7 +1236,7 @@ namespace MEDCoupling } } - DataArrayDouble *renumberR(PyObject *li) throw(INTERP_KERNEL::Exception) + DataArrayDouble *renumberR(PyObject *li) { void *da=0; int res1=SWIG_ConvertPtr(li,&da,SWIGTYPE_p_MEDCoupling__DataArrayInt, 0 | 0 ); @@ -1265,7 +1265,7 @@ namespace MEDCoupling } } - DataArrayDouble *renumberAndReduce(PyObject *li, int newNbOfTuple) throw(INTERP_KERNEL::Exception) + DataArrayDouble *renumberAndReduce(PyObject *li, int newNbOfTuple) { void *da=0; int res1=SWIG_ConvertPtr(li,&da,SWIGTYPE_p_MEDCoupling__DataArrayInt, 0 | 0 ); @@ -1294,7 +1294,7 @@ namespace MEDCoupling } } - PyObject *minimalDistanceTo(const DataArrayDouble *other) const throw(INTERP_KERNEL::Exception) + PyObject *minimalDistanceTo(const DataArrayDouble *other) const { int thisTupleId,otherTupleId; double r0=self->minimalDistanceTo(other,thisTupleId,otherTupleId); @@ -1305,7 +1305,7 @@ namespace MEDCoupling return ret; } - PyObject *getMaxValue() const throw(INTERP_KERNEL::Exception) + PyObject *getMaxValue() const { int tmp; double r1=self->getMaxValue(tmp); @@ -1315,7 +1315,7 @@ namespace MEDCoupling return ret; } - PyObject *getMaxAbsValue() const throw(INTERP_KERNEL::Exception) + PyObject *getMaxAbsValue() const { std::size_t tmp; double r1=self->getMaxAbsValue(tmp); @@ -1325,7 +1325,7 @@ namespace MEDCoupling return ret; } - PyObject *getMaxValue2() const throw(INTERP_KERNEL::Exception) + PyObject *getMaxValue2() const { DataArrayInt *tmp; double r1=self->getMaxValue2(tmp); @@ -1335,7 +1335,7 @@ namespace MEDCoupling return ret; } - PyObject *getMinValue() const throw(INTERP_KERNEL::Exception) + PyObject *getMinValue() const { int tmp; double r1=self->getMinValue(tmp); @@ -1345,7 +1345,7 @@ namespace MEDCoupling return ret; } - PyObject *getMinValue2() const throw(INTERP_KERNEL::Exception) + PyObject *getMinValue2() const { DataArrayInt *tmp; double r1=self->getMinValue2(tmp); @@ -1355,7 +1355,7 @@ namespace MEDCoupling return ret; } - PyObject *getMinMaxPerComponent() const throw(INTERP_KERNEL::Exception) + PyObject *getMinMaxPerComponent() const { int nbOfCompo(self->getNumberOfComponents()); INTERP_KERNEL::AutoPtr tmp(new double[2*nbOfCompo]); @@ -1364,7 +1364,7 @@ namespace MEDCoupling return ret; } - PyObject *normMaxPerComponent() const throw(INTERP_KERNEL::Exception) + PyObject *normMaxPerComponent() const { int nbOfCompo(self->getNumberOfComponents()); INTERP_KERNEL::AutoPtr tmp(new double[nbOfCompo]); @@ -1372,7 +1372,7 @@ namespace MEDCoupling return convertDblArrToPyList(tmp,nbOfCompo); } - PyObject *accumulate() const throw(INTERP_KERNEL::Exception) + PyObject *accumulate() const { int sz=self->getNumberOfComponents(); INTERP_KERNEL::AutoPtr tmp=new double[sz]; @@ -1380,7 +1380,7 @@ namespace MEDCoupling return convertDblArrToPyList(tmp,sz); } - DataArrayDouble *accumulatePerChunck(PyObject *indexArr) const throw(INTERP_KERNEL::Exception) + DataArrayDouble *accumulatePerChunck(PyObject *indexArr) const { int sw,sz,val; std::vector val2; @@ -1388,7 +1388,7 @@ namespace MEDCoupling return self->accumulatePerChunck(bg,bg+sz); } - PyObject *findCommonTuples(double prec, int limitNodeId=-1) const throw(INTERP_KERNEL::Exception) + PyObject *findCommonTuples(double prec, int limitNodeId=-1) const { DataArrayInt *comm, *commIndex; self->findCommonTuples(prec,limitNodeId,comm,commIndex); @@ -1398,7 +1398,7 @@ namespace MEDCoupling return res; } - PyObject *distanceToTuple(PyObject *tuple) const throw(INTERP_KERNEL::Exception) + PyObject *distanceToTuple(PyObject *tuple) const { double val; DataArrayDouble *a; @@ -1415,14 +1415,14 @@ namespace MEDCoupling return ret; } - void setSelectedComponents(const DataArrayDouble *a, PyObject *li) throw(INTERP_KERNEL::Exception) + void setSelectedComponents(const DataArrayDouble *a, PyObject *li) { std::vector tmp; convertPyToNewIntArr3(li,tmp); self->setSelectedComponents(a,tmp); } - PyObject *explodeComponents() const throw(INTERP_KERNEL::Exception) + PyObject *explodeComponents() const { std::vector< MCAuto > retCpp(self->explodeComponents()); std::size_t sz(retCpp.size()); @@ -1432,7 +1432,7 @@ namespace MEDCoupling return res; } - PyObject *getTuple(int tupleId) throw(INTERP_KERNEL::Exception) + PyObject *getTuple(int tupleId) { int sz=self->getNumberOfComponents(); INTERP_KERNEL::AutoPtr tmp=new double[sz]; @@ -1440,21 +1440,21 @@ namespace MEDCoupling return convertDblArrToPyList(tmp,sz); } - static DataArrayDouble *Aggregate(PyObject *li) throw(INTERP_KERNEL::Exception) + static DataArrayDouble *Aggregate(PyObject *li) { std::vector tmp; convertFromPyObjVectorOfObj(li,SWIGTYPE_p_MEDCoupling__DataArrayDouble,"DataArrayDouble",tmp); return DataArrayDouble::Aggregate(tmp); } - static DataArrayDouble *Meld(PyObject *li) throw(INTERP_KERNEL::Exception) + static DataArrayDouble *Meld(PyObject *li) { std::vector tmp; convertFromPyObjVectorOfObj(li,SWIGTYPE_p_MEDCoupling__DataArrayDouble,"DataArrayDouble",tmp); return DataArrayDouble::Meld(tmp); } - PyObject *computeTupleIdsNearTuples(PyObject *pt, double eps) const throw(INTERP_KERNEL::Exception) + PyObject *computeTupleIdsNearTuples(PyObject *pt, double eps) const { double val; DataArrayDouble *a; @@ -1473,7 +1473,7 @@ namespace MEDCoupling return ret; } - PyObject *areIncludedInMe(const DataArrayDouble *other, double prec) const throw(INTERP_KERNEL::Exception) + PyObject *areIncludedInMe(const DataArrayDouble *other, double prec) const { DataArrayInt *ret1=0; bool ret0=self->areIncludedInMe(other,prec,ret1); @@ -1485,22 +1485,22 @@ namespace MEDCoupling return ret; } - PyObject *__getitem__(PyObject *obj) throw(INTERP_KERNEL::Exception) + PyObject *__getitem__(PyObject *obj) { return DataArrayT__getitem(self,obj); } - DataArrayDouble *__setitem__(PyObject *obj, PyObject *value) throw(INTERP_KERNEL::Exception) + DataArrayDouble *__setitem__(PyObject *obj, PyObject *value) { return DataArrayT__setitem__(self,obj,value); } - DataArrayDouble *__neg__() const throw(INTERP_KERNEL::Exception) + DataArrayDouble *__neg__() const { return self->negate(); } - PyObject *__add__(PyObject *obj) throw(INTERP_KERNEL::Exception) + PyObject *__add__(PyObject *obj) { const char msg[]="Unexpected situation in DataArrayDouble.__add__ !"; double val; @@ -1554,7 +1554,7 @@ namespace MEDCoupling } } - DataArrayDouble *__radd__(PyObject *obj) throw(INTERP_KERNEL::Exception) + DataArrayDouble *__radd__(PyObject *obj) { const char msg[]="Unexpected situation in __radd__ !"; double val; @@ -1586,12 +1586,12 @@ namespace MEDCoupling } } - PyObject *___iadd___(PyObject *trueSelf, PyObject *obj) throw(INTERP_KERNEL::Exception) + PyObject *___iadd___(PyObject *trueSelf, PyObject *obj) { return DataArrayT_iadd(trueSelf,obj,self); } - PyObject *__sub__(PyObject *obj) throw(INTERP_KERNEL::Exception) + PyObject *__sub__(PyObject *obj) { const char msg[]="Unexpected situation in __sub__ !"; double val; @@ -1645,7 +1645,7 @@ namespace MEDCoupling } } - DataArrayDouble *__rsub__(PyObject *obj) throw(INTERP_KERNEL::Exception) + DataArrayDouble *__rsub__(PyObject *obj) { const char msg[]="Unexpected situation in __rsub__ !"; double val; @@ -1677,12 +1677,12 @@ namespace MEDCoupling } } - PyObject *___isub___(PyObject *trueSelf, PyObject *obj) throw(INTERP_KERNEL::Exception) + PyObject *___isub___(PyObject *trueSelf, PyObject *obj) { return DataArrayT_isub(trueSelf,obj,self); } - PyObject *__mul__(PyObject *obj) throw(INTERP_KERNEL::Exception) + PyObject *__mul__(PyObject *obj) { const char msg[]="Unexpected situation in __mul__ !"; double val; @@ -1736,17 +1736,17 @@ namespace MEDCoupling } } - DataArrayDouble *__rmul__(PyObject *obj) throw(INTERP_KERNEL::Exception) + DataArrayDouble *__rmul__(PyObject *obj) { return DataArrayFPT_rmul(self,obj); } - PyObject *___imul___(PyObject *trueSelf, PyObject *obj) throw(INTERP_KERNEL::Exception) + PyObject *___imul___(PyObject *trueSelf, PyObject *obj) { return DataArrayT_imul(trueSelf,obj,self); } - PyObject *__div__(PyObject *obj) throw(INTERP_KERNEL::Exception) + PyObject *__div__(PyObject *obj) { const char msg[]="Unexpected situation in __div__ !"; double val; @@ -1802,7 +1802,7 @@ namespace MEDCoupling } } - DataArrayDouble *__rdiv__(PyObject *obj) throw(INTERP_KERNEL::Exception) + DataArrayDouble *__rdiv__(PyObject *obj) { const char msg[]="Unexpected situation in __rdiv__ !"; double val; @@ -1834,12 +1834,12 @@ namespace MEDCoupling } } - PyObject *___idiv___(PyObject *trueSelf, PyObject *obj) throw(INTERP_KERNEL::Exception) + PyObject *___idiv___(PyObject *trueSelf, PyObject *obj) { return DataArrayT_idiv(trueSelf,obj,self); } - DataArrayDouble *__pow__(PyObject *obj) throw(INTERP_KERNEL::Exception) + DataArrayDouble *__pow__(PyObject *obj) { const char msg[]="Unexpected situation in __pow__ !"; double val; @@ -1875,7 +1875,7 @@ namespace MEDCoupling } } - DataArrayDouble *__rpow__(PyObject *obj) throw(INTERP_KERNEL::Exception) + DataArrayDouble *__rpow__(PyObject *obj) { const char msg[]="Unexpected situation in __rpow__ !"; double val; @@ -1907,7 +1907,7 @@ namespace MEDCoupling } } - PyObject *___ipow___(PyObject *trueSelf, PyObject *obj) throw(INTERP_KERNEL::Exception) + PyObject *___ipow___(PyObject *trueSelf, PyObject *obj) { const char msg[]="Unexpected situation in __ipow__ !"; double val; @@ -1960,7 +1960,7 @@ namespace MEDCoupling return ret; } - PyObject *maxPerTupleWithCompoId() const throw(INTERP_KERNEL::Exception) + PyObject *maxPerTupleWithCompoId() const { DataArrayInt *ret1=0; DataArrayDouble *ret0=self->maxPerTupleWithCompoId(ret1); @@ -1998,26 +1998,26 @@ namespace MEDCoupling class DataArrayDoubleTuple { public: - int getNumberOfCompo() const throw(INTERP_KERNEL::Exception); - DataArrayDouble *buildDADouble(int nbOfTuples, int nbOfCompo) const throw(INTERP_KERNEL::Exception); + int getNumberOfCompo() const; + DataArrayDouble *buildDADouble(int nbOfTuples, int nbOfCompo) const; %extend { - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->repr(); } - double __float__() const throw(INTERP_KERNEL::Exception) + double __float__() const { return self->doubleValue(); } - DataArrayDouble *buildDADouble() throw(INTERP_KERNEL::Exception) + DataArrayDouble *buildDADouble() { return self->buildDADouble(1,self->getNumberOfCompo()); } - PyObject *___iadd___(PyObject *trueSelf, PyObject *obj) throw(INTERP_KERNEL::Exception) + PyObject *___iadd___(PyObject *trueSelf, PyObject *obj) { MCAuto ret=self->buildDADouble(1,self->getNumberOfCompo()); MEDCoupling_DataArrayDouble____iadd___(ret,0,obj); @@ -2025,7 +2025,7 @@ namespace MEDCoupling return trueSelf; } - PyObject *___isub___(PyObject *trueSelf, PyObject *obj) throw(INTERP_KERNEL::Exception) + PyObject *___isub___(PyObject *trueSelf, PyObject *obj) { MCAuto ret=self->buildDADouble(1,self->getNumberOfCompo()); MEDCoupling_DataArrayDouble____isub___(ret,0,obj); @@ -2033,7 +2033,7 @@ namespace MEDCoupling return trueSelf; } - PyObject *___imul___(PyObject *trueSelf, PyObject *obj) throw(INTERP_KERNEL::Exception) + PyObject *___imul___(PyObject *trueSelf, PyObject *obj) { MCAuto ret=self->buildDADouble(1,self->getNumberOfCompo()); MEDCoupling_DataArrayDouble____imul___(ret,0,obj); @@ -2041,7 +2041,7 @@ namespace MEDCoupling return trueSelf; } - PyObject *___idiv___(PyObject *trueSelf, PyObject *obj) throw(INTERP_KERNEL::Exception) + PyObject *___idiv___(PyObject *trueSelf, PyObject *obj) { MCAuto ret=self->buildDADouble(1,self->getNumberOfCompo()); MEDCoupling_DataArrayDouble____idiv___(ret,0,obj); @@ -2049,12 +2049,12 @@ namespace MEDCoupling return trueSelf; } - PyObject *__len__() throw(INTERP_KERNEL::Exception) + PyObject *__len__() { return PyInt_FromLong(self->getNumberOfCompo()); } - PyObject *__getitem__(PyObject *obj) throw(INTERP_KERNEL::Exception) + PyObject *__getitem__(PyObject *obj) { const char msg2[]="DataArrayDoubleTuple::__getitem__ : Mismatch of slice values in 2nd parameter (components) !"; int sw; @@ -2119,7 +2119,7 @@ namespace MEDCoupling } } - DataArrayDoubleTuple *__setitem__(PyObject *obj, PyObject *value) throw(INTERP_KERNEL::Exception) + DataArrayDoubleTuple *__setitem__(PyObject *obj, PyObject *value) { const char msg[]="DataArrayDoubleTuple::__setitem__ : unrecognized type entered, int, slice, list, tuple !"; const char msg2[]="DataArrayDoubleTuple::__setitem__ : Mismatch of slice values in 2nd parameter (components) !"; @@ -2280,150 +2280,150 @@ namespace MEDCoupling { public: static DataArrayInt *New(); - int intValue() const throw(INTERP_KERNEL::Exception); - int getHashCode() const throw(INTERP_KERNEL::Exception); - bool empty() const throw(INTERP_KERNEL::Exception); - void aggregate(const DataArrayInt *other) throw(INTERP_KERNEL::Exception); - DataArrayInt *performCopyOrIncrRef(bool deepCopy) const throw(INTERP_KERNEL::Exception); - void deepCopyFrom(const DataArrayInt& other) throw(INTERP_KERNEL::Exception); - void reserve(std::size_t nbOfElems) throw(INTERP_KERNEL::Exception); - void pushBackSilent(int val) throw(INTERP_KERNEL::Exception); - int popBackSilent() throw(INTERP_KERNEL::Exception); - void pack() const throw(INTERP_KERNEL::Exception); - void allocIfNecessary(int nbOfTuple, int nbOfCompo) throw(INTERP_KERNEL::Exception); - bool isEqual(const DataArrayInt& other) const throw(INTERP_KERNEL::Exception); - bool isEqualWithoutConsideringStr(const DataArrayInt& other) const throw(INTERP_KERNEL::Exception); - bool isEqualWithoutConsideringStrAndOrder(const DataArrayInt& other) const throw(INTERP_KERNEL::Exception); - DataArrayInt *buildPermutationArr(const DataArrayInt& other) const throw(INTERP_KERNEL::Exception); - DataArrayInt *sumPerTuple() const throw(INTERP_KERNEL::Exception); - void sort(bool asc=true) throw(INTERP_KERNEL::Exception); - void reverse() throw(INTERP_KERNEL::Exception); - void checkMonotonic(bool increasing) const throw(INTERP_KERNEL::Exception); - bool isMonotonic(bool increasing) const throw(INTERP_KERNEL::Exception); - void checkStrictlyMonotonic(bool increasing) const throw(INTERP_KERNEL::Exception); - bool isStrictlyMonotonic(bool increasing) const throw(INTERP_KERNEL::Exception); - void fillWithZero() throw(INTERP_KERNEL::Exception); - void fillWithValue(int val) throw(INTERP_KERNEL::Exception); - void iota(int init=0) throw(INTERP_KERNEL::Exception); - std::string repr() const throw(INTERP_KERNEL::Exception); - std::string reprZip() const throw(INTERP_KERNEL::Exception); - std::string reprNotTooLong() const throw(INTERP_KERNEL::Exception); - DataArrayInt *invertArrayO2N2N2O(int newNbOfElem) const throw(INTERP_KERNEL::Exception); - DataArrayInt *invertArrayN2O2O2N(int oldNbOfElem) const throw(INTERP_KERNEL::Exception); - DataArrayInt *invertArrayO2N2N2OBis(int newNbOfElem) const throw(INTERP_KERNEL::Exception); - MCAuto< MapII > invertArrayN2O2O2NOptimized() const throw(INTERP_KERNEL::Exception); - MCAuto< MapII > giveN2OOptimized() const throw(INTERP_KERNEL::Exception); - DataArrayInt *indicesOfSubPart(const DataArrayInt& partOfThis) const throw(INTERP_KERNEL::Exception); - DataArrayInt *fromNoInterlace() const throw(INTERP_KERNEL::Exception); - DataArrayInt *toNoInterlace() const throw(INTERP_KERNEL::Exception); - DataArrayInt *selectByTupleIdSafeSlice(int bg, int end, int step) const throw(INTERP_KERNEL::Exception); - DataArrayInt *checkAndPreparePermutation() const throw(INTERP_KERNEL::Exception); - DataArrayInt *buildPermArrPerLevel() const throw(INTERP_KERNEL::Exception); - bool isIota(int sizeExpected) const throw(INTERP_KERNEL::Exception); - bool isUniform(int val) const throw(INTERP_KERNEL::Exception); - int checkUniformAndGuess() const throw(INTERP_KERNEL::Exception); - bool hasUniqueValues() const throw(INTERP_KERNEL::Exception); - DataArrayInt *subArray(int tupleIdBg, int tupleIdEnd=-1) const throw(INTERP_KERNEL::Exception); - void transpose() throw(INTERP_KERNEL::Exception); - DataArrayInt *changeNbOfComponents(int newNbOfComp, int dftValue) const throw(INTERP_KERNEL::Exception); - void meldWith(const DataArrayInt *other) throw(INTERP_KERNEL::Exception); - void setPartOfValues1(const DataArrayInt *a, int bgTuples, int endTuples, int stepTuples, int bgComp, int endComp, int stepComp, bool strictCompoCompare=true) throw(INTERP_KERNEL::Exception); - void setPartOfValuesSimple1(int a, int bgTuples, int endTuples, int stepTuples, int bgComp, int endComp, int stepComp) throw(INTERP_KERNEL::Exception); - void setPartOfValuesAdv(const DataArrayInt *a, const DataArrayInt *tuplesSelec) throw(INTERP_KERNEL::Exception); - void getTuple(int tupleId, int *res) const throw(INTERP_KERNEL::Exception); - int getIJ(int tupleId, int compoId) const throw(INTERP_KERNEL::Exception); - int getIJSafe(int tupleId, int compoId) const throw(INTERP_KERNEL::Exception); - int front() const throw(INTERP_KERNEL::Exception); - int back() const throw(INTERP_KERNEL::Exception); - void setIJ(int tupleId, int compoId, int newVal) throw(INTERP_KERNEL::Exception); - void setIJSilent(int tupleId, int compoId, int newVal) throw(INTERP_KERNEL::Exception); - int *getPointer() throw(INTERP_KERNEL::Exception); - const int *getConstPointer() const throw(INTERP_KERNEL::Exception); - DataArrayIntIterator *iterator() throw(INTERP_KERNEL::Exception); - const int *begin() const throw(INTERP_KERNEL::Exception); - const int *end() const throw(INTERP_KERNEL::Exception); - DataArrayInt *findIdsEqual(int val) const throw(INTERP_KERNEL::Exception); - DataArrayInt *findIdsNotEqual(int val) const throw(INTERP_KERNEL::Exception); - int changeValue(int oldValue, int newValue) throw(INTERP_KERNEL::Exception); - int findIdFirstEqualTuple(const std::vector& tupl) const throw(INTERP_KERNEL::Exception); - int findIdFirstEqual(int value) const throw(INTERP_KERNEL::Exception); - int findIdFirstEqual(const std::vector& vals) const throw(INTERP_KERNEL::Exception); - int findIdSequence(const std::vector& vals) const throw(INTERP_KERNEL::Exception); - bool presenceOfTuple(const std::vector& tupl) const throw(INTERP_KERNEL::Exception); - bool presenceOfValue(int value) const throw(INTERP_KERNEL::Exception); - bool presenceOfValue(const std::vector& vals) const throw(INTERP_KERNEL::Exception); - int count(int value) const throw(INTERP_KERNEL::Exception); - int accumulate(int compId) const throw(INTERP_KERNEL::Exception); - int getMaxValueInArray() const throw(INTERP_KERNEL::Exception); - int getMaxAbsValueInArray() const throw(INTERP_KERNEL::Exception); - int getMinValueInArray() const throw(INTERP_KERNEL::Exception); - void abs() throw(INTERP_KERNEL::Exception); - DataArrayInt *computeAbs() const throw(INTERP_KERNEL::Exception); - void applyLin(int a, int b, int compoId) throw(INTERP_KERNEL::Exception); - void applyLin(int a, int b) throw(INTERP_KERNEL::Exception); - void applyInv(int numerator) throw(INTERP_KERNEL::Exception); - DataArrayInt *negate() const throw(INTERP_KERNEL::Exception); - void applyDivideBy(int val) throw(INTERP_KERNEL::Exception); - void applyModulus(int val) throw(INTERP_KERNEL::Exception); - void applyRModulus(int val) throw(INTERP_KERNEL::Exception); - void applyPow(int val) throw(INTERP_KERNEL::Exception); - void applyRPow(int val) throw(INTERP_KERNEL::Exception); - DataArrayInt *findIdsInRange(int vmin, int vmax) const throw(INTERP_KERNEL::Exception); - DataArrayInt *findIdsNotInRange(int vmin, int vmax) const throw(INTERP_KERNEL::Exception); - DataArrayInt *findIdsStrictlyNegative() const throw(INTERP_KERNEL::Exception); - bool checkAllIdsInRange(int vmin, int vmax) const throw(INTERP_KERNEL::Exception); - static DataArrayInt *Aggregate(const DataArrayInt *a1, const DataArrayInt *a2, int offsetA2) throw(INTERP_KERNEL::Exception); - static DataArrayInt *Meld(const DataArrayInt *a1, const DataArrayInt *a2) throw(INTERP_KERNEL::Exception); - static DataArrayInt *MakePartition(const std::vector& groups, int newNb, std::vector< std::vector >& fidsOfGroups) throw(INTERP_KERNEL::Exception); - static DataArrayInt *BuildUnion(const std::vector& arr) throw(INTERP_KERNEL::Exception); - static DataArrayInt *BuildIntersection(const std::vector& arr) throw(INTERP_KERNEL::Exception); - static DataArrayInt *FindPermutationFromFirstToSecond(const DataArrayInt *ids1, const DataArrayInt *ids2) throw(INTERP_KERNEL::Exception); - DataArrayInt *buildComplement(int nbOfElement) const throw(INTERP_KERNEL::Exception); - DataArrayInt *buildSubstraction(const DataArrayInt *other) const throw(INTERP_KERNEL::Exception); - DataArrayInt *buildSubstractionOptimized(const DataArrayInt *other) const throw(INTERP_KERNEL::Exception); - DataArrayInt *buildUnion(const DataArrayInt *other) const throw(INTERP_KERNEL::Exception); - DataArrayInt *buildIntersection(const DataArrayInt *other) const throw(INTERP_KERNEL::Exception); - DataArrayInt *buildUnique() const throw(INTERP_KERNEL::Exception); - DataArrayInt *buildUniqueNotSorted() const throw(INTERP_KERNEL::Exception); - DataArrayInt *deltaShiftIndex() const throw(INTERP_KERNEL::Exception); - void computeOffsets() throw(INTERP_KERNEL::Exception); - void computeOffsetsFull() throw(INTERP_KERNEL::Exception); - DataArrayInt *buildExplicitArrByRanges(const DataArrayInt *offsets) const throw(INTERP_KERNEL::Exception); - DataArrayInt *findRangeIdForEachTuple(const DataArrayInt *ranges) const throw(INTERP_KERNEL::Exception); - DataArrayInt *findIdInRangeForEachTuple(const DataArrayInt *ranges) const throw(INTERP_KERNEL::Exception); - void sortEachPairToMakeALinkedList() throw(INTERP_KERNEL::Exception); - DataArrayInt *duplicateEachTupleNTimes(int nbTimes) const throw(INTERP_KERNEL::Exception); - DataArrayInt *getDifferentValues() const throw(INTERP_KERNEL::Exception); - static DataArrayInt *Add(const DataArrayInt *a1, const DataArrayInt *a2) throw(INTERP_KERNEL::Exception); - void addEqual(const DataArrayInt *other) throw(INTERP_KERNEL::Exception); - static DataArrayInt *Substract(const DataArrayInt *a1, const DataArrayInt *a2) throw(INTERP_KERNEL::Exception); - void substractEqual(const DataArrayInt *other) throw(INTERP_KERNEL::Exception); - static DataArrayInt *Multiply(const DataArrayInt *a1, const DataArrayInt *a2) throw(INTERP_KERNEL::Exception); - void multiplyEqual(const DataArrayInt *other) throw(INTERP_KERNEL::Exception); - static DataArrayInt *Divide(const DataArrayInt *a1, const DataArrayInt *a2) throw(INTERP_KERNEL::Exception); - void divideEqual(const DataArrayInt *other) throw(INTERP_KERNEL::Exception); - static DataArrayInt *Modulus(const DataArrayInt *a1, const DataArrayInt *a2) throw(INTERP_KERNEL::Exception); - void modulusEqual(const DataArrayInt *other) throw(INTERP_KERNEL::Exception); - static DataArrayInt *Pow(const DataArrayInt *a1, const DataArrayInt *a2) throw(INTERP_KERNEL::Exception); - void powEqual(const DataArrayInt *other) throw(INTERP_KERNEL::Exception); - MCAuto fromLinkedListOfPairToList() const throw(INTERP_KERNEL::Exception); - MCAuto findIdsGreaterOrEqualTo(int val) const throw(INTERP_KERNEL::Exception); - MCAuto findIdsGreaterThan(int val) const throw(INTERP_KERNEL::Exception); - MCAuto findIdsLowerOrEqualTo(int val) const throw(INTERP_KERNEL::Exception); - MCAuto findIdsLowerThan(int val) const throw(INTERP_KERNEL::Exception); - MCAuto selectPartDef(const PartDefinition* pd) const throw(INTERP_KERNEL::Exception); - MCAuto convertToDblArr() const throw(INTERP_KERNEL::Exception); - MCAuto convertToFloatArr() const throw(INTERP_KERNEL::Exception); + int intValue() const; + int getHashCode() const; + bool empty() const; + void aggregate(const DataArrayInt *other); + DataArrayInt *performCopyOrIncrRef(bool deepCopy) const; + void deepCopyFrom(const DataArrayInt& other); + void reserve(std::size_t nbOfElems); + void pushBackSilent(int val); + int popBackSilent(); + void pack() const; + void allocIfNecessary(int nbOfTuple, int nbOfCompo); + bool isEqual(const DataArrayInt& other) const; + bool isEqualWithoutConsideringStr(const DataArrayInt& other) const; + bool isEqualWithoutConsideringStrAndOrder(const DataArrayInt& other) const; + DataArrayInt *buildPermutationArr(const DataArrayInt& other) const; + DataArrayInt *sumPerTuple() const; + void sort(bool asc=true); + void reverse(); + void checkMonotonic(bool increasing) const; + bool isMonotonic(bool increasing) const; + void checkStrictlyMonotonic(bool increasing) const; + bool isStrictlyMonotonic(bool increasing) const; + void fillWithZero(); + void fillWithValue(int val); + void iota(int init=0); + std::string repr() const; + std::string reprZip() const; + std::string reprNotTooLong() const; + DataArrayInt *invertArrayO2N2N2O(int newNbOfElem) const; + DataArrayInt *invertArrayN2O2O2N(int oldNbOfElem) const; + DataArrayInt *invertArrayO2N2N2OBis(int newNbOfElem) const; + MCAuto< MapII > invertArrayN2O2O2NOptimized() const; + MCAuto< MapII > giveN2OOptimized() const; + DataArrayInt *indicesOfSubPart(const DataArrayInt& partOfThis) const; + DataArrayInt *fromNoInterlace() const; + DataArrayInt *toNoInterlace() const; + DataArrayInt *selectByTupleIdSafeSlice(int bg, int end, int step) const; + DataArrayInt *checkAndPreparePermutation() const; + DataArrayInt *buildPermArrPerLevel() const; + bool isIota(int sizeExpected) const; + bool isUniform(int val) const; + int checkUniformAndGuess() const; + bool hasUniqueValues() const; + DataArrayInt *subArray(int tupleIdBg, int tupleIdEnd=-1) const; + void transpose(); + DataArrayInt *changeNbOfComponents(int newNbOfComp, int dftValue) const; + void meldWith(const DataArrayInt *other); + void setPartOfValues1(const DataArrayInt *a, int bgTuples, int endTuples, int stepTuples, int bgComp, int endComp, int stepComp, bool strictCompoCompare=true); + void setPartOfValuesSimple1(int a, int bgTuples, int endTuples, int stepTuples, int bgComp, int endComp, int stepComp); + void setPartOfValuesAdv(const DataArrayInt *a, const DataArrayInt *tuplesSelec); + void getTuple(int tupleId, int *res) const; + int getIJ(int tupleId, int compoId) const; + int getIJSafe(int tupleId, int compoId) const; + int front() const; + int back() const; + void setIJ(int tupleId, int compoId, int newVal); + void setIJSilent(int tupleId, int compoId, int newVal); + int *getPointer(); + const int *getConstPointer() const; + DataArrayIntIterator *iterator(); + const int *begin() const; + const int *end() const; + DataArrayInt *findIdsEqual(int val) const; + DataArrayInt *findIdsNotEqual(int val) const; + int changeValue(int oldValue, int newValue); + int findIdFirstEqualTuple(const std::vector& tupl) const; + int findIdFirstEqual(int value) const; + int findIdFirstEqual(const std::vector& vals) const; + int findIdSequence(const std::vector& vals) const; + bool presenceOfTuple(const std::vector& tupl) const; + bool presenceOfValue(int value) const; + bool presenceOfValue(const std::vector& vals) const; + int count(int value) const; + int accumulate(int compId) const; + int getMaxValueInArray() const; + int getMaxAbsValueInArray() const; + int getMinValueInArray() const; + void abs(); + DataArrayInt *computeAbs() const; + void applyLin(int a, int b, int compoId); + void applyLin(int a, int b); + void applyInv(int numerator); + DataArrayInt *negate() const; + void applyDivideBy(int val); + void applyModulus(int val); + void applyRModulus(int val); + void applyPow(int val); + void applyRPow(int val); + DataArrayInt *findIdsInRange(int vmin, int vmax) const; + DataArrayInt *findIdsNotInRange(int vmin, int vmax) const; + DataArrayInt *findIdsStrictlyNegative() const; + bool checkAllIdsInRange(int vmin, int vmax) const; + static DataArrayInt *Aggregate(const DataArrayInt *a1, const DataArrayInt *a2, int offsetA2); + static DataArrayInt *Meld(const DataArrayInt *a1, const DataArrayInt *a2); + static DataArrayInt *MakePartition(const std::vector& groups, int newNb, std::vector< std::vector >& fidsOfGroups); + static DataArrayInt *BuildUnion(const std::vector& arr); + static DataArrayInt *BuildIntersection(const std::vector& arr); + static DataArrayInt *FindPermutationFromFirstToSecond(const DataArrayInt *ids1, const DataArrayInt *ids2); + DataArrayInt *buildComplement(int nbOfElement) const; + DataArrayInt *buildSubstraction(const DataArrayInt *other) const; + DataArrayInt *buildSubstractionOptimized(const DataArrayInt *other) const; + DataArrayInt *buildUnion(const DataArrayInt *other) const; + DataArrayInt *buildIntersection(const DataArrayInt *other) const; + DataArrayInt *buildUnique() const; + DataArrayInt *buildUniqueNotSorted() const; + DataArrayInt *deltaShiftIndex() const; + void computeOffsets(); + void computeOffsetsFull(); + DataArrayInt *buildExplicitArrByRanges(const DataArrayInt *offsets) const; + DataArrayInt *findRangeIdForEachTuple(const DataArrayInt *ranges) const; + DataArrayInt *findIdInRangeForEachTuple(const DataArrayInt *ranges) const; + void sortEachPairToMakeALinkedList(); + DataArrayInt *duplicateEachTupleNTimes(int nbTimes) const; + DataArrayInt *getDifferentValues() const; + static DataArrayInt *Add(const DataArrayInt *a1, const DataArrayInt *a2); + void addEqual(const DataArrayInt *other); + static DataArrayInt *Substract(const DataArrayInt *a1, const DataArrayInt *a2); + void substractEqual(const DataArrayInt *other); + static DataArrayInt *Multiply(const DataArrayInt *a1, const DataArrayInt *a2); + void multiplyEqual(const DataArrayInt *other); + static DataArrayInt *Divide(const DataArrayInt *a1, const DataArrayInt *a2); + void divideEqual(const DataArrayInt *other); + static DataArrayInt *Modulus(const DataArrayInt *a1, const DataArrayInt *a2); + void modulusEqual(const DataArrayInt *other); + static DataArrayInt *Pow(const DataArrayInt *a1, const DataArrayInt *a2); + void powEqual(const DataArrayInt *other); + MCAuto fromLinkedListOfPairToList() const; + MCAuto findIdsGreaterOrEqualTo(int val) const; + MCAuto findIdsGreaterThan(int val) const; + MCAuto findIdsLowerOrEqualTo(int val) const; + MCAuto findIdsLowerThan(int val) const; + MCAuto selectPartDef(const PartDefinition* pd) const; + MCAuto convertToDblArr() const; + MCAuto convertToFloatArr() const; public: - static DataArrayInt *Range(int begin, int end, int step) throw(INTERP_KERNEL::Exception); + static DataArrayInt *Range(int begin, int end, int step); %extend { - DataArrayInt() throw(INTERP_KERNEL::Exception) + DataArrayInt() { return DataArrayInt::New(); } - static DataArrayInt *New(PyObject *elt0, PyObject *nbOfTuples=0, PyObject *nbOfComp=0) throw(INTERP_KERNEL::Exception) + static DataArrayInt *New(PyObject *elt0, PyObject *nbOfTuples=0, PyObject *nbOfComp=0) { const char *msgBase="MEDCoupling::DataArrayInt::New : Available API are : \n-DataArrayInt.New()\n-DataArrayInt.New([1,3,4])\n-DataArrayInt.New([1,3,4],3)\n-DataArrayInt.New([1,3,4,5],2,2)\n-DataArrayInt.New([1,3,4,5,7,8],3,2)\n-DataArrayInt.New([(1,3),(4,5),(7,8)])\n-DataArrayInt.New(5)\n-DataArrayInt.New(5,2)"; std::string msg(msgBase); @@ -2518,17 +2518,17 @@ namespace MEDCoupling throw INTERP_KERNEL::Exception(msg.c_str());//to make g++ happy } - DataArrayInt(PyObject *elt0, PyObject *nbOfTuples=0, PyObject *nbOfComp=0) throw(INTERP_KERNEL::Exception) + DataArrayInt(PyObject *elt0, PyObject *nbOfTuples=0, PyObject *nbOfComp=0) { return MEDCoupling_DataArrayInt_New__SWIG_1(elt0,nbOfTuples,nbOfComp); } - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->reprNotTooLong(); } - int __len__() const throw(INTERP_KERNEL::Exception) + int __len__() const { if(self->isAllocated()) { @@ -2540,17 +2540,17 @@ namespace MEDCoupling } } - int __int__() const throw(INTERP_KERNEL::Exception) + int __int__() const { return self->intValue(); } - DataArrayIntIterator *__iter__() throw(INTERP_KERNEL::Exception) + DataArrayIntIterator *__iter__() { return self->iterator(); } - PyObject *accumulate() const throw(INTERP_KERNEL::Exception) + PyObject *accumulate() const { int sz=self->getNumberOfComponents(); INTERP_KERNEL::AutoPtr tmp=new int[sz]; @@ -2558,7 +2558,7 @@ namespace MEDCoupling return convertIntArrToPyList(tmp,sz); } - DataArrayInt *accumulatePerChunck(PyObject *indexArr) const throw(INTERP_KERNEL::Exception) + DataArrayInt *accumulatePerChunck(PyObject *indexArr) const { int sw,sz,val; std::vector val2; @@ -2566,7 +2566,7 @@ namespace MEDCoupling return self->accumulatePerChunck(bg,bg+sz); } - DataArrayInt *findIdsEqualTuple(PyObject *inputTuple) const throw(INTERP_KERNEL::Exception) + DataArrayInt *findIdsEqualTuple(PyObject *inputTuple) const { int sw,sz,val; std::vector val2; @@ -2574,7 +2574,7 @@ namespace MEDCoupling return self->findIdsEqualTuple(bg,bg+sz); } - DataArrayInt *findIdForEach(PyObject *vals) const throw(INTERP_KERNEL::Exception) + DataArrayInt *findIdForEach(PyObject *vals) const { int sw,sz,val; std::vector val2; @@ -2583,7 +2583,7 @@ namespace MEDCoupling return ret.retn(); } - PyObject *splitInBalancedSlices(int nbOfSlices) const throw(INTERP_KERNEL::Exception) + PyObject *splitInBalancedSlices(int nbOfSlices) const { std::vector< std::pair > slcs(self->splitInBalancedSlices(nbOfSlices)); PyObject *ret=PyList_New(slcs.size()); @@ -2592,7 +2592,7 @@ namespace MEDCoupling return ret; } - DataArrayInt *buildExplicitArrOfSliceOnScaledArr(PyObject *slic) const throw(INTERP_KERNEL::Exception) + DataArrayInt *buildExplicitArrOfSliceOnScaledArr(PyObject *slic) const { if(!PySlice_Check(slic)) throw INTERP_KERNEL::Exception("DataArrayInt::buildExplicitArrOfSliceOnScaledArr (wrap) : expecting a pyslice as second (first) parameter !"); @@ -2603,7 +2603,7 @@ namespace MEDCoupling return self->buildExplicitArrOfSliceOnScaledArr(strt,stp,step); } - PyObject *getMinMaxValues() const throw(INTERP_KERNEL::Exception) + PyObject *getMinMaxValues() const { int a,b; self->getMinMaxValues(a,b); @@ -2613,7 +2613,7 @@ namespace MEDCoupling return ret; } - static PyObject *ConvertIndexArrayToO2N(int nbOfOldTuples, PyObject *arr, PyObject *arrI) throw(INTERP_KERNEL::Exception) + static PyObject *ConvertIndexArrayToO2N(int nbOfOldTuples, PyObject *arr, PyObject *arrI) { int newNbOfTuples=-1; int szArr,szArrI,sw,iTypppArr,iTypppArrI; @@ -2627,7 +2627,7 @@ namespace MEDCoupling return ret; } - static DataArrayInt *CheckAndPreparePermutation(PyObject *arr) throw(INTERP_KERNEL::Exception) + static DataArrayInt *CheckAndPreparePermutation(PyObject *arr) { MCAuto ret(DataArrayInt::New()); int szArr,sw,iTypppArr; @@ -2638,7 +2638,7 @@ namespace MEDCoupling return ret.retn(); } - void setValues(PyObject *li, PyObject *nbOfTuples=0, PyObject *nbOfComp=0) throw(INTERP_KERNEL::Exception) + void setValues(PyObject *li, PyObject *nbOfTuples=0, PyObject *nbOfComp=0) { const char *msg="MEDCoupling::DataArrayInt::setValues : Available API are : \n-DataArrayInt.setValues([1,3,4])\n-DataArrayInt.setValues([1,3,4],3)\n-DataArrayInt.setValues([1,3,4,5],2,2)\n-DataArrayInt.New(5)\n !"; if(PyList_Check(li) || PyTuple_Check(li)) @@ -2684,20 +2684,20 @@ namespace MEDCoupling throw INTERP_KERNEL::Exception(msg); } - PyObject *getValues() const throw(INTERP_KERNEL::Exception) + PyObject *getValues() const { const int *vals=self->getConstPointer(); return convertIntArrToPyList(vals,self->getNbOfElems()); } #ifdef WITH_NUMPY - PyObject *toNumPyArray() throw(INTERP_KERNEL::Exception) // not const. It is not a bug ! + PyObject *toNumPyArray() // not const. It is not a bug ! { return ToNumPyArray(self,NPY_INT32,"DataArrayInt"); } #endif - PyObject *isEqualIfNotWhy(const DataArrayInt& other) const throw(INTERP_KERNEL::Exception) + PyObject *isEqualIfNotWhy(const DataArrayInt& other) const { std::string ret1; bool ret0=self->isEqualIfNotWhy(other,ret1); @@ -2709,7 +2709,7 @@ namespace MEDCoupling return ret; } - PyObject *getValuesAsTuple() const throw(INTERP_KERNEL::Exception) + PyObject *getValuesAsTuple() const { const int *vals=self->getConstPointer(); int nbOfComp=self->getNumberOfComponents(); @@ -2717,7 +2717,7 @@ namespace MEDCoupling return convertIntArrToPyListOfTuple(vals,nbOfComp,nbOfTuples); } - static PyObject *MakePartition(PyObject *gps, int newNb) throw(INTERP_KERNEL::Exception) + static PyObject *MakePartition(PyObject *gps, int newNb) { std::vector groups; std::vector< std::vector > fidsOfGroups; @@ -2733,7 +2733,7 @@ namespace MEDCoupling return ret; } - void transformWithIndArr(PyObject *li) throw(INTERP_KERNEL::Exception) + void transformWithIndArr(PyObject *li) { void *da=0; int res1(SWIG_ConvertPtr(li,&da,SWIGTYPE_p_MEDCoupling__DataArrayInt, 0 | 0 )); @@ -2759,7 +2759,7 @@ namespace MEDCoupling } } - DataArrayInt *findIdsEqualList(PyObject *obj) throw(INTERP_KERNEL::Exception) + DataArrayInt *findIdsEqualList(PyObject *obj) { int sw; int singleVal; @@ -2780,7 +2780,7 @@ namespace MEDCoupling } } - DataArrayInt *findIdsNotEqualList(PyObject *obj) throw(INTERP_KERNEL::Exception) + DataArrayInt *findIdsNotEqualList(PyObject *obj) { int sw; int singleVal; @@ -2801,7 +2801,7 @@ namespace MEDCoupling } } - PyObject *splitByValueRange(PyObject *li) const throw(INTERP_KERNEL::Exception) + PyObject *splitByValueRange(PyObject *li) const { DataArrayInt *ret0=0,*ret1=0,*ret2=0; void *da=0; @@ -2827,7 +2827,7 @@ namespace MEDCoupling return ret; } - DataArrayInt *transformWithIndArrR(PyObject *li) const throw(INTERP_KERNEL::Exception) + DataArrayInt *transformWithIndArrR(PyObject *li) const { void *da=0; int res1=SWIG_ConvertPtr(li,&da,SWIGTYPE_p_MEDCoupling__DataArrayInt, 0 | 0 ); @@ -2844,7 +2844,7 @@ namespace MEDCoupling } } - DataArrayInt *renumberAndReduce(PyObject *li, int newNbOfTuple) throw(INTERP_KERNEL::Exception) + DataArrayInt *renumberAndReduce(PyObject *li, int newNbOfTuple) { void *da=0; int res1=SWIG_ConvertPtr(li,&da,SWIGTYPE_p_MEDCoupling__DataArrayInt, 0 | 0 ); @@ -2873,7 +2873,7 @@ namespace MEDCoupling } } - DataArrayInt *renumber(PyObject *li) throw(INTERP_KERNEL::Exception) + DataArrayInt *renumber(PyObject *li) { void *da=0; int res1=SWIG_ConvertPtr(li,&da,SWIGTYPE_p_MEDCoupling__DataArrayInt, 0 | 0 ); @@ -2902,7 +2902,7 @@ namespace MEDCoupling } } - DataArrayInt *renumberR(PyObject *li) throw(INTERP_KERNEL::Exception) + DataArrayInt *renumberR(PyObject *li) { void *da=0; int res1=SWIG_ConvertPtr(li,&da,SWIGTYPE_p_MEDCoupling__DataArrayInt, 0 | 0 ); @@ -2931,14 +2931,14 @@ namespace MEDCoupling } } - void setSelectedComponents(const DataArrayInt *a, PyObject *li) throw(INTERP_KERNEL::Exception) + void setSelectedComponents(const DataArrayInt *a, PyObject *li) { std::vector tmp; convertPyToNewIntArr3(li,tmp); self->setSelectedComponents(a,tmp); } - PyObject *explodeComponents() const throw(INTERP_KERNEL::Exception) + PyObject *explodeComponents() const { std::vector< MCAuto > retCpp(self->explodeComponents()); std::size_t sz(retCpp.size()); @@ -2948,7 +2948,7 @@ namespace MEDCoupling return res; } - PyObject *getTuple(int tupleId) throw(INTERP_KERNEL::Exception) + PyObject *getTuple(int tupleId) { int sz=self->getNumberOfComponents(); INTERP_KERNEL::AutoPtr tmp=new int[sz]; @@ -2956,7 +2956,7 @@ namespace MEDCoupling return convertIntArrToPyList(tmp,sz); } - PyObject *changeSurjectiveFormat(int targetNb) const throw(INTERP_KERNEL::Exception) + PyObject *changeSurjectiveFormat(int targetNb) const { DataArrayInt *arr=0; DataArrayInt *arrI=0; @@ -2967,42 +2967,42 @@ namespace MEDCoupling return res; } - static DataArrayInt *Meld(PyObject *li) throw(INTERP_KERNEL::Exception) + static DataArrayInt *Meld(PyObject *li) { std::vector tmp; convertFromPyObjVectorOfObj(li,SWIGTYPE_p_MEDCoupling__DataArrayInt,"DataArrayInt",tmp); return DataArrayInt::Meld(tmp); } - static DataArrayInt *Aggregate(PyObject *li) throw(INTERP_KERNEL::Exception) + static DataArrayInt *Aggregate(PyObject *li) { std::vector tmp; convertFromPyObjVectorOfObj(li,SWIGTYPE_p_MEDCoupling__DataArrayInt,"DataArrayInt",tmp); return DataArrayInt::Aggregate(tmp); } - static DataArrayInt *AggregateIndexes(PyObject *li) throw(INTERP_KERNEL::Exception) + static DataArrayInt *AggregateIndexes(PyObject *li) { std::vector tmp; convertFromPyObjVectorOfObj(li,SWIGTYPE_p_MEDCoupling__DataArrayInt,"DataArrayInt",tmp); return DataArrayInt::AggregateIndexes(tmp); } - static DataArrayInt *BuildUnion(PyObject *li) throw(INTERP_KERNEL::Exception) + static DataArrayInt *BuildUnion(PyObject *li) { std::vector tmp; convertFromPyObjVectorOfObj(li,SWIGTYPE_p_MEDCoupling__DataArrayInt,"DataArrayInt",tmp); return DataArrayInt::BuildUnion(tmp); } - static DataArrayInt *BuildIntersection(PyObject *li) throw(INTERP_KERNEL::Exception) + static DataArrayInt *BuildIntersection(PyObject *li) { std::vector tmp; convertFromPyObjVectorOfObj(li,SWIGTYPE_p_MEDCoupling__DataArrayInt,"DataArrayInt",tmp); return DataArrayInt::BuildIntersection(tmp); } - PyObject *getMaxValue() const throw(INTERP_KERNEL::Exception) + PyObject *getMaxValue() const { int tmp; int r1=self->getMaxValue(tmp); @@ -3012,7 +3012,7 @@ namespace MEDCoupling return ret; } - PyObject *getMaxAbsValue(std::size_t& tupleId) const throw(INTERP_KERNEL::Exception) + PyObject *getMaxAbsValue(std::size_t& tupleId) const { std::size_t tmp; int r1=self->getMaxAbsValue(tmp); @@ -3022,7 +3022,7 @@ namespace MEDCoupling return ret; } - PyObject *getMinValue() const throw(INTERP_KERNEL::Exception) + PyObject *getMinValue() const { int tmp; int r1=self->getMinValue(tmp); @@ -3032,7 +3032,7 @@ namespace MEDCoupling return ret; } - int index(PyObject *obj) const throw(INTERP_KERNEL::Exception) + int index(PyObject *obj) const { int nbOfCompo=self->getNumberOfComponents(); switch(nbOfCompo) @@ -3056,7 +3056,7 @@ namespace MEDCoupling } } - bool __contains__(PyObject *obj) const throw(INTERP_KERNEL::Exception) + bool __contains__(PyObject *obj) const { int nbOfCompo=self->getNumberOfComponents(); switch(nbOfCompo) @@ -3082,7 +3082,7 @@ namespace MEDCoupling } } - PyObject *__getitem__(PyObject *obj) throw(INTERP_KERNEL::Exception) + PyObject *__getitem__(PyObject *obj) { const char msg[]="Unexpected situation in DataArrayInt::__getitem__ !"; const char msg2[]="DataArrayInt::__getitem__ : Mismatch of slice values in 2nd parameter (components) !"; @@ -3191,7 +3191,7 @@ namespace MEDCoupling } } - DataArrayInt *__setitem__(PyObject *obj, PyObject *value) throw(INTERP_KERNEL::Exception) + DataArrayInt *__setitem__(PyObject *obj, PyObject *value) { self->checkAllocated(); const char msg[]="Unexpected situation in __setitem__ !"; @@ -3601,12 +3601,12 @@ namespace MEDCoupling return self; } - DataArrayInt *__neg__() const throw(INTERP_KERNEL::Exception) + DataArrayInt *__neg__() const { return self->negate(); } - DataArrayInt *__add__(PyObject *obj) throw(INTERP_KERNEL::Exception) + DataArrayInt *__add__(PyObject *obj) { const char msg[]="Unexpected situation in __add__ !"; int val; @@ -3642,7 +3642,7 @@ namespace MEDCoupling } } - DataArrayInt *__radd__(PyObject *obj) throw(INTERP_KERNEL::Exception) + DataArrayInt *__radd__(PyObject *obj) { const char msg[]="Unexpected situation in __radd__ !"; int val; @@ -3674,7 +3674,7 @@ namespace MEDCoupling } } - PyObject *___iadd___(PyObject *trueSelf, PyObject *obj) throw(INTERP_KERNEL::Exception) + PyObject *___iadd___(PyObject *trueSelf, PyObject *obj) { const char msg[]="Unexpected situation in __iadd__ !"; int val; @@ -3716,7 +3716,7 @@ namespace MEDCoupling } } - DataArrayInt *__sub__(PyObject *obj) throw(INTERP_KERNEL::Exception) + DataArrayInt *__sub__(PyObject *obj) { const char msg[]="Unexpected situation in __sub__ !"; int val; @@ -3752,7 +3752,7 @@ namespace MEDCoupling } } - DataArrayInt *__rsub__(PyObject *obj) throw(INTERP_KERNEL::Exception) + DataArrayInt *__rsub__(PyObject *obj) { const char msg[]="Unexpected situation in __rsub__ !"; int val; @@ -3784,7 +3784,7 @@ namespace MEDCoupling } } - PyObject *___isub___(PyObject *trueSelf, PyObject *obj) throw(INTERP_KERNEL::Exception) + PyObject *___isub___(PyObject *trueSelf, PyObject *obj) { const char msg[]="Unexpected situation in __isub__ !"; int val; @@ -3826,7 +3826,7 @@ namespace MEDCoupling } } - DataArrayInt *__mul__(PyObject *obj) throw(INTERP_KERNEL::Exception) + DataArrayInt *__mul__(PyObject *obj) { const char msg[]="Unexpected situation in __mul__ !"; int val; @@ -3862,7 +3862,7 @@ namespace MEDCoupling } } - DataArrayInt *__rmul__(PyObject *obj) throw(INTERP_KERNEL::Exception) + DataArrayInt *__rmul__(PyObject *obj) { const char msg[]="Unexpected situation in __rmul__ !"; int val; @@ -3894,7 +3894,7 @@ namespace MEDCoupling } } - PyObject *___imul___(PyObject *trueSelf, PyObject *obj) throw(INTERP_KERNEL::Exception) + PyObject *___imul___(PyObject *trueSelf, PyObject *obj) { const char msg[]="Unexpected situation in __imul__ !"; int val; @@ -3936,7 +3936,7 @@ namespace MEDCoupling } } - DataArrayInt *__div__(PyObject *obj) throw(INTERP_KERNEL::Exception) + DataArrayInt *__div__(PyObject *obj) { const char msg[]="Unexpected situation in __div__ !"; int val; @@ -3972,7 +3972,7 @@ namespace MEDCoupling } } - DataArrayInt *__rdiv__(PyObject *obj) throw(INTERP_KERNEL::Exception) + DataArrayInt *__rdiv__(PyObject *obj) { const char msg[]="Unexpected situation in __rdiv__ !"; int val; @@ -4004,7 +4004,7 @@ namespace MEDCoupling } } - PyObject *___idiv___(PyObject *trueSelf, PyObject *obj) throw(INTERP_KERNEL::Exception) + PyObject *___idiv___(PyObject *trueSelf, PyObject *obj) { const char msg[]="Unexpected situation in __idiv__ !"; int val; @@ -4046,7 +4046,7 @@ namespace MEDCoupling } } - DataArrayInt *__mod__(PyObject *obj) throw(INTERP_KERNEL::Exception) + DataArrayInt *__mod__(PyObject *obj) { const char msg[]="Unexpected situation in __mod__ !"; int val; @@ -4082,7 +4082,7 @@ namespace MEDCoupling } } - DataArrayInt *__rmod__(PyObject *obj) throw(INTERP_KERNEL::Exception) + DataArrayInt *__rmod__(PyObject *obj) { const char msg[]="Unexpected situation in __rmod__ !"; int val; @@ -4118,7 +4118,7 @@ namespace MEDCoupling } } - PyObject *___imod___(PyObject *trueSelf, PyObject *obj) throw(INTERP_KERNEL::Exception) + PyObject *___imod___(PyObject *trueSelf, PyObject *obj) { const char msg[]="Unexpected situation in __imod__ !"; int val; @@ -4153,7 +4153,7 @@ namespace MEDCoupling } } - DataArrayInt *__pow__(PyObject *obj) throw(INTERP_KERNEL::Exception) + DataArrayInt *__pow__(PyObject *obj) { const char msg[]="Unexpected situation in __pow__ !"; int val; @@ -4189,7 +4189,7 @@ namespace MEDCoupling } } - DataArrayInt *__rpow__(PyObject *obj) throw(INTERP_KERNEL::Exception) + DataArrayInt *__rpow__(PyObject *obj) { const char msg[]="Unexpected situation in __rpow__ !"; int val; @@ -4225,7 +4225,7 @@ namespace MEDCoupling } } - PyObject *___ipow___(PyObject *trueSelf, PyObject *obj) throw(INTERP_KERNEL::Exception) + PyObject *___ipow___(PyObject *trueSelf, PyObject *obj) { const char msg[]="Unexpected situation in __ipow__ !"; int val; @@ -4260,14 +4260,14 @@ namespace MEDCoupling } } - std::string __repr__() const throw(INTERP_KERNEL::Exception) + std::string __repr__() const { std::ostringstream oss; self->reprQuickOverview(oss); return oss.str(); } - void pushBackValsSilent(PyObject *li) throw(INTERP_KERNEL::Exception) + void pushBackValsSilent(PyObject *li) { int szArr,sw,iTypppArr; std::vector stdvecTyyppArr; @@ -4275,7 +4275,7 @@ namespace MEDCoupling self->pushBackValsSilent(tmp,tmp+szArr); } - PyObject *partitionByDifferentValues() const throw(INTERP_KERNEL::Exception) + PyObject *partitionByDifferentValues() const { std::vector ret1; std::vector ret0=self->partitionByDifferentValues(ret1); @@ -4293,7 +4293,7 @@ namespace MEDCoupling return pyRet; } - PyObject *findIdsRangesInListOfIds(const DataArrayInt *listOfIds) const throw(INTERP_KERNEL::Exception) + PyObject *findIdsRangesInListOfIds(const DataArrayInt *listOfIds) const { DataArrayInt *ret0=0,*ret1=0; self->findIdsRangesInListOfIds(listOfIds,ret0,ret1); @@ -4303,7 +4303,7 @@ namespace MEDCoupling return pyRet; } - PyObject *isRange() const throw(INTERP_KERNEL::Exception) + PyObject *isRange() const { int a(0),b(0),c(0); bool ret(self->isRange(a,b,c)); @@ -4350,26 +4350,26 @@ namespace MEDCoupling class DataArrayIntTuple { public: - int getNumberOfCompo() const throw(INTERP_KERNEL::Exception); - DataArrayInt *buildDAInt(int nbOfTuples, int nbOfCompo) const throw(INTERP_KERNEL::Exception); + int getNumberOfCompo() const; + DataArrayInt *buildDAInt(int nbOfTuples, int nbOfCompo) const; %extend { - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->repr(); } - int __int__() const throw(INTERP_KERNEL::Exception) + int __int__() const { return self->intValue(); } - DataArrayInt *buildDAInt() throw(INTERP_KERNEL::Exception) + DataArrayInt *buildDAInt() { return self->buildDAInt(1,self->getNumberOfCompo()); } - PyObject *___iadd___(PyObject *trueSelf, PyObject *obj) throw(INTERP_KERNEL::Exception) + PyObject *___iadd___(PyObject *trueSelf, PyObject *obj) { MCAuto ret=self->buildDAInt(1,self->getNumberOfCompo()); MEDCoupling_DataArrayInt____iadd___(ret,0,obj); @@ -4377,7 +4377,7 @@ namespace MEDCoupling return trueSelf; } - PyObject *___isub___(PyObject *trueSelf, PyObject *obj) throw(INTERP_KERNEL::Exception) + PyObject *___isub___(PyObject *trueSelf, PyObject *obj) { MCAuto ret=self->buildDAInt(1,self->getNumberOfCompo()); MEDCoupling_DataArrayInt____isub___(ret,0,obj); @@ -4385,14 +4385,14 @@ namespace MEDCoupling return trueSelf; } - PyObject *___imul___(PyObject *trueSelf, PyObject *obj) throw(INTERP_KERNEL::Exception) + PyObject *___imul___(PyObject *trueSelf, PyObject *obj) { MCAuto ret=self->buildDAInt(1,self->getNumberOfCompo()); MEDCoupling_DataArrayInt____imul___(ret,0,obj); Py_XINCREF(trueSelf); return trueSelf; } - PyObject *___idiv___(PyObject *trueSelf, PyObject *obj) throw(INTERP_KERNEL::Exception) + PyObject *___idiv___(PyObject *trueSelf, PyObject *obj) { MCAuto ret=self->buildDAInt(1,self->getNumberOfCompo()); MEDCoupling_DataArrayInt____idiv___(ret,0,obj); @@ -4400,7 +4400,7 @@ namespace MEDCoupling return trueSelf; } - PyObject *___imod___(PyObject *trueSelf, PyObject *obj) throw(INTERP_KERNEL::Exception) + PyObject *___imod___(PyObject *trueSelf, PyObject *obj) { MCAuto ret=self->buildDAInt(1,self->getNumberOfCompo()); MEDCoupling_DataArrayInt____imod___(ret,0,obj); @@ -4408,12 +4408,12 @@ namespace MEDCoupling return trueSelf; } - PyObject *__len__() throw(INTERP_KERNEL::Exception) + PyObject *__len__() { return PyInt_FromLong(self->getNumberOfCompo()); } - PyObject *__getitem__(PyObject *obj) throw(INTERP_KERNEL::Exception) + PyObject *__getitem__(PyObject *obj) { const char msg2[]="DataArrayIntTuple::__getitem__ : Mismatch of slice values in 2nd parameter (components) !"; int sw; @@ -4478,7 +4478,7 @@ namespace MEDCoupling } } - DataArrayIntTuple *__setitem__(PyObject *obj, PyObject *value) throw(INTERP_KERNEL::Exception) + DataArrayIntTuple *__setitem__(PyObject *obj, PyObject *value) { const char msg[]="DataArrayIntTuple::__setitem__ : unrecognized type entered, int, slice, list, tuple !"; const char msg2[]="DataArrayIntTuple::__setitem__ : Mismatch of slice values in 2nd parameter (components) !"; @@ -4637,51 +4637,51 @@ namespace MEDCoupling class DataArrayChar : public DataArray { public: - virtual DataArrayChar *buildEmptySpecializedDAChar() const throw(INTERP_KERNEL::Exception); - int getHashCode() const throw(INTERP_KERNEL::Exception); - bool empty() const throw(INTERP_KERNEL::Exception); - void deepCopyFrom(const DataArrayChar& other) throw(INTERP_KERNEL::Exception); - void reserve(std::size_t nbOfElems) throw(INTERP_KERNEL::Exception); - void pushBackSilent(char val) throw(INTERP_KERNEL::Exception); - char popBackSilent() throw(INTERP_KERNEL::Exception); - void pack() const throw(INTERP_KERNEL::Exception); - void allocIfNecessary(int nbOfTuple, int nbOfCompo) throw(INTERP_KERNEL::Exception); - bool isEqual(const DataArrayChar& other) const throw(INTERP_KERNEL::Exception); - bool isEqualWithoutConsideringStr(const DataArrayChar& other) const throw(INTERP_KERNEL::Exception); - void reverse() throw(INTERP_KERNEL::Exception); - void fillWithZero() throw(INTERP_KERNEL::Exception); - void fillWithValue(char val) throw(INTERP_KERNEL::Exception); - std::string repr() const throw(INTERP_KERNEL::Exception); - std::string reprZip() const throw(INTERP_KERNEL::Exception); - DataArrayInt *convertToIntArr() const throw(INTERP_KERNEL::Exception); - DataArrayChar *renumber(const int *old2New) const throw(INTERP_KERNEL::Exception); - DataArrayChar *renumberR(const int *new2Old) const throw(INTERP_KERNEL::Exception); - DataArrayChar *renumberAndReduce(const int *old2NewBg, int newNbOfTuple) const throw(INTERP_KERNEL::Exception); - bool isUniform(char val) const throw(INTERP_KERNEL::Exception); - void sort(bool asc=true) throw(INTERP_KERNEL::Exception); - DataArrayChar *subArray(int tupleIdBg, int tupleIdEnd=-1) const throw(INTERP_KERNEL::Exception); - DataArrayChar *changeNbOfComponents(int newNbOfComp, char dftValue) const throw(INTERP_KERNEL::Exception); - void meldWith(const DataArrayChar *other) throw(INTERP_KERNEL::Exception); - void setPartOfValuesAdv(const DataArrayChar *a, const DataArrayInt *tuplesSelec) throw(INTERP_KERNEL::Exception); - char front() const throw(INTERP_KERNEL::Exception); - char back() const throw(INTERP_KERNEL::Exception); - void setIJ(int tupleId, int compoId, char newVal) throw(INTERP_KERNEL::Exception); - void setIJSilent(int tupleId, int compoId, char newVal) throw(INTERP_KERNEL::Exception); - char *getPointer() throw(INTERP_KERNEL::Exception); - DataArrayInt *findIdsEqual(char val) const throw(INTERP_KERNEL::Exception); - DataArrayInt *findIdsNotEqual(char val) const throw(INTERP_KERNEL::Exception); - int findIdFirstEqualTuple(const std::vector& tupl) const throw(INTERP_KERNEL::Exception); - bool presenceOfTuple(const std::vector& tupl) const throw(INTERP_KERNEL::Exception); - char getMaxValue(int& tupleId) const throw(INTERP_KERNEL::Exception); - char getMaxValueInArray() const throw(INTERP_KERNEL::Exception); - char getMinValue(int& tupleId) const throw(INTERP_KERNEL::Exception); - char getMinValueInArray() const throw(INTERP_KERNEL::Exception); - DataArrayInt *findIdsInRange(char vmin, char vmax) const throw(INTERP_KERNEL::Exception); - static DataArrayChar *Aggregate(const DataArrayChar *a1, const DataArrayChar *a2) throw(INTERP_KERNEL::Exception); - static DataArrayChar *Meld(const DataArrayChar *a1, const DataArrayChar *a2) throw(INTERP_KERNEL::Exception); + virtual DataArrayChar *buildEmptySpecializedDAChar() const; + int getHashCode() const; + bool empty() const; + void deepCopyFrom(const DataArrayChar& other); + void reserve(std::size_t nbOfElems); + void pushBackSilent(char val); + char popBackSilent(); + void pack() const; + void allocIfNecessary(int nbOfTuple, int nbOfCompo); + bool isEqual(const DataArrayChar& other) const; + bool isEqualWithoutConsideringStr(const DataArrayChar& other) const; + void reverse(); + void fillWithZero(); + void fillWithValue(char val); + std::string repr() const; + std::string reprZip() const; + DataArrayInt *convertToIntArr() const; + DataArrayChar *renumber(const int *old2New) const; + DataArrayChar *renumberR(const int *new2Old) const; + DataArrayChar *renumberAndReduce(const int *old2NewBg, int newNbOfTuple) const; + bool isUniform(char val) const; + void sort(bool asc=true); + DataArrayChar *subArray(int tupleIdBg, int tupleIdEnd=-1) const; + DataArrayChar *changeNbOfComponents(int newNbOfComp, char dftValue) const; + void meldWith(const DataArrayChar *other); + void setPartOfValuesAdv(const DataArrayChar *a, const DataArrayInt *tuplesSelec); + char front() const; + char back() const; + void setIJ(int tupleId, int compoId, char newVal); + void setIJSilent(int tupleId, int compoId, char newVal); + char *getPointer(); + DataArrayInt *findIdsEqual(char val) const; + DataArrayInt *findIdsNotEqual(char val) const; + int findIdFirstEqualTuple(const std::vector& tupl) const; + bool presenceOfTuple(const std::vector& tupl) const; + char getMaxValue(int& tupleId) const; + char getMaxValueInArray() const; + char getMinValue(int& tupleId) const; + char getMinValueInArray() const; + DataArrayInt *findIdsInRange(char vmin, char vmax) const; + static DataArrayChar *Aggregate(const DataArrayChar *a1, const DataArrayChar *a2); + static DataArrayChar *Meld(const DataArrayChar *a1, const DataArrayChar *a2); %extend { - int __len__() const throw(INTERP_KERNEL::Exception) + int __len__() const { if(self->isAllocated()) { @@ -4693,7 +4693,7 @@ namespace MEDCoupling } } - PyObject *isEqualIfNotWhy(const DataArrayChar& other) const throw(INTERP_KERNEL::Exception) + PyObject *isEqualIfNotWhy(const DataArrayChar& other) const { std::string ret1; bool ret0=self->isEqualIfNotWhy(other,ret1); @@ -4705,7 +4705,7 @@ namespace MEDCoupling return ret; } - DataArrayChar *renumber(PyObject *li) throw(INTERP_KERNEL::Exception) + DataArrayChar *renumber(PyObject *li) { void *da=0; int res1=SWIG_ConvertPtr(li,&da,SWIGTYPE_p_MEDCoupling__DataArrayInt, 0 | 0 ); @@ -4734,7 +4734,7 @@ namespace MEDCoupling } } - DataArrayChar *renumberR(PyObject *li) throw(INTERP_KERNEL::Exception) + DataArrayChar *renumberR(PyObject *li) { void *da=0; int res1=SWIG_ConvertPtr(li,&da,SWIGTYPE_p_MEDCoupling__DataArrayInt, 0 | 0 ); @@ -4763,7 +4763,7 @@ namespace MEDCoupling } } - DataArrayChar *renumberAndReduce(PyObject *li, int newNbOfTuple) throw(INTERP_KERNEL::Exception) + DataArrayChar *renumberAndReduce(PyObject *li, int newNbOfTuple) { void *da=0; int res1=SWIG_ConvertPtr(li,&da,SWIGTYPE_p_MEDCoupling__DataArrayInt, 0 | 0 ); @@ -4792,14 +4792,14 @@ namespace MEDCoupling } } - static DataArrayChar *Aggregate(PyObject *dachs) throw(INTERP_KERNEL::Exception) + static DataArrayChar *Aggregate(PyObject *dachs) { std::vector tmp; convertFromPyObjVectorOfObj(dachs,SWIGTYPE_p_MEDCoupling__DataArrayChar,"DataArrayChar",tmp); return DataArrayChar::Aggregate(tmp); } - static DataArrayChar *Meld(PyObject *dachs) throw(INTERP_KERNEL::Exception) + static DataArrayChar *Meld(PyObject *dachs) { std::vector tmp; convertFromPyObjVectorOfObj(dachs,SWIGTYPE_p_MEDCoupling__DataArrayChar,"DataArrayChar",tmp); @@ -4814,17 +4814,17 @@ namespace MEDCoupling { public: static DataArrayByte *New(); - DataArrayByteIterator *iterator() throw(INTERP_KERNEL::Exception); - DataArrayByte *performCopyOrIncrRef(bool deepCopy) const throw(INTERP_KERNEL::Exception); - char byteValue() const throw(INTERP_KERNEL::Exception); + DataArrayByteIterator *iterator(); + DataArrayByte *performCopyOrIncrRef(bool deepCopy) const; + char byteValue() const; %extend { - DataArrayByte() throw(INTERP_KERNEL::Exception) + DataArrayByte() { return DataArrayByte::New(); } - static DataArrayByte *New(PyObject *elt0, PyObject *nbOfTuples=0, PyObject *nbOfComp=0) throw(INTERP_KERNEL::Exception) + static DataArrayByte *New(PyObject *elt0, PyObject *nbOfTuples=0, PyObject *nbOfComp=0) { const char *msg="MEDCoupling::DataArrayByte::New : Available API are : \n-DataArrayByte.New()\n--DataArrayByte.New([1,3,4])\n-DataArrayByte.New([1,3,4],3)\n-DataArrayByte.New([1,3,4,5],2,2)\n-DataArrayByte.New(5)\n-DataArrayByte.New(5,2) !"; if(PyList_Check(elt0) || PyTuple_Check(elt0)) @@ -4913,44 +4913,44 @@ namespace MEDCoupling throw INTERP_KERNEL::Exception(msg); } - DataArrayByte(PyObject *elt0, PyObject *nbOfTuples=0, PyObject *nbOfComp=0) throw(INTERP_KERNEL::Exception) + DataArrayByte(PyObject *elt0, PyObject *nbOfTuples=0, PyObject *nbOfComp=0) { return MEDCoupling_DataArrayByte_New__SWIG_1(elt0,nbOfTuples,nbOfComp); } - std::string __repr__() const throw(INTERP_KERNEL::Exception) + std::string __repr__() const { std::ostringstream oss; self->reprQuickOverview(oss); return oss.str(); } - int __int__() const throw(INTERP_KERNEL::Exception) + int __int__() const { return (int) self->byteValue(); } - DataArrayByteIterator *__iter__() throw(INTERP_KERNEL::Exception) + DataArrayByteIterator *__iter__() { return self->iterator(); } - int getIJ(int tupleId, int compoId) const throw(INTERP_KERNEL::Exception) + int getIJ(int tupleId, int compoId) const { return (int)self->getIJ(tupleId,compoId); } - int getIJSafe(int tupleId, int compoId) const throw(INTERP_KERNEL::Exception) + int getIJSafe(int tupleId, int compoId) const { return (int)self->getIJSafe(tupleId,compoId); } - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->repr(); } - PyObject *toStrList() const throw(INTERP_KERNEL::Exception) + PyObject *toStrList() const { const char *vals=self->getConstPointer(); int nbOfComp=self->getNumberOfComponents(); @@ -4958,7 +4958,7 @@ namespace MEDCoupling return convertCharArrToPyListOfTuple(vals,nbOfComp,nbOfTuples); } - bool presenceOfTuple(PyObject *tupl) const throw(INTERP_KERNEL::Exception) + bool presenceOfTuple(PyObject *tupl) const { int sz=-1,sw=-1; int ival=-1; std::vector ivval; @@ -4968,7 +4968,7 @@ namespace MEDCoupling return self->presenceOfTuple(vals); } - bool presenceOfValue(PyObject *vals) const throw(INTERP_KERNEL::Exception) + bool presenceOfValue(PyObject *vals) const { int sz=-1,sw=-1; int ival=-1; std::vector ivval; @@ -4978,7 +4978,7 @@ namespace MEDCoupling return self->presenceOfValue(vals2); } - int findIdFirstEqual(PyObject *vals) const throw(INTERP_KERNEL::Exception) + int findIdFirstEqual(PyObject *vals) const { int sz=-1,sw=-1; int ival=-1; std::vector ivval; @@ -4988,7 +4988,7 @@ namespace MEDCoupling return self->findIdFirstEqual(vals2); } - int findIdFirstEqualTuple(PyObject *tupl) const throw(INTERP_KERNEL::Exception) + int findIdFirstEqualTuple(PyObject *tupl) const { int sz=-1,sw=-1; int ival=-1; std::vector ivval; @@ -4998,7 +4998,7 @@ namespace MEDCoupling return self->findIdFirstEqualTuple(vals); } - int findIdSequence(PyObject *strOrListOfInt) const throw(INTERP_KERNEL::Exception) + int findIdSequence(PyObject *strOrListOfInt) const { int sz=-1,sw=-1; int ival=-1; std::vector ivval; @@ -5008,7 +5008,7 @@ namespace MEDCoupling return self->findIdSequence(vals); } - PyObject *getTuple(int tupleId) throw(INTERP_KERNEL::Exception) + PyObject *getTuple(int tupleId) { int sz=self->getNumberOfComponents(); INTERP_KERNEL::AutoPtr tmp=new char[sz]; @@ -5018,7 +5018,7 @@ namespace MEDCoupling return ret; } - PyObject *getMaxValue() const throw(INTERP_KERNEL::Exception) + PyObject *getMaxValue() const { int tmp; int r1=(int)self->getMaxValue(tmp); @@ -5028,7 +5028,7 @@ namespace MEDCoupling return ret; } - PyObject *getMinValue() const throw(INTERP_KERNEL::Exception) + PyObject *getMinValue() const { int tmp; int r1=(int)self->getMinValue(tmp); @@ -5038,7 +5038,7 @@ namespace MEDCoupling return ret; } - int index(PyObject *obj) const throw(INTERP_KERNEL::Exception) + int index(PyObject *obj) const { int nbOfCompo=self->getNumberOfComponents(); switch(nbOfCompo) @@ -5058,7 +5058,7 @@ namespace MEDCoupling } } - bool __contains__(PyObject *obj) const throw(INTERP_KERNEL::Exception) + bool __contains__(PyObject *obj) const { int nbOfCompo=self->getNumberOfComponents(); switch(nbOfCompo) @@ -5081,13 +5081,13 @@ namespace MEDCoupling } #ifdef WITH_NUMPY - PyObject *toNumPyArray() throw(INTERP_KERNEL::Exception) // not const. It is not a bug ! + PyObject *toNumPyArray() // not const. It is not a bug ! { return ToNumPyArray(self,NPY_INT8,"DataArrayByte"); } #endif - DataArrayByte *__setitem__(PyObject *obj, PyObject *value) throw(INTERP_KERNEL::Exception) + DataArrayByte *__setitem__(PyObject *obj, PyObject *value) { self->checkAllocated(); const char msg[]="Unexpected situation in __setitem__ !"; @@ -5318,21 +5318,21 @@ namespace MEDCoupling class DataArrayByteTuple { public: - std::string repr() const throw(INTERP_KERNEL::Exception); - DataArrayByte *buildDAByte(int nbOfTuples, int nbOfCompo) const throw(INTERP_KERNEL::Exception); + std::string repr() const; + DataArrayByte *buildDAByte(int nbOfTuples, int nbOfCompo) const; %extend { - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->repr(); } - char __int__() const throw(INTERP_KERNEL::Exception) + char __int__() const { return self->byteValue(); } - DataArrayByte *buildDAByte() throw(INTERP_KERNEL::Exception) + DataArrayByte *buildDAByte() { return self->buildDAByte(1,self->getNumberOfCompo()); } @@ -5345,17 +5345,17 @@ namespace MEDCoupling { public: static DataArrayAsciiChar *New(); - DataArrayAsciiCharIterator *iterator() throw(INTERP_KERNEL::Exception); - DataArrayAsciiChar *performCopyOrIncrRef(bool deepCopy) const throw(INTERP_KERNEL::Exception); - char asciiCharValue() const throw(INTERP_KERNEL::Exception); + DataArrayAsciiCharIterator *iterator(); + DataArrayAsciiChar *performCopyOrIncrRef(bool deepCopy) const; + char asciiCharValue() const; %extend { - DataArrayAsciiChar() throw(INTERP_KERNEL::Exception) + DataArrayAsciiChar() { return DataArrayAsciiChar::New(); } - static DataArrayAsciiChar *New(PyObject *elt0, PyObject *nbOfTuples=0, PyObject *nbOfComp=0) throw(INTERP_KERNEL::Exception) + static DataArrayAsciiChar *New(PyObject *elt0, PyObject *nbOfTuples=0, PyObject *nbOfComp=0) { const char *msg="MEDCoupling::DataArrayAsciiChar::New : Available API are : \n-DataArrayAsciiChar.New()\n-DataArrayAsciiChar.New([1,3,4])\n-DataArrayAsciiChar.New([\"abc\",\"de\",\"fghi\"])\n-DataArrayAsciiChar.New([\"abc\",\"de\",\"fghi\"],\"t\")\n-DataArrayAsciiChar.New([1,3,4],3)\n-DataArrayAsciiChar.New([1,3,4,5],2,2)\n-DataArrayAsciiChar.New(5)\n-DataArrayAsciiChar.New(5,2) !"; if(PyList_Check(elt0) || PyTuple_Check(elt0)) @@ -5470,43 +5470,43 @@ namespace MEDCoupling throw INTERP_KERNEL::Exception(msg); } - DataArrayAsciiChar(PyObject *elt0, PyObject *nbOfTuples=0, PyObject *nbOfComp=0) throw(INTERP_KERNEL::Exception) + DataArrayAsciiChar(PyObject *elt0, PyObject *nbOfTuples=0, PyObject *nbOfComp=0) { return MEDCoupling_DataArrayAsciiChar_New__SWIG_1(elt0,nbOfTuples,nbOfComp); } - std::string __repr__() const throw(INTERP_KERNEL::Exception) + std::string __repr__() const { std::ostringstream oss; self->reprQuickOverview(oss); return oss.str(); } - DataArrayAsciiCharIterator *__iter__() throw(INTERP_KERNEL::Exception) + DataArrayAsciiCharIterator *__iter__() { return self->iterator(); } - std::string getIJ(int tupleId, int compoId) const throw(INTERP_KERNEL::Exception) + std::string getIJ(int tupleId, int compoId) const { char tmp[2]; tmp[1]='\0'; tmp[0]=self->getIJ(tupleId,compoId); return std::string(tmp); } - std::string getIJSafe(int tupleId, int compoId) const throw(INTERP_KERNEL::Exception) + std::string getIJSafe(int tupleId, int compoId) const { char tmp[2]; tmp[1]='\0'; tmp[0]=self->getIJSafe(tupleId,compoId); return std::string(tmp); } - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->repr(); } - PyObject *toStrList() const throw(INTERP_KERNEL::Exception) + PyObject *toStrList() const { const char *vals=self->getConstPointer(); int nbOfComp=self->getNumberOfComponents(); @@ -5514,7 +5514,7 @@ namespace MEDCoupling return convertCharArrToPyListOfTuple(vals,nbOfComp,nbOfTuples); } - bool presenceOfTuple(PyObject *tupl) const throw(INTERP_KERNEL::Exception) + bool presenceOfTuple(PyObject *tupl) const { if(PyString_Check(tupl)) { @@ -5536,7 +5536,7 @@ namespace MEDCoupling throw INTERP_KERNEL::Exception("DataArrayAsciiChar::presenceOfTuple : only strings in input supported !"); } - bool presenceOfValue(PyObject *vals) const throw(INTERP_KERNEL::Exception) + bool presenceOfValue(PyObject *vals) const { if(PyString_Check(vals)) { @@ -5558,7 +5558,7 @@ namespace MEDCoupling throw INTERP_KERNEL::Exception("DataArrayAsciiChar::presenceOfValue : only strings in input supported !"); } - int findIdFirstEqual(PyObject *vals) const throw(INTERP_KERNEL::Exception) + int findIdFirstEqual(PyObject *vals) const { if(PyString_Check(vals)) { @@ -5580,7 +5580,7 @@ namespace MEDCoupling throw INTERP_KERNEL::Exception("DataArrayAsciiChar::findIdFirstEqual : only strings in input supported !"); } - int findIdFirstEqualTuple(PyObject *tupl) const throw(INTERP_KERNEL::Exception) + int findIdFirstEqualTuple(PyObject *tupl) const { if(PyString_Check(tupl)) { @@ -5602,7 +5602,7 @@ namespace MEDCoupling throw INTERP_KERNEL::Exception("DataArrayAsciiChar::findIdFirstEqualTuple : only strings in input supported !"); } - int findIdSequence(PyObject *strOrListOfInt) const throw(INTERP_KERNEL::Exception) + int findIdSequence(PyObject *strOrListOfInt) const { if(PyString_Check(strOrListOfInt)) { @@ -5624,7 +5624,7 @@ namespace MEDCoupling throw INTERP_KERNEL::Exception("DataArrayAsciiChar::search : only strings in input supported !"); } - PyObject *getTuple(int tupleId) const throw(INTERP_KERNEL::Exception) + PyObject *getTuple(int tupleId) const { int sz=self->getNumberOfComponents(); INTERP_KERNEL::AutoPtr tmp=new char[sz+1]; tmp[sz]='\0'; @@ -5632,7 +5632,7 @@ namespace MEDCoupling return PyString_FromString(tmp); } - PyObject *getMaxValue() const throw(INTERP_KERNEL::Exception) + PyObject *getMaxValue() const { int tmp; char tmp2[2]; tmp2[1]='\0'; @@ -5643,7 +5643,7 @@ namespace MEDCoupling return ret; } - PyObject *getMinValue() const throw(INTERP_KERNEL::Exception) + PyObject *getMinValue() const { int tmp; char tmp2[2]; tmp2[1]='\0'; @@ -5654,7 +5654,7 @@ namespace MEDCoupling return ret; } - int index(PyObject *obj) const throw(INTERP_KERNEL::Exception) + int index(PyObject *obj) const { int nbOfCompo=self->getNumberOfComponents(); switch(nbOfCompo) @@ -5689,7 +5689,7 @@ namespace MEDCoupling } } - bool __contains__(PyObject *obj) const throw(INTERP_KERNEL::Exception) + bool __contains__(PyObject *obj) const { int nbOfCompo=self->getNumberOfComponents(); switch(nbOfCompo) @@ -5726,7 +5726,7 @@ namespace MEDCoupling } } - PyObject *__getitem__(PyObject *obj) const throw(INTERP_KERNEL::Exception) + PyObject *__getitem__(PyObject *obj) const { int sw,iTypppArr; std::vector stdvecTyyppArr; @@ -5748,7 +5748,7 @@ namespace MEDCoupling } } - DataArrayAsciiChar *__setitem__(PyObject *obj, PyObject *value) throw(INTERP_KERNEL::Exception) + DataArrayAsciiChar *__setitem__(PyObject *obj, PyObject *value) { static const char msg[]="DataArrayAsciiChar::__setitem__ : supporting int, list of int, tuple of int, DataArrayInt and slice in input, and 4 types accepted in value : string, list or tuple of strings having same size, not null DataArrayChar instance."; int sw1,iTypppArr; @@ -5934,16 +5934,16 @@ namespace MEDCoupling class DataArrayAsciiCharTuple { public: - int getNumberOfCompo() const throw(INTERP_KERNEL::Exception); - DataArrayAsciiChar *buildDAAsciiChar(int nbOfTuples, int nbOfCompo) const throw(INTERP_KERNEL::Exception); + int getNumberOfCompo() const; + DataArrayAsciiChar *buildDAAsciiChar(int nbOfTuples, int nbOfCompo) const; %extend { - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->repr(); } - DataArrayAsciiChar *buildDAAsciiChar() throw(INTERP_KERNEL::Exception) + DataArrayAsciiChar *buildDAAsciiChar() { return self->buildDAAsciiChar(1,self->getNumberOfCompo()); } diff --git a/src/MEDCoupling_Swig/MEDCouplingRefCountObject.i b/src/MEDCoupling_Swig/MEDCouplingRefCountObject.i index 9dd81b043..665c95f50 100644 --- a/src/MEDCoupling_Swig/MEDCouplingRefCountObject.i +++ b/src/MEDCoupling_Swig/MEDCouplingRefCountObject.i @@ -83,14 +83,14 @@ namespace MEDCoupling class BigMemoryObject { public: - std::size_t getHeapMemorySize() const throw(INTERP_KERNEL::Exception); - std::string getHeapMemorySizeStr() const throw(INTERP_KERNEL::Exception); - bool isObjectInTheProgeny(const BigMemoryObject *obj) const throw(INTERP_KERNEL::Exception); - virtual std::size_t getHeapMemorySizeWithoutChildren() const throw(INTERP_KERNEL::Exception); + std::size_t getHeapMemorySize() const; + std::string getHeapMemorySizeStr() const; + bool isObjectInTheProgeny(const BigMemoryObject *obj) const; + virtual std::size_t getHeapMemorySizeWithoutChildren() const; virtual ~BigMemoryObject(); %extend { - virtual PyObject *getDirectChildren() const throw(INTERP_KERNEL::Exception) + virtual PyObject *getDirectChildren() const { std::vector c(self->getDirectChildren()); PyObject *ret(PyList_New(c.size())); @@ -99,7 +99,7 @@ namespace MEDCoupling return ret; } - PyObject *getAllTheProgeny() const throw(INTERP_KERNEL::Exception) + PyObject *getAllTheProgeny() const { std::vector c(self->getAllTheProgeny()); PyObject *ret(PyList_New(c.size())); @@ -108,7 +108,7 @@ namespace MEDCoupling return ret; } - static std::size_t GetHeapMemorySizeOfObjs(PyObject *objs) throw(INTERP_KERNEL::Exception) + static std::size_t GetHeapMemorySizeOfObjs(PyObject *objs) { std::vector cppObjs; convertFromPyObjVectorOfObj(objs,SWIGTYPE_p_MEDCoupling__BigMemoryObject,"BigMemoryObject",cppObjs); @@ -136,14 +136,14 @@ namespace MEDCoupling class GlobalDict { public: - static GlobalDict *GetInstance() throw(INTERP_KERNEL::Exception); - bool hasKey(const std::string& key) const throw(INTERP_KERNEL::Exception); - std::string value(const std::string& key) const throw(INTERP_KERNEL::Exception); - std::vector keys() const throw(INTERP_KERNEL::Exception); - void erase(const std::string& key) throw(INTERP_KERNEL::Exception); - void clear() throw(INTERP_KERNEL::Exception); - void setKeyValue(const std::string& key, const std::string& value) throw(INTERP_KERNEL::Exception); - void setKeyValueForce(const std::string& key, const std::string& value) throw(INTERP_KERNEL::Exception); + static GlobalDict *GetInstance(); + bool hasKey(const std::string& key) const; + std::string value(const std::string& key) const; + std::vector keys() const; + void erase(const std::string& key); + void clear(); + void setKeyValue(const std::string& key, const std::string& value); + void setKeyValueForce(const std::string& key, const std::string& value); private: GlobalDict(); public: diff --git a/src/MEDCoupling_Swig/MEDCouplingRemapperCommon.i b/src/MEDCoupling_Swig/MEDCouplingRemapperCommon.i index 3dc4fe2d8..1a7364d69 100644 --- a/src/MEDCoupling_Swig/MEDCouplingRemapperCommon.i +++ b/src/MEDCoupling_Swig/MEDCouplingRemapperCommon.i @@ -47,27 +47,27 @@ namespace MEDCoupling public: MEDCouplingRemapper(); ~MEDCouplingRemapper(); - int prepare(const MEDCouplingMesh *srcMesh, const MEDCouplingMesh *targetMesh, const std::string& method) throw(INTERP_KERNEL::Exception); - int prepareEx(const MEDCouplingFieldTemplate *src, const MEDCouplingFieldTemplate *target) throw(INTERP_KERNEL::Exception); - void transfer(const MEDCouplingFieldDouble *srcField, MEDCouplingFieldDouble *targetField, double dftValue) throw(INTERP_KERNEL::Exception); - void partialTransfer(const MEDCouplingFieldDouble *srcField, MEDCouplingFieldDouble *targetField) throw(INTERP_KERNEL::Exception); - void reverseTransfer(MEDCouplingFieldDouble *srcField, const MEDCouplingFieldDouble *targetField, double dftValue) throw(INTERP_KERNEL::Exception); - MEDCouplingFieldDouble *transferField(const MEDCouplingFieldDouble *srcField, double dftValue) throw(INTERP_KERNEL::Exception); - MEDCouplingFieldDouble *reverseTransferField(const MEDCouplingFieldDouble *targetField, double dftValue) throw(INTERP_KERNEL::Exception); - bool setOptionInt(const std::string& key, int value) throw(INTERP_KERNEL::Exception); - bool setOptionDouble(const std::string& key, double value) throw(INTERP_KERNEL::Exception); - bool setOptionString(const std::string& key, const std::string& value) throw(INTERP_KERNEL::Exception); - int getInterpolationMatrixPolicy() const throw(INTERP_KERNEL::Exception); - void setInterpolationMatrixPolicy(int newInterpMatPol) throw(INTERP_KERNEL::Exception); + int prepare(const MEDCouplingMesh *srcMesh, const MEDCouplingMesh *targetMesh, const std::string& method); + int prepareEx(const MEDCouplingFieldTemplate *src, const MEDCouplingFieldTemplate *target); + void transfer(const MEDCouplingFieldDouble *srcField, MEDCouplingFieldDouble *targetField, double dftValue); + void partialTransfer(const MEDCouplingFieldDouble *srcField, MEDCouplingFieldDouble *targetField); + void reverseTransfer(MEDCouplingFieldDouble *srcField, const MEDCouplingFieldDouble *targetField, double dftValue); + MEDCouplingFieldDouble *transferField(const MEDCouplingFieldDouble *srcField, double dftValue); + MEDCouplingFieldDouble *reverseTransferField(const MEDCouplingFieldDouble *targetField, double dftValue); + bool setOptionInt(const std::string& key, int value); + bool setOptionDouble(const std::string& key, double value); + bool setOptionString(const std::string& key, const std::string& value); + int getInterpolationMatrixPolicy() const; + void setInterpolationMatrixPolicy(int newInterpMatPol); // - int nullifiedTinyCoeffInCrudeMatrixAbs(double maxValAbs) throw(INTERP_KERNEL::Exception); - int nullifiedTinyCoeffInCrudeMatrix(double scaleFactor) throw(INTERP_KERNEL::Exception); - double getMaxValueInCrudeMatrix() const throw(INTERP_KERNEL::Exception); - int getNumberOfColsOfMatrix() const throw(INTERP_KERNEL::Exception); - static std::string BuildMethodFrom(const std::string& meth1, const std::string& meth2) throw(INTERP_KERNEL::Exception); + int nullifiedTinyCoeffInCrudeMatrixAbs(double maxValAbs); + int nullifiedTinyCoeffInCrudeMatrix(double scaleFactor); + double getMaxValueInCrudeMatrix() const; + int getNumberOfColsOfMatrix() const; + static std::string BuildMethodFrom(const std::string& meth1, const std::string& meth2); %extend { - PyObject *getCrudeMatrix() const throw(INTERP_KERNEL::Exception) + PyObject *getCrudeMatrix() const { const std::vector >& m=self->getCrudeMatrix(); std::size_t sz=m.size(); @@ -83,12 +83,12 @@ namespace MEDCoupling return ret; } #if defined(WITH_NUMPY) && defined(WITH_SCIPY) - PyObject *getCrudeCSRMatrix() const throw(INTERP_KERNEL::Exception) + PyObject *getCrudeCSRMatrix() const { return ToCSRMatrix(self->getCrudeMatrix(),self->getNumberOfColsOfMatrix()); } #endif - void setCrudeMatrix(const MEDCouplingMesh *srcMesh, const MEDCouplingMesh *targetMesh, const std::string& method, PyObject *m) throw(INTERP_KERNEL::Exception) + void setCrudeMatrix(const MEDCouplingMesh *srcMesh, const MEDCouplingMesh *targetMesh, const std::string& method, PyObject *m) { std::vector > mCpp; if(isCSRMatrix(m)) @@ -111,7 +111,7 @@ namespace MEDCoupling self->setCrudeMatrix(srcMesh,targetMesh,method,mCpp); } - void setCrudeMatrixEx(const MEDCouplingFieldTemplate *src, const MEDCouplingFieldTemplate *target, PyObject *m) throw(INTERP_KERNEL::Exception) + void setCrudeMatrixEx(const MEDCouplingFieldTemplate *src, const MEDCouplingFieldTemplate *target, PyObject *m) { std::vector > mCpp; convertToVectMapIntDouble(m,mCpp); diff --git a/src/MEDCoupling_Swig/MEDCouplingTimeDiscretization.i b/src/MEDCoupling_Swig/MEDCouplingTimeDiscretization.i index d5da8b0ee..16dc0a7b1 100644 --- a/src/MEDCoupling_Swig/MEDCouplingTimeDiscretization.i +++ b/src/MEDCoupling_Swig/MEDCouplingTimeDiscretization.i @@ -23,104 +23,104 @@ namespace MEDCoupling 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 checkConsistencyLight() 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 deepCopy) 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& 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 *performCopyOrIncrRef(bool deepCopy) 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& 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& 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& vals, double *res) const throw(INTERP_KERNEL::Exception); - virtual void getArrays(std::vector& 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& 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& vals, double *res) const; + virtual void getArrays(std::vector& 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& compoIds) const throw(INTERP_KERNEL::Exception); - virtual void setSelectedComponents(const MEDCouplingTimeDiscretization *other, const std::vector& 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 applyFuncCompo(int nbOfComp, const char *func) throw(INTERP_KERNEL::Exception); - virtual void applyFuncNamedCompo(int nbOfComp, const std::vector& 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 fillFromAnalyticCompo(const DataArrayDouble *loc, int nbOfComp, const char *func) throw(INTERP_KERNEL::Exception); - virtual void fillFromAnalyticNamedCompo(const DataArrayDouble *loc, int nbOfComp, const std::vector& 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& compoIds) const; + virtual void setSelectedComponents(const MEDCouplingTimeDiscretization *other, const std::vector& compoIds); + virtual void changeNbOfComponents(int 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& 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& varsOrder, const char *func); // virtual ~MEDCouplingTimeDiscretization(); }; diff --git a/src/MEDLoader/Swig/MEDLoaderCommon.i b/src/MEDLoader/Swig/MEDLoaderCommon.i index 74b043ce4..45a411744 100644 --- a/src/MEDLoader/Swig/MEDLoaderCommon.i +++ b/src/MEDLoader/Swig/MEDLoaderCommon.i @@ -340,40 +340,40 @@ using namespace MEDCoupling; namespace MEDCoupling { bool HasXDR(); - std::string MEDFileVersionStr() throw(INTERP_KERNEL::Exception); - std::string MEDFileVersionOfFileStr(const std::string& fileName) throw(INTERP_KERNEL::Exception); - void SetEpsilonForNodeComp(double val) throw(INTERP_KERNEL::Exception); - void SetCompPolicyForCell(int val) throw(INTERP_KERNEL::Exception); - void SetTooLongStrPolicy(int val) throw(INTERP_KERNEL::Exception); - void CheckFileForRead(const std::string& fileName) throw(INTERP_KERNEL::Exception); - std::vector GetMeshNames(const std::string& fileName) throw(INTERP_KERNEL::Exception); - std::vector GetMeshNamesOnField(const std::string& fileName, const std::string& fieldName) throw(INTERP_KERNEL::Exception); - std::vector GetMeshGroupsNames(const std::string& fileName, const std::string& meshName) throw(INTERP_KERNEL::Exception); - std::vector GetMeshFamiliesNames(const std::string& fileName, const std::string& meshName) throw(INTERP_KERNEL::Exception); - std::vector GetMeshFamiliesNamesOnGroup(const std::string& fileName, const std::string& meshName, const std::string& grpName) throw(INTERP_KERNEL::Exception); - std::vector GetMeshGroupsNamesOnFamily(const std::string& fileName, const std::string& meshName, const std::string& famName) throw(INTERP_KERNEL::Exception); - std::vector GetAllFieldNamesOnMesh(const std::string& fileName, const std::string& meshName) throw(INTERP_KERNEL::Exception); - std::vector GetAllFieldNames(const std::string& fileName) throw(INTERP_KERNEL::Exception); - std::vector GetFieldNamesOnMesh(MEDCoupling::TypeOfField type, const std::string& fileName, const std::string& meshName) throw(INTERP_KERNEL::Exception); - std::vector GetCellFieldNamesOnMesh(const std::string& fileName, const std::string& meshName) throw(INTERP_KERNEL::Exception); - std::vector GetNodeFieldNamesOnMesh(const std::string& fileName, const std::string& meshName) throw(INTERP_KERNEL::Exception); - double GetTimeAttachedOnFieldIteration(const std::string& fileName, const std::string& fieldName, int iteration, int order) throw(INTERP_KERNEL::Exception); - void AssignStaticWritePropertiesTo(MEDCoupling::MEDFileWritable& obj) throw(INTERP_KERNEL::Exception); - MEDCoupling::MEDCouplingMesh *ReadMeshFromFile(const std::string& fileName, const std::string& meshName, int meshDimRelToMax=0) throw(INTERP_KERNEL::Exception); - MEDCoupling::MEDCouplingMesh *ReadMeshFromFile(const std::string& fileName, int meshDimRelToMax=0) throw(INTERP_KERNEL::Exception); - MEDCoupling::MEDCouplingUMesh *ReadUMeshFromFile(const std::string& fileName, const std::string& meshName, int meshDimRelToMax=0) throw(INTERP_KERNEL::Exception); - MEDCoupling::MEDCouplingUMesh *ReadUMeshFromFile(const std::string& fileName, int meshDimRelToMax=0) throw(INTERP_KERNEL::Exception); - int ReadUMeshDimFromFile(const std::string& fileName, const std::string& meshName) throw(INTERP_KERNEL::Exception); - MEDCoupling::MEDCouplingField *ReadFieldCell(const std::string& fileName, const std::string& meshName, int meshDimRelToMax, const std::string& fieldName, int iteration, int order) throw(INTERP_KERNEL::Exception); - MEDCoupling::MEDCouplingField *ReadFieldNode(const std::string& fileName, const std::string& meshName, int meshDimRelToMax, const std::string& fieldName, int iteration, int order) throw(INTERP_KERNEL::Exception); - MEDCoupling::MEDCouplingField *ReadFieldGauss(const std::string& fileName, const std::string& meshName, int meshDimRelToMax, const std::string& fieldName, int iteration, int order) throw(INTERP_KERNEL::Exception); - MEDCoupling::MEDCouplingField *ReadFieldGaussNE(const std::string& fileName, const std::string& meshName, int meshDimRelToMax, const std::string& fieldName, int iteration, int order) throw(INTERP_KERNEL::Exception); - void WriteMesh(const std::string& fileName, const MEDCoupling::MEDCouplingMesh *mesh, bool writeFromScratch) throw(INTERP_KERNEL::Exception); - void WriteUMesh(const std::string& fileName, const MEDCoupling::MEDCouplingUMesh *mesh, bool writeFromScratch) throw(INTERP_KERNEL::Exception); - void WriteUMeshDep(const std::string& fileName, const MEDCoupling::MEDCouplingUMesh *mesh, bool writeFromScratch) throw(INTERP_KERNEL::Exception); - void WriteField(const std::string& fileName, const MEDCoupling::MEDCouplingField *f, bool writeFromScratch) throw(INTERP_KERNEL::Exception); - void WriteFieldDep(const std::string& fileName, const MEDCoupling::MEDCouplingField *f, bool writeFromScratch) throw(INTERP_KERNEL::Exception); - void WriteFieldUsingAlreadyWrittenMesh(const std::string& fileName, const MEDCoupling::MEDCouplingField *f) throw(INTERP_KERNEL::Exception); + std::string MEDFileVersionStr(); + std::string MEDFileVersionOfFileStr(const std::string& fileName); + void SetEpsilonForNodeComp(double val); + void SetCompPolicyForCell(int val); + void SetTooLongStrPolicy(int val); + void CheckFileForRead(const std::string& fileName); + std::vector GetMeshNames(const std::string& fileName); + std::vector GetMeshNamesOnField(const std::string& fileName, const std::string& fieldName); + std::vector GetMeshGroupsNames(const std::string& fileName, const std::string& meshName); + std::vector GetMeshFamiliesNames(const std::string& fileName, const std::string& meshName); + std::vector GetMeshFamiliesNamesOnGroup(const std::string& fileName, const std::string& meshName, const std::string& grpName); + std::vector GetMeshGroupsNamesOnFamily(const std::string& fileName, const std::string& meshName, const std::string& famName); + std::vector GetAllFieldNamesOnMesh(const std::string& fileName, const std::string& meshName); + std::vector GetAllFieldNames(const std::string& fileName); + std::vector GetFieldNamesOnMesh(MEDCoupling::TypeOfField type, const std::string& fileName, const std::string& meshName); + std::vector GetCellFieldNamesOnMesh(const std::string& fileName, const std::string& meshName); + std::vector GetNodeFieldNamesOnMesh(const std::string& fileName, const std::string& meshName); + double GetTimeAttachedOnFieldIteration(const std::string& fileName, const std::string& fieldName, int iteration, int order); + void AssignStaticWritePropertiesTo(MEDCoupling::MEDFileWritable& obj); + MEDCoupling::MEDCouplingMesh *ReadMeshFromFile(const std::string& fileName, const std::string& meshName, int meshDimRelToMax=0); + MEDCoupling::MEDCouplingMesh *ReadMeshFromFile(const std::string& fileName, int meshDimRelToMax=0); + MEDCoupling::MEDCouplingUMesh *ReadUMeshFromFile(const std::string& fileName, const std::string& meshName, int meshDimRelToMax=0); + MEDCoupling::MEDCouplingUMesh *ReadUMeshFromFile(const std::string& fileName, int meshDimRelToMax=0); + int ReadUMeshDimFromFile(const std::string& fileName, const std::string& meshName); + MEDCoupling::MEDCouplingField *ReadFieldCell(const std::string& fileName, const std::string& meshName, int meshDimRelToMax, const std::string& fieldName, int iteration, int order); + MEDCoupling::MEDCouplingField *ReadFieldNode(const std::string& fileName, const std::string& meshName, int meshDimRelToMax, const std::string& fieldName, int iteration, int order); + MEDCoupling::MEDCouplingField *ReadFieldGauss(const std::string& fileName, const std::string& meshName, int meshDimRelToMax, const std::string& fieldName, int iteration, int order); + MEDCoupling::MEDCouplingField *ReadFieldGaussNE(const std::string& fileName, const std::string& meshName, int meshDimRelToMax, const std::string& fieldName, int iteration, int order); + void WriteMesh(const std::string& fileName, const MEDCoupling::MEDCouplingMesh *mesh, bool writeFromScratch); + void WriteUMesh(const std::string& fileName, const MEDCoupling::MEDCouplingUMesh *mesh, bool writeFromScratch); + void WriteUMeshDep(const std::string& fileName, const MEDCoupling::MEDCouplingUMesh *mesh, bool writeFromScratch); + void WriteField(const std::string& fileName, const MEDCoupling::MEDCouplingField *f, bool writeFromScratch); + void WriteFieldDep(const std::string& fileName, const MEDCoupling::MEDCouplingField *f, bool writeFromScratch); + void WriteFieldUsingAlreadyWrittenMesh(const std::string& fileName, const MEDCoupling::MEDCouplingField *f); } %rename (MEDFileVersion) MEDFileVersionSwig; @@ -593,32 +593,32 @@ namespace MEDCoupling { public: void copyOptionsFrom(const MEDFileWritable& other) const; - int getTooLongStrPolicy() const throw(INTERP_KERNEL::Exception); - void setTooLongStrPolicy(int newVal) throw(INTERP_KERNEL::Exception); - int getZipConnPolicy() throw(INTERP_KERNEL::Exception); - void setZipConnPolicy(int newVal) throw(INTERP_KERNEL::Exception); + int getTooLongStrPolicy() const; + void setTooLongStrPolicy(int newVal); + int getZipConnPolicy(); + void setZipConnPolicy(int newVal); }; class MEDFileWritableStandAlone : public MEDFileWritable { public: - void write(const std::string& fileName, int mode) const throw(INTERP_KERNEL::Exception); - void write33(const std::string& fileName, int mode) const throw(INTERP_KERNEL::Exception); + void write(const std::string& fileName, int mode) const; + void write33(const std::string& fileName, int mode) const; %extend { - DataArrayByte *serialize() const throw(INTERP_KERNEL::Exception) + DataArrayByte *serialize() const { MCAuto ret(self->serialize()); return ret.retn(); } - PyObject *__getstate__() throw(INTERP_KERNEL::Exception) + PyObject *__getstate__() { PyObject *ret(PyList_New(0)); return ret; } - void __setstate__(PyObject *inp) throw(INTERP_KERNEL::Exception) + void __setstate__(PyObject *inp) { } } @@ -647,14 +647,14 @@ namespace MEDCoupling void setGlobalNodeNumFieldReading(bool b); %extend { - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { std::ostringstream oss; self->reprAll(oss); return oss.str(); } - std::string __repr__() const throw(INTERP_KERNEL::Exception) + std::string __repr__() const { std::ostringstream oss; oss << "MEDFileMeshReadSelector C++ instance at " << self << " (with code=" << self->getCode() << ")."; return oss.str(); @@ -665,13 +665,13 @@ namespace MEDCoupling class MEDFileJointCorrespondence : public RefCountObject, public MEDFileWritable { public: - static MEDFileJointCorrespondence *New() throw(INTERP_KERNEL::Exception); + static MEDFileJointCorrespondence *New(); static MEDFileJointCorrespondence *New(DataArrayInt* correspondence) // nodes - throw(INTERP_KERNEL::Exception); + ; static MEDFileJointCorrespondence *New(DataArrayInt* correspondence, // cells INTERP_KERNEL::NormalizedCellType loc_geo_type, INTERP_KERNEL::NormalizedCellType rem_geo_type) - throw(INTERP_KERNEL::Exception); + ; std::vector getDirectChildrenWithNull() const; MEDFileJointCorrespondence *deepCopy() const; MEDFileJointCorrespondence *shallowCpy() const; @@ -682,32 +682,32 @@ namespace MEDCoupling INTERP_KERNEL::NormalizedCellType getLocalGeometryType() const; void setRemoteGeometryType(INTERP_KERNEL::NormalizedCellType type); INTERP_KERNEL::NormalizedCellType getRemoteGeometryType() const; - void setCorrespondence(DataArrayInt *corr) throw(INTERP_KERNEL::Exception); - void write(const std::string& fileName, int mode, const std::string& localMeshName, const std::string& jointName, int order, int iteration) const throw(INTERP_KERNEL::Exception); - std::string simpleRepr() const throw(INTERP_KERNEL::Exception); + void setCorrespondence(DataArrayInt *corr); + void write(const std::string& fileName, int mode, const std::string& localMeshName, const std::string& jointName, int order, int iteration) const; + std::string simpleRepr() const; %extend { MEDFileJointCorrespondence() { return MEDFileJointCorrespondence::New(); } - MEDFileJointCorrespondence(DataArrayInt* correspondence) throw(INTERP_KERNEL::Exception) + MEDFileJointCorrespondence(DataArrayInt* correspondence) { return MEDFileJointCorrespondence::New(correspondence); } MEDFileJointCorrespondence(DataArrayInt* correspondence, // cells INTERP_KERNEL::NormalizedCellType loc_geo_type, - INTERP_KERNEL::NormalizedCellType rem_geo_type) throw(INTERP_KERNEL::Exception) + INTERP_KERNEL::NormalizedCellType rem_geo_type) { return MEDFileJointCorrespondence::New(correspondence, loc_geo_type, rem_geo_type); } - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->simpleRepr(); } - DataArrayInt *getCorrespondence() const throw(INTERP_KERNEL::Exception) + DataArrayInt *getCorrespondence() const { const DataArrayInt *ret(self->getCorrespondence()); if(ret) @@ -720,8 +720,8 @@ namespace MEDCoupling class MEDFileJointOneStep : public RefCountObject, public MEDFileWritable { public: - static MEDFileJointOneStep *New(int dt=-1, int it=-1) throw(INTERP_KERNEL::Exception); - static MEDFileJointOneStep *New(const std::string& fileName, const std::string& mName, const std::string& jointName, int number=1) throw(INTERP_KERNEL::Exception); + static MEDFileJointOneStep *New(int dt=-1, int it=-1); + static MEDFileJointOneStep *New(const std::string& fileName, const std::string& mName, const std::string& jointName, int number=1); MEDFileJointOneStep *deepCopy() const; MEDFileJointOneStep *shallowCpy() const; bool isEqual(const MEDFileJointOneStep *other) const; @@ -731,8 +731,8 @@ namespace MEDCoupling int getIteration() const; void pushCorrespondence(MEDFileJointCorrespondence* correspondence); int getNumberOfCorrespondences() const; - void write(const std::string& fileName, int mode, const std::string& localMeshName, const std::string& jointName) const throw(INTERP_KERNEL::Exception); - std::string simpleRepr() const throw(INTERP_KERNEL::Exception); + void write(const std::string& fileName, int mode, const std::string& localMeshName, const std::string& jointName) const; + std::string simpleRepr() const; %extend { MEDFileJointOneStep() @@ -740,17 +740,17 @@ namespace MEDCoupling return MEDFileJointOneStep::New(); } - MEDFileJointOneStep(const std::string& fileName, const std::string& mName, const std::string& jointName, int number) throw(INTERP_KERNEL::Exception) + MEDFileJointOneStep(const std::string& fileName, const std::string& mName, const std::string& jointName, int number) { return MEDFileJointOneStep::New(fileName,mName,jointName,number); } - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->simpleRepr(); } - MEDFileJointCorrespondence *getCorrespondenceAtPos(int i) const throw(INTERP_KERNEL::Exception) + MEDFileJointCorrespondence *getCorrespondenceAtPos(int i) const { MEDFileJointCorrespondence *ret(self->getCorrespondenceAtPos(i)); if(ret) @@ -758,7 +758,7 @@ namespace MEDCoupling return ret; } - MEDFileJointCorrespondence *__getitem__(int i) const throw(INTERP_KERNEL::Exception) + MEDFileJointCorrespondence *__getitem__(int i) const { return MEDCoupling_MEDFileJointOneStep_getCorrespondenceAtPos(self,i); } @@ -768,9 +768,9 @@ namespace MEDCoupling class MEDFileJoint : public RefCountObject, public MEDFileWritableStandAlone { public: - static MEDFileJoint *New() throw(INTERP_KERNEL::Exception); - static MEDFileJoint *New(const std::string& fileName, const std::string& mName, int num) throw(INTERP_KERNEL::Exception); - static MEDFileJoint *New(const std::string& jointName, const std::string& locMeshName, const std::string& remoteMeshName, int remoteMeshNum) throw(INTERP_KERNEL::Exception); + static MEDFileJoint *New(); + static MEDFileJoint *New(const std::string& fileName, const std::string& mName, int num); + static MEDFileJoint *New(const std::string& jointName, const std::string& locMeshName, const std::string& remoteMeshName, int remoteMeshNum); MEDFileJoint *deepCopy() const; MEDFileJoint *shallowCpy() const; bool isEqual(const MEDFileJoint *other) const; @@ -782,7 +782,7 @@ namespace MEDCoupling std::string getDescription() const; void setJointName(const std::string& name); std::string getJointName() const; - bool changeJointNames(const std::vector< std::pair >& modifTab) throw(INTERP_KERNEL::Exception); + bool changeJointNames(const std::vector< std::pair >& modifTab); void setDomainNumber(const int& number); int getDomainNumber() const; void pushStep(MEDFileJointOneStep* step); @@ -795,22 +795,22 @@ namespace MEDCoupling return MEDFileJoint::New(); } - MEDFileJoint(const std::string& fileName, const std::string& mName, int num) throw(INTERP_KERNEL::Exception) + MEDFileJoint(const std::string& fileName, const std::string& mName, int num) { return MEDFileJoint::New(fileName,mName,num); } - MEDFileJoint(const std::string& jointName, const std::string& locMeshName, const std::string& remoteMeshName, int remoteMeshNum) throw(INTERP_KERNEL::Exception) + MEDFileJoint(const std::string& jointName, const std::string& locMeshName, const std::string& remoteMeshName, int remoteMeshNum) { return MEDFileJoint::New(jointName,locMeshName,remoteMeshName,remoteMeshNum); } - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->simpleRepr(); } - MEDFileJointOneStep *getStepAtPos(int i) const throw(INTERP_KERNEL::Exception) + MEDFileJointOneStep *getStepAtPos(int i) const { MEDFileJointOneStep *ret(self->getStepAtPos(i)); if(ret) @@ -818,7 +818,7 @@ namespace MEDCoupling return ret; } - MEDFileJointOneStep *__getitem__(int i) throw(INTERP_KERNEL::Exception) + MEDFileJointOneStep *__getitem__(int i) { return MEDCoupling_MEDFileJoint_getStepAtPos(self,i); } @@ -828,18 +828,18 @@ namespace MEDCoupling class MEDFileJoints : public RefCountObject, public MEDFileWritableStandAlone { public: - static MEDFileJoints *New() throw(INTERP_KERNEL::Exception); - static MEDFileJoints *New(const std::string& fileName, const std::string& meshName) throw(INTERP_KERNEL::Exception); + static MEDFileJoints *New(); + static MEDFileJoints *New(const std::string& fileName, const std::string& meshName); MEDFileJoints *deepCopy() const; std::string simpleRepr() const; std::string getMeshName() const; int getNumberOfJoints() const; std::vector getJointsNames() const; - bool changeJointNames(const std::vector< std::pair >& modifTab) throw(INTERP_KERNEL::Exception); - void resize(int newSize) throw(INTERP_KERNEL::Exception); + bool changeJointNames(const std::vector< std::pair >& modifTab); + void resize(int newSize); void pushJoint(MEDFileJoint *joint); - void setJointAtPos(int i, MEDFileJoint *joint) throw(INTERP_KERNEL::Exception); - void destroyJointAtPos(int i) throw(INTERP_KERNEL::Exception); + void setJointAtPos(int i, MEDFileJoint *joint); + void destroyJointAtPos(int i); %extend { MEDFileJoints() @@ -847,17 +847,17 @@ namespace MEDCoupling return MEDFileJoints::New(); } - MEDFileJoints(const std::string& fileName, const std::string& meshName) throw(INTERP_KERNEL::Exception) + MEDFileJoints(const std::string& fileName, const std::string& meshName) { return MEDFileJoints::New(fileName,meshName); } - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->simpleRepr(); } - MEDFileJoint *__getitem__(PyObject *obj) throw(INTERP_KERNEL::Exception) + MEDFileJoint *__getitem__(PyObject *obj) { static const char msg[]="MEDFileJoints::__getitem__ : only integer or string with meshname supported !"; if(PyInt_Check(obj)) @@ -873,12 +873,12 @@ namespace MEDCoupling return ret; } - int __len__() const throw(INTERP_KERNEL::Exception) + int __len__() const { return self->getNumberOfJoints(); } - MEDFileJoint *getJointAtPos(int i) const throw(INTERP_KERNEL::Exception) + MEDFileJoint *getJointAtPos(int i) const { MEDFileJoint *ret=self->getJointAtPos(i); if(ret) @@ -886,7 +886,7 @@ namespace MEDCoupling return ret; } - MEDFileJoint *getJointWithName(const std::string& paramName) const throw(INTERP_KERNEL::Exception) + MEDFileJoint *getJointWithName(const std::string& paramName) const { MEDFileJoint *ret=self->getJointWithName(paramName); if(ret) @@ -932,18 +932,18 @@ namespace MEDCoupling public: void clear(); std::size_t size() const; - void setArray(int meshDimRelToMax, DataArrayInt *da) throw(INTERP_KERNEL::Exception); - void setArrayForType(INTERP_KERNEL::NormalizedCellType type, DataArrayInt *da) throw(INTERP_KERNEL::Exception); + void setArray(int meshDimRelToMax, DataArrayInt *da); + void setArrayForType(INTERP_KERNEL::NormalizedCellType type, DataArrayInt *da); %extend { - DataArrayInt *getArray(INTERP_KERNEL::NormalizedCellType type) throw(INTERP_KERNEL::Exception) + DataArrayInt *getArray(INTERP_KERNEL::NormalizedCellType type) { DataArrayInt *ret(self->getArray(type)); if(ret) ret->incrRef(); return ret; } - PyObject *getTypes() const throw(INTERP_KERNEL::Exception) + PyObject *getTypes() const { std::vector result(self->getTypes()); std::vector::const_iterator iL=result.begin(); @@ -1003,26 +1003,26 @@ namespace MEDCoupling MEDFileEquivalences(); public: int size() const; - std::vector getEquivalenceNames() const throw(INTERP_KERNEL::Exception); - void killEquivalenceWithName(const std::string& name) throw(INTERP_KERNEL::Exception); - void killEquivalenceAt(int i) throw(INTERP_KERNEL::Exception); + std::vector getEquivalenceNames() const; + void killEquivalenceWithName(const std::string& name); + void killEquivalenceAt(int i); void clear(); %extend { - MEDFileEquivalencePair *getEquivalence(int i) throw(INTERP_KERNEL::Exception) + MEDFileEquivalencePair *getEquivalence(int i) { MEDFileEquivalencePair *ret(self->getEquivalence(i)); if(ret) ret->incrRef(); return ret; } - MEDFileEquivalencePair *getEquivalenceWithName(const std::string& name) throw(INTERP_KERNEL::Exception) + MEDFileEquivalencePair *getEquivalenceWithName(const std::string& name) { MEDFileEquivalencePair *ret(self->getEquivalenceWithName(name)); if(ret) ret->incrRef(); return ret; } - MEDFileEquivalencePair *appendEmptyEquivalenceWithName(const std::string& name) throw(INTERP_KERNEL::Exception) + MEDFileEquivalencePair *appendEmptyEquivalenceWithName(const std::string& name) { MEDFileEquivalencePair *ret(self->appendEmptyEquivalenceWithName(name)); if(ret) ret->incrRef(); @@ -1034,13 +1034,13 @@ namespace MEDCoupling class MEDFileMesh : public RefCountObject, public MEDFileWritableStandAlone { public: - static MEDFileMesh *New(const std::string& fileName, MEDFileMeshReadSelector *mrs=0) throw(INTERP_KERNEL::Exception); - static MEDFileMesh *New(const std::string& fileName, const std::string& mName, int dt=-1, int it=-1, MEDFileMeshReadSelector *mrs=0) throw(INTERP_KERNEL::Exception); - static MEDFileMesh *New(DataArrayByte *db) throw(INTERP_KERNEL::Exception); - virtual MEDFileMesh *createNewEmpty() const throw(INTERP_KERNEL::Exception); - virtual MEDFileMesh *deepCopy() const throw(INTERP_KERNEL::Exception); - virtual MEDFileMesh *shallowCpy() const throw(INTERP_KERNEL::Exception); - virtual void clearNonDiscrAttributes() const throw(INTERP_KERNEL::Exception); + static MEDFileMesh *New(const std::string& fileName, MEDFileMeshReadSelector *mrs=0); + static MEDFileMesh *New(const std::string& fileName, const std::string& mName, int dt=-1, int it=-1, MEDFileMeshReadSelector *mrs=0); + static MEDFileMesh *New(DataArrayByte *db); + virtual MEDFileMesh *createNewEmpty() const; + virtual MEDFileMesh *deepCopy() const; + virtual MEDFileMesh *shallowCpy() const; + virtual void clearNonDiscrAttributes() const; void setName(const std::string& name); std::string getName(); std::string getUnivName() const; @@ -1059,128 +1059,128 @@ namespace MEDCoupling std::string getTimeUnit() const; void setAxisType(MEDCouplingAxisType at); MEDCouplingAxisType getAxisType() const; - virtual int getNumberOfNodes() const throw(INTERP_KERNEL::Exception); - virtual int getNumberOfCellsAtLevel(int meshDimRelToMaxExt) const throw(INTERP_KERNEL::Exception); - virtual bool hasImplicitPart() const throw(INTERP_KERNEL::Exception); - virtual int buildImplicitPartIfAny(INTERP_KERNEL::NormalizedCellType gt) const throw(INTERP_KERNEL::Exception); - virtual void releaseImplicitPartIfAny() const throw(INTERP_KERNEL::Exception); - virtual int getNumberOfCellsWithType(INTERP_KERNEL::NormalizedCellType ct) const throw(INTERP_KERNEL::Exception); - virtual std::vector getFamArrNonEmptyLevelsExt() const throw(INTERP_KERNEL::Exception); - virtual std::vector getNumArrNonEmptyLevelsExt() const throw(INTERP_KERNEL::Exception); - virtual std::vector getNameArrNonEmptyLevelsExt() const throw(INTERP_KERNEL::Exception); - virtual std::vector getDistributionOfTypes(int meshDimRelToMax) const throw(INTERP_KERNEL::Exception); - virtual MEDFileMesh *cartesianize() const throw(INTERP_KERNEL::Exception); - std::vector getNonEmptyLevels() const throw(INTERP_KERNEL::Exception); - std::vector getNonEmptyLevelsExt() const throw(INTERP_KERNEL::Exception); - int getSizeAtLevel(int meshDimRelToMaxExt) const throw(INTERP_KERNEL::Exception); + virtual int getNumberOfNodes() const; + virtual int getNumberOfCellsAtLevel(int meshDimRelToMaxExt) const; + virtual bool hasImplicitPart() const; + virtual int buildImplicitPartIfAny(INTERP_KERNEL::NormalizedCellType gt) const; + virtual void releaseImplicitPartIfAny() const; + virtual int getNumberOfCellsWithType(INTERP_KERNEL::NormalizedCellType ct) const; + virtual std::vector getFamArrNonEmptyLevelsExt() const; + virtual std::vector getNumArrNonEmptyLevelsExt() const; + virtual std::vector getNameArrNonEmptyLevelsExt() const; + virtual std::vector getDistributionOfTypes(int meshDimRelToMax) const; + virtual MEDFileMesh *cartesianize() const; + std::vector getNonEmptyLevels() const; + std::vector getNonEmptyLevelsExt() const; + int getSizeAtLevel(int meshDimRelToMaxExt) const; // - bool existsGroup(const std::string& groupName) const throw(INTERP_KERNEL::Exception); - bool existsFamily(int famId) const throw(INTERP_KERNEL::Exception); - bool existsFamily(const std::string& familyName) const throw(INTERP_KERNEL::Exception); - void setFamilyId(const std::string& familyName, int id) throw(INTERP_KERNEL::Exception); - void setFamilyIdUnique(const std::string& familyName, int id) throw(INTERP_KERNEL::Exception); - void addFamily(const std::string& familyName, int id) throw(INTERP_KERNEL::Exception); - void addFamilyOnGrp(const std::string& grpName, const std::string& famName) throw(INTERP_KERNEL::Exception); - virtual void createGroupOnAll(int meshDimRelToMaxExt, const std::string& groupName) throw(INTERP_KERNEL::Exception); - virtual bool keepFamIdsOnlyOnLevs(const std::vector& famIds, const std::vector& levs) throw(INTERP_KERNEL::Exception); - void copyFamGrpMapsFrom(const MEDFileMesh& other) throw(INTERP_KERNEL::Exception); - void clearGrpMap() throw(INTERP_KERNEL::Exception); - void clearFamMap() throw(INTERP_KERNEL::Exception); - void clearFamGrpMaps() throw(INTERP_KERNEL::Exception); - const std::map& getFamilyInfo() const throw(INTERP_KERNEL::Exception); - const std::map >& getGroupInfo() const throw(INTERP_KERNEL::Exception); - std::vector getFamiliesOnGroup(const std::string& name) const throw(INTERP_KERNEL::Exception); - std::vector getFamiliesOnGroups(const std::vector& grps) const throw(INTERP_KERNEL::Exception); - std::vector getFamiliesIdsOnGroup(const std::string& name) const throw(INTERP_KERNEL::Exception); - void setFamiliesOnGroup(const std::string& name, const std::vector& fams) throw(INTERP_KERNEL::Exception); - void setFamiliesIdsOnGroup(const std::string& name, const std::vector& famIds) throw(INTERP_KERNEL::Exception); - std::vector getGroupsOnFamily(const std::string& name) const throw(INTERP_KERNEL::Exception); - void setGroupsOnFamily(const std::string& famName, const std::vector& grps) throw(INTERP_KERNEL::Exception); - std::vector getGroupsNames() const throw(INTERP_KERNEL::Exception); - std::vector getFamiliesNames() const throw(INTERP_KERNEL::Exception); - std::vector getGroupsOnSpecifiedLev(int meshDimRelToMaxExt) const throw(INTERP_KERNEL::Exception); - std::vector getGrpNonEmptyLevelsExt(const std::string& grp) const throw(INTERP_KERNEL::Exception); - std::vector getGrpNonEmptyLevels(const std::string& grp) const throw(INTERP_KERNEL::Exception); - std::vector getFamsNonEmptyLevels(const std::vector& fams) const throw(INTERP_KERNEL::Exception); - std::vector getFamsNonEmptyLevelsExt(const std::vector& fams) const throw(INTERP_KERNEL::Exception); - std::vector getGrpsNonEmptyLevels(const std::vector& grps) const throw(INTERP_KERNEL::Exception); - std::vector getGrpsNonEmptyLevelsExt(const std::vector& grps) const throw(INTERP_KERNEL::Exception); - std::vector getFamNonEmptyLevels(const std::string& fam) const throw(INTERP_KERNEL::Exception); - std::vector getFamNonEmptyLevelsExt(const std::string& fam) const throw(INTERP_KERNEL::Exception); - std::vector getFamiliesNamesWithFilePointOfView() const throw(INTERP_KERNEL::Exception); + bool existsGroup(const std::string& groupName) const; + bool existsFamily(int famId) const; + bool existsFamily(const std::string& familyName) const; + void setFamilyId(const std::string& familyName, int id); + void setFamilyIdUnique(const std::string& familyName, int id); + void addFamily(const std::string& familyName, int id); + void addFamilyOnGrp(const std::string& grpName, const std::string& famName); + virtual void createGroupOnAll(int meshDimRelToMaxExt, const std::string& groupName); + virtual bool keepFamIdsOnlyOnLevs(const std::vector& famIds, const std::vector& levs); + void copyFamGrpMapsFrom(const MEDFileMesh& other); + void clearGrpMap(); + void clearFamMap(); + void clearFamGrpMaps(); + const std::map& getFamilyInfo() const; + const std::map >& getGroupInfo() const; + std::vector getFamiliesOnGroup(const std::string& name) const; + std::vector getFamiliesOnGroups(const std::vector& grps) const; + std::vector getFamiliesIdsOnGroup(const std::string& name) const; + void setFamiliesOnGroup(const std::string& name, const std::vector& fams); + void setFamiliesIdsOnGroup(const std::string& name, const std::vector& famIds); + std::vector getGroupsOnFamily(const std::string& name) const; + void setGroupsOnFamily(const std::string& famName, const std::vector& grps); + std::vector getGroupsNames() const; + std::vector getFamiliesNames() const; + std::vector getGroupsOnSpecifiedLev(int meshDimRelToMaxExt) const; + std::vector getGrpNonEmptyLevelsExt(const std::string& grp) const; + std::vector getGrpNonEmptyLevels(const std::string& grp) const; + std::vector getFamsNonEmptyLevels(const std::vector& fams) const; + std::vector getFamsNonEmptyLevelsExt(const std::vector& fams) const; + std::vector getGrpsNonEmptyLevels(const std::vector& grps) const; + std::vector getGrpsNonEmptyLevelsExt(const std::vector& grps) const; + std::vector getFamNonEmptyLevels(const std::string& fam) const; + std::vector getFamNonEmptyLevelsExt(const std::string& fam) const; + std::vector getFamiliesNamesWithFilePointOfView() const; static std::string GetMagicFamilyStr(); - void assignFamilyNameWithGroupName() throw(INTERP_KERNEL::Exception); - std::vector removeEmptyGroups() throw(INTERP_KERNEL::Exception); - void removeGroupAtLevel(int meshDimRelToMaxExt, const std::string& name) throw(INTERP_KERNEL::Exception); - void removeGroup(const std::string& name) throw(INTERP_KERNEL::Exception); - void removeFamily(const std::string& name) throw(INTERP_KERNEL::Exception); - std::vector removeOrphanGroups() throw(INTERP_KERNEL::Exception); - std::vector removeOrphanFamilies() throw(INTERP_KERNEL::Exception); - void removeFamiliesReferedByNoGroups() throw(INTERP_KERNEL::Exception); - void rearrangeFamilies() throw(INTERP_KERNEL::Exception); - void checkOrphanFamilyZero() const throw(INTERP_KERNEL::Exception); - void changeGroupName(const std::string& oldName, const std::string& newName) throw(INTERP_KERNEL::Exception); - void changeFamilyName(const std::string& oldName, const std::string& newName) throw(INTERP_KERNEL::Exception); - void changeFamilyId(int oldId, int newId) throw(INTERP_KERNEL::Exception); - void changeAllGroupsContainingFamily(const std::string& familyNameToChange, const std::vector& newFamiliesNames) throw(INTERP_KERNEL::Exception); + void assignFamilyNameWithGroupName(); + std::vector removeEmptyGroups(); + void removeGroupAtLevel(int meshDimRelToMaxExt, const std::string& name); + void removeGroup(const std::string& name); + void removeFamily(const std::string& name); + std::vector removeOrphanGroups(); + std::vector removeOrphanFamilies(); + void removeFamiliesReferedByNoGroups(); + void rearrangeFamilies(); + void checkOrphanFamilyZero() const; + void changeGroupName(const std::string& oldName, const std::string& newName); + void changeFamilyName(const std::string& oldName, const std::string& newName); + void changeFamilyId(int oldId, int newId); + void changeAllGroupsContainingFamily(const std::string& familyNameToChange, const std::vector& newFamiliesNames); void setFamilyInfo(const std::map& info); void setGroupInfo(const std::map >&info); - int getFamilyId(const std::string& name) const throw(INTERP_KERNEL::Exception); - int getMaxAbsFamilyId() const throw(INTERP_KERNEL::Exception); - int getMaxFamilyId() const throw(INTERP_KERNEL::Exception); - int getMinFamilyId() const throw(INTERP_KERNEL::Exception); - int getTheMaxAbsFamilyId() const throw(INTERP_KERNEL::Exception); - int getTheMaxFamilyId() const throw(INTERP_KERNEL::Exception); - int getTheMinFamilyId() const throw(INTERP_KERNEL::Exception); - virtual int getMaxAbsFamilyIdInArrays() const throw(INTERP_KERNEL::Exception); - virtual int getMaxFamilyIdInArrays() const throw(INTERP_KERNEL::Exception); - virtual int getMinFamilyIdInArrays() const throw(INTERP_KERNEL::Exception); - DataArrayInt *getAllFamiliesIdsReferenced() const throw(INTERP_KERNEL::Exception); - DataArrayInt *computeAllFamilyIdsInUse() const throw(INTERP_KERNEL::Exception); - std::vector getFamiliesIds(const std::vector& famNames) const throw(INTERP_KERNEL::Exception); - std::string getFamilyNameGivenId(int id) const throw(INTERP_KERNEL::Exception); - bool ensureDifferentFamIdsPerLevel() throw(INTERP_KERNEL::Exception); - void normalizeFamIdsTrio() throw(INTERP_KERNEL::Exception); - void normalizeFamIdsMEDFile() throw(INTERP_KERNEL::Exception); - virtual int getMeshDimension() const throw(INTERP_KERNEL::Exception); - virtual std::string simpleRepr() const throw(INTERP_KERNEL::Exception); - virtual std::string advancedRepr() const throw(INTERP_KERNEL::Exception); + int getFamilyId(const std::string& name) const; + int getMaxAbsFamilyId() const; + int getMaxFamilyId() const; + int getMinFamilyId() const; + int getTheMaxAbsFamilyId() const; + int getTheMaxFamilyId() const; + int getTheMinFamilyId() const; + virtual int getMaxAbsFamilyIdInArrays() const; + virtual int getMaxFamilyIdInArrays() const; + virtual int getMinFamilyIdInArrays() const; + DataArrayInt *getAllFamiliesIdsReferenced() const; + DataArrayInt *computeAllFamilyIdsInUse() const; + std::vector getFamiliesIds(const std::vector& famNames) const; + std::string getFamilyNameGivenId(int id) const; + bool ensureDifferentFamIdsPerLevel(); + void normalizeFamIdsTrio(); + void normalizeFamIdsMEDFile(); + virtual int getMeshDimension() const; + virtual std::string simpleRepr() const; + virtual std::string advancedRepr() const; // - virtual MEDCouplingMesh *getMeshAtLevel(int meshDimRelToMax, bool renum=false) const throw(INTERP_KERNEL::Exception); - virtual void setFamilyFieldArr(int meshDimRelToMaxExt, DataArrayInt *famArr) throw(INTERP_KERNEL::Exception); - virtual void setRenumFieldArr(int meshDimRelToMaxExt, DataArrayInt *renumArr) throw(INTERP_KERNEL::Exception); - virtual void setNameFieldAtLevel(int meshDimRelToMaxExt, DataArrayAsciiChar *nameArr) throw(INTERP_KERNEL::Exception); - virtual void setGlobalNumFieldAtLevel(int meshDimRelToMaxExt, DataArrayInt *globalNumArr) throw(INTERP_KERNEL::Exception); - virtual void addNodeGroup(const DataArrayInt *ids) throw(INTERP_KERNEL::Exception); - virtual void addGroup(int meshDimRelToMaxExt, const DataArrayInt *ids) throw(INTERP_KERNEL::Exception); - virtual DataArrayInt *getFamiliesArr(int meshDimRelToMaxExt, const std::vector& fams, bool renum=false) const throw(INTERP_KERNEL::Exception); - virtual DataArrayInt *getGroupsArr(int meshDimRelToMaxExt, const std::vector& grps, bool renum=false) const throw(INTERP_KERNEL::Exception); - virtual DataArrayInt *getGroupArr(int meshDimRelToMaxExt, const std::string& grp, bool renum=false) const throw(INTERP_KERNEL::Exception); - virtual DataArrayInt *getFamilyArr(int meshDimRelToMaxExt, const std::string& fam, bool renum=false) const throw(INTERP_KERNEL::Exception); - virtual DataArrayInt *getNodeGroupArr(const std::string& grp, bool renum=false) const throw(INTERP_KERNEL::Exception); - virtual DataArrayInt *getNodeGroupsArr(const std::vector& grps, bool renum=false) const throw(INTERP_KERNEL::Exception); - virtual DataArrayInt *getNodeFamilyArr(const std::string& fam, bool renum=false) const throw(INTERP_KERNEL::Exception); - virtual DataArrayInt *getNodeFamiliesArr(const std::vector& fams, bool renum=false) const throw(INTERP_KERNEL::Exception); + virtual MEDCouplingMesh *getMeshAtLevel(int meshDimRelToMax, bool renum=false) const; + virtual void setFamilyFieldArr(int meshDimRelToMaxExt, DataArrayInt *famArr); + virtual void setRenumFieldArr(int meshDimRelToMaxExt, DataArrayInt *renumArr); + virtual void setNameFieldAtLevel(int meshDimRelToMaxExt, DataArrayAsciiChar *nameArr); + virtual void setGlobalNumFieldAtLevel(int meshDimRelToMaxExt, DataArrayInt *globalNumArr); + virtual void addNodeGroup(const DataArrayInt *ids); + virtual void addGroup(int meshDimRelToMaxExt, const DataArrayInt *ids); + virtual DataArrayInt *getFamiliesArr(int meshDimRelToMaxExt, const std::vector& fams, bool renum=false) const; + virtual DataArrayInt *getGroupsArr(int meshDimRelToMaxExt, const std::vector& grps, bool renum=false) const; + virtual DataArrayInt *getGroupArr(int meshDimRelToMaxExt, const std::string& grp, bool renum=false) const; + virtual DataArrayInt *getFamilyArr(int meshDimRelToMaxExt, const std::string& fam, bool renum=false) const; + virtual DataArrayInt *getNodeGroupArr(const std::string& grp, bool renum=false) const; + virtual DataArrayInt *getNodeGroupsArr(const std::vector& grps, bool renum=false) const; + virtual DataArrayInt *getNodeFamilyArr(const std::string& fam, bool renum=false) const; + virtual DataArrayInt *getNodeFamiliesArr(const std::vector& fams, bool renum=false) const; int getNumberOfJoints(); MEDFileJoints *getJoints(); void setJoints( MEDFileJoints* joints ); void initializeEquivalences(); void killEquivalences(); - bool presenceOfStructureElements() const throw(INTERP_KERNEL::Exception); - void killStructureElements() throw(INTERP_KERNEL::Exception); + bool presenceOfStructureElements() const; + void killStructureElements(); %extend { - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->simpleRepr(); } - MEDCouplingMesh *__getitem__(int meshDimRelToMaxExt) const throw(INTERP_KERNEL::Exception) + MEDCouplingMesh *__getitem__(int meshDimRelToMaxExt) const { return self->getMeshAtLevel(meshDimRelToMaxExt,false); } - PyObject *getTime() throw(INTERP_KERNEL::Exception) + PyObject *getTime() { int tmp1,tmp2; double tmp0=self->getTime(tmp1,tmp2); @@ -1191,7 +1191,7 @@ namespace MEDCoupling return res; } - virtual PyObject *isEqual(const MEDFileMesh *other, double eps) const throw(INTERP_KERNEL::Exception) + virtual PyObject *isEqual(const MEDFileMesh *other, double eps) const { std::string what; bool ret0=self->isEqual(other,eps,what); @@ -1203,14 +1203,14 @@ namespace MEDCoupling return res; } - void setGroupsAtLevel(int meshDimRelToMaxExt, PyObject *li, bool renum=false) throw(INTERP_KERNEL::Exception) + void setGroupsAtLevel(int meshDimRelToMaxExt, PyObject *li, bool renum=false) { std::vector grps; convertFromPyObjVectorOfObj(li,SWIGTYPE_p_MEDCoupling__DataArrayInt,"DataArrayInt",grps); self->setGroupsAtLevel(meshDimRelToMaxExt,grps,renum); } - PyObject *areFamsEqual(const MEDFileMesh *other) const throw(INTERP_KERNEL::Exception) + PyObject *areFamsEqual(const MEDFileMesh *other) const { std::string what; bool ret0=self->areFamsEqual(other,what); @@ -1222,7 +1222,7 @@ namespace MEDCoupling return res; } - PyObject *areGrpsEqual(const MEDFileMesh *other) const throw(INTERP_KERNEL::Exception) + PyObject *areGrpsEqual(const MEDFileMesh *other) const { std::string what; bool ret0=self->areGrpsEqual(other,what); @@ -1234,7 +1234,7 @@ namespace MEDCoupling return res; } - PyObject *getAllGeoTypes() const throw(INTERP_KERNEL::Exception) + PyObject *getAllGeoTypes() const { std::vector result(self->getAllGeoTypes()); std::vector::const_iterator iL=result.begin(); @@ -1244,7 +1244,7 @@ namespace MEDCoupling return res; } - PyObject *getGeoTypesAtLevel(int meshDimRelToMax) const throw(INTERP_KERNEL::Exception) + PyObject *getGeoTypesAtLevel(int meshDimRelToMax) const { std::vector result(self->getGeoTypesAtLevel(meshDimRelToMax)); std::vector::const_iterator iL=result.begin(); @@ -1254,7 +1254,7 @@ namespace MEDCoupling return res; } - PyObject *getFamilyFieldAtLevel(int meshDimRelToMaxExt) const throw(INTERP_KERNEL::Exception) + PyObject *getFamilyFieldAtLevel(int meshDimRelToMaxExt) const { const DataArrayInt *tmp=self->getFamilyFieldAtLevel(meshDimRelToMaxExt); if(tmp) @@ -1262,7 +1262,7 @@ namespace MEDCoupling return SWIG_NewPointerObj(SWIG_as_voidptr(tmp),SWIGTYPE_p_MEDCoupling__DataArrayInt, SWIG_POINTER_OWN | 0 ); } - PyObject *getOrCreateAndGetFamilyFieldAtLevel(int meshDimRelToMaxExt) throw(INTERP_KERNEL::Exception) + PyObject *getOrCreateAndGetFamilyFieldAtLevel(int meshDimRelToMaxExt) { const DataArrayInt *tmp=self->getOrCreateAndGetFamilyFieldAtLevel(meshDimRelToMaxExt); if(tmp) @@ -1270,7 +1270,7 @@ namespace MEDCoupling return SWIG_NewPointerObj(SWIG_as_voidptr(tmp),SWIGTYPE_p_MEDCoupling__DataArrayInt, SWIG_POINTER_OWN | 0 ); } - PyObject *getNumberFieldAtLevel(int meshDimRelToMaxExt) const throw(INTERP_KERNEL::Exception) + PyObject *getNumberFieldAtLevel(int meshDimRelToMaxExt) const { const DataArrayInt *tmp=self->getNumberFieldAtLevel(meshDimRelToMaxExt); if(tmp) @@ -1278,7 +1278,7 @@ namespace MEDCoupling return SWIG_NewPointerObj(SWIG_as_voidptr(tmp),SWIGTYPE_p_MEDCoupling__DataArrayInt, SWIG_POINTER_OWN | 0 ); } - PyObject *getRevNumberFieldAtLevel(int meshDimRelToMaxExt) const throw(INTERP_KERNEL::Exception) + PyObject *getRevNumberFieldAtLevel(int meshDimRelToMaxExt) const { const DataArrayInt *tmp=self->getRevNumberFieldAtLevel(meshDimRelToMaxExt); if(tmp) @@ -1286,7 +1286,7 @@ namespace MEDCoupling return SWIG_NewPointerObj(SWIG_as_voidptr(tmp),SWIGTYPE_p_MEDCoupling__DataArrayInt, SWIG_POINTER_OWN | 0 ); } - PyObject *getNameFieldAtLevel(int meshDimRelToMaxExt) const throw(INTERP_KERNEL::Exception) + PyObject *getNameFieldAtLevel(int meshDimRelToMaxExt) const { const DataArrayAsciiChar *tmp=self->getNameFieldAtLevel(meshDimRelToMaxExt); if(tmp) @@ -1294,7 +1294,7 @@ namespace MEDCoupling return SWIG_NewPointerObj(SWIG_as_voidptr(tmp),SWIGTYPE_p_MEDCoupling__DataArrayAsciiChar, SWIG_POINTER_OWN | 0 ); } - PyObject *findOrCreateAndGiveFamilyWithId(int id, bool& created) throw(INTERP_KERNEL::Exception) + PyObject *findOrCreateAndGiveFamilyWithId(int id, bool& created) { bool ret1; std::string ret0=self->findOrCreateAndGiveFamilyWithId(id,ret1); @@ -1304,7 +1304,7 @@ namespace MEDCoupling return ret; } - PyObject *unPolyze() throw(INTERP_KERNEL::Exception) + PyObject *unPolyze() { DataArrayInt *ret3=0; std::vector ret1,ret2; @@ -1338,14 +1338,14 @@ namespace MEDCoupling return ret; } - MEDFileEquivalences *getEquivalences() throw(INTERP_KERNEL::Exception) + MEDFileEquivalences *getEquivalences() { MEDFileEquivalences *ret(self->getEquivalences()); if(ret) ret->incrRef(); return ret; } - virtual DataArrayInt *getGlobalNumFieldAtLevel(int meshDimRelToMaxExt) const throw(INTERP_KERNEL::Exception) + virtual DataArrayInt *getGlobalNumFieldAtLevel(int meshDimRelToMaxExt) const { MCAuto ret(self->getGlobalNumFieldAtLevel(meshDimRelToMaxExt)); return ret.retn(); @@ -1356,63 +1356,63 @@ namespace MEDCoupling class MEDFileUMesh : public MEDFileMesh { public: - static MEDFileUMesh *New(const std::string& fileName, const std::string& mName, int dt=-1, int it=-1, MEDFileMeshReadSelector *mrs=0) throw(INTERP_KERNEL::Exception); - static MEDFileUMesh *New(const std::string& fileName, MEDFileMeshReadSelector *mrs=0) throw(INTERP_KERNEL::Exception); - static MEDFileUMesh *New(const MEDCouplingMappedExtrudedMesh *mem) throw(INTERP_KERNEL::Exception); - static MEDFileUMesh *New(DataArrayByte *db) throw(INTERP_KERNEL::Exception); + static MEDFileUMesh *New(const std::string& fileName, const std::string& mName, int dt=-1, int it=-1, MEDFileMeshReadSelector *mrs=0); + static MEDFileUMesh *New(const std::string& fileName, MEDFileMeshReadSelector *mrs=0); + static MEDFileUMesh *New(const MEDCouplingMappedExtrudedMesh *mem); + static MEDFileUMesh *New(DataArrayByte *db); static MEDFileUMesh *New(); static const char *GetSpeStr4ExtMesh(); ~MEDFileUMesh(); - int getSpaceDimension() const throw(INTERP_KERNEL::Exception); - int getRelativeLevOnGeoType(INTERP_KERNEL::NormalizedCellType gt) const throw(INTERP_KERNEL::Exception); - void checkConsistency() const throw(INTERP_KERNEL::Exception); - void checkSMESHConsistency() const throw(INTERP_KERNEL::Exception); + int getSpaceDimension() const; + int getRelativeLevOnGeoType(INTERP_KERNEL::NormalizedCellType gt) const; + void checkConsistency() const; + void checkSMESHConsistency() const; void clearNodeAndCellNumbers(); // - MEDCouplingUMesh *getGroup(int meshDimRelToMaxExt, const std::string& grp, bool renum=false) const throw(INTERP_KERNEL::Exception); - MEDCouplingUMesh *getGroups(int meshDimRelToMaxExt, const std::vector& grps, bool renum=false) const throw(INTERP_KERNEL::Exception); - MEDCouplingUMesh *getFamily(int meshDimRelToMaxExt, const std::string& fam, bool renum=false) const throw(INTERP_KERNEL::Exception); - MEDCouplingUMesh *getFamilies(int meshDimRelToMaxExt, const std::vector& fams, bool renum=false) const throw(INTERP_KERNEL::Exception); - DataArrayInt *getNodeGroupsArr(const std::vector& grps, bool renum=false) const throw(INTERP_KERNEL::Exception); - MEDCouplingUMesh *getLevel0Mesh(bool renum=false) const throw(INTERP_KERNEL::Exception); - MEDCouplingUMesh *getLevelM1Mesh(bool renum=false) const throw(INTERP_KERNEL::Exception); - MEDCouplingUMesh *getLevelM2Mesh(bool renum=false) const throw(INTERP_KERNEL::Exception); - MEDCouplingUMesh *getLevelM3Mesh(bool renum=false) const throw(INTERP_KERNEL::Exception); - void forceComputationOfParts() const throw(INTERP_KERNEL::Exception); + MEDCouplingUMesh *getGroup(int meshDimRelToMaxExt, const std::string& grp, bool renum=false) const; + MEDCouplingUMesh *getGroups(int meshDimRelToMaxExt, const std::vector& grps, bool renum=false) const; + MEDCouplingUMesh *getFamily(int meshDimRelToMaxExt, const std::string& fam, bool renum=false) const; + MEDCouplingUMesh *getFamilies(int meshDimRelToMaxExt, const std::vector& fams, bool renum=false) const; + DataArrayInt *getNodeGroupsArr(const std::vector& grps, bool renum=false) const; + MEDCouplingUMesh *getLevel0Mesh(bool renum=false) const; + MEDCouplingUMesh *getLevelM1Mesh(bool renum=false) const; + MEDCouplingUMesh *getLevelM2Mesh(bool renum=false) const; + MEDCouplingUMesh *getLevelM3Mesh(bool renum=false) const; + void forceComputationOfParts() const; // - void setFamilyNameAttachedOnId(int id, const std::string& newFamName) throw(INTERP_KERNEL::Exception); - void setCoords(DataArrayDouble *coords) throw(INTERP_KERNEL::Exception); - void setCoordsForced(DataArrayDouble *coords) throw(INTERP_KERNEL::Exception); - void eraseGroupsAtLevel(int meshDimRelToMaxExt) throw(INTERP_KERNEL::Exception); - void removeMeshAtLevel(int meshDimRelToMax) throw(INTERP_KERNEL::Exception); - void setMeshAtLevel(int meshDimRelToMax, MEDCoupling1GTUMesh *m) throw(INTERP_KERNEL::Exception); - void setMeshAtLevel(int meshDimRelToMax, MEDCouplingUMesh *m, bool newOrOld=false) throw(INTERP_KERNEL::Exception); - void optimizeFamilies() throw(INTERP_KERNEL::Exception); - DataArrayInt *zipCoords() throw(INTERP_KERNEL::Exception); - DataArrayInt *extractFamilyFieldOnGeoType(INTERP_KERNEL::NormalizedCellType gt) const throw(INTERP_KERNEL::Exception); - DataArrayInt *extractNumberFieldOnGeoType(INTERP_KERNEL::NormalizedCellType gt) const throw(INTERP_KERNEL::Exception); - MEDFileUMesh *buildExtrudedMesh(const MEDCouplingUMesh *m1D, int policy) const throw(INTERP_KERNEL::Exception); - MEDFileUMesh *linearToQuadratic(int conversionType=0, double eps=1e-12) const throw(INTERP_KERNEL::Exception); - MEDFileUMesh *quadraticToLinear(double eps=1e-12) const throw(INTERP_KERNEL::Exception); - MEDCouplingMappedExtrudedMesh *convertToExtrudedMesh() const throw(INTERP_KERNEL::Exception); + void setFamilyNameAttachedOnId(int id, const std::string& newFamName); + void setCoords(DataArrayDouble *coords); + void setCoordsForced(DataArrayDouble *coords); + void eraseGroupsAtLevel(int meshDimRelToMaxExt); + void removeMeshAtLevel(int meshDimRelToMax); + void setMeshAtLevel(int meshDimRelToMax, MEDCoupling1GTUMesh *m); + void setMeshAtLevel(int meshDimRelToMax, MEDCouplingUMesh *m, bool newOrOld=false); + void optimizeFamilies(); + DataArrayInt *zipCoords(); + DataArrayInt *extractFamilyFieldOnGeoType(INTERP_KERNEL::NormalizedCellType gt) const; + DataArrayInt *extractNumberFieldOnGeoType(INTERP_KERNEL::NormalizedCellType gt) const; + MEDFileUMesh *buildExtrudedMesh(const MEDCouplingUMesh *m1D, int policy) const; + MEDFileUMesh *linearToQuadratic(int conversionType=0, double eps=1e-12) const; + MEDFileUMesh *quadraticToLinear(double eps=1e-12) const; + MEDCouplingMappedExtrudedMesh *convertToExtrudedMesh() const; %extend { - MEDFileUMesh(const std::string& fileName, const std::string& mName, int dt=-1, int it=-1, MEDFileMeshReadSelector *mrs=0) throw(INTERP_KERNEL::Exception) + MEDFileUMesh(const std::string& fileName, const std::string& mName, int dt=-1, int it=-1, MEDFileMeshReadSelector *mrs=0) { return MEDFileUMesh::New(fileName,mName,dt,it,mrs); } - MEDFileUMesh(const std::string& fileName, MEDFileMeshReadSelector *mrs=0) throw(INTERP_KERNEL::Exception) + MEDFileUMesh(const std::string& fileName, MEDFileMeshReadSelector *mrs=0) { return MEDFileUMesh::New(fileName,mrs); } - MEDFileUMesh(const MEDCouplingMappedExtrudedMesh *mem) throw(INTERP_KERNEL::Exception) + MEDFileUMesh(const MEDCouplingMappedExtrudedMesh *mem) { return MEDFileUMesh::New(mem); } - MEDFileUMesh(DataArrayByte *db) throw(INTERP_KERNEL::Exception) + MEDFileUMesh(DataArrayByte *db) { return MEDFileUMesh::New(db); } @@ -1422,7 +1422,7 @@ namespace MEDCoupling return MEDFileUMesh::New(); } - static MEDFileUMesh *LoadPartOf(const std::string& fileName, const std::string& mName, PyObject *types, const std::vector& slicPerTyp, int dt=-1, int it=-1, MEDFileMeshReadSelector *mrs=0) throw(INTERP_KERNEL::Exception) + static MEDFileUMesh *LoadPartOf(const std::string& fileName, const std::string& mName, PyObject *types, const std::vector& slicPerTyp, int dt=-1, int it=-1, MEDFileMeshReadSelector *mrs=0) { std::vector typesCpp1; convertPyToNewIntArr3(types,typesCpp1); @@ -1433,7 +1433,7 @@ namespace MEDCoupling return MEDFileUMesh::LoadPartOf(fileName,mName,typesCpp2,slicPerTyp,dt,it,mrs); } - PyObject *__getstate__() throw(INTERP_KERNEL::Exception) + PyObject *__getstate__() { std::vector a0; std::vector a1; @@ -1466,7 +1466,7 @@ namespace MEDCoupling return ret; } - void __setstate__(PyObject *inp) throw(INTERP_KERNEL::Exception) + void __setstate__(PyObject *inp) { static const char MSG[]="MEDFileUMesh.__setstate__ : expected input is a tuple of size 4 !"; if(!PyTuple_Check(inp)) @@ -1509,7 +1509,7 @@ namespace MEDCoupling } } - void __setitem__(int meshDimRelToMax, MEDCouplingPointSet *mesh) throw(INTERP_KERNEL::Exception) + void __setitem__(int meshDimRelToMax, MEDCouplingPointSet *mesh) { if(!mesh) throw INTERP_KERNEL::Exception("MEDFileUMesh::__setitem__ : Input mesh is NULL !"); @@ -1528,12 +1528,12 @@ namespace MEDCoupling throw INTERP_KERNEL::Exception("MEDFileUMesh::__setitem__ : Not recognized input mesh !"); } - void __delitem__(int meshDimRelToMax) throw(INTERP_KERNEL::Exception) + void __delitem__(int meshDimRelToMax) { self->removeMeshAtLevel(meshDimRelToMax); } - MEDFileUMesh *symmetry3DPlane(PyObject *point, PyObject *normalVector) const throw(INTERP_KERNEL::Exception) + MEDFileUMesh *symmetry3DPlane(PyObject *point, PyObject *normalVector) const { const char msg[]="Python wrap of MEDFileUMesh::symmetry3DPlane : "; double val,val2; @@ -1547,7 +1547,7 @@ namespace MEDCoupling return ret.retn(); } - static MEDFileUMesh *Aggregate(PyObject *meshes) throw(INTERP_KERNEL::Exception) + static MEDFileUMesh *Aggregate(PyObject *meshes) { std::vector meshesCpp; convertFromPyObjVectorOfObj(meshes,SWIGTYPE_p_MEDCoupling__MEDFileUMesh,"MEDFileUMesh",meshesCpp); @@ -1555,48 +1555,48 @@ namespace MEDCoupling return ret.retn(); } - PyObject *getAllDistributionOfTypes() const throw(INTERP_KERNEL::Exception) + PyObject *getAllDistributionOfTypes() const { std::vector< std::pair > ret(self->getAllDistributionOfTypes()); return convertVecPairIntToPy(ret); } - DataArrayInt *deduceNodeSubPartFromCellSubPart(PyObject *extractDef) const throw(INTERP_KERNEL::Exception) + DataArrayInt *deduceNodeSubPartFromCellSubPart(PyObject *extractDef) const { std::map > extractDefCpp; convertToMapIntDataArrayInt(extractDef,extractDefCpp); return self->deduceNodeSubPartFromCellSubPart(extractDefCpp); } - MEDFileUMesh *extractPart(PyObject *extractDef) const throw(INTERP_KERNEL::Exception) + MEDFileUMesh *extractPart(PyObject *extractDef) const { std::map > extractDefCpp; convertToMapIntDataArrayInt(extractDef,extractDefCpp); return self->extractPart(extractDefCpp); } - void setMeshes(PyObject *li, bool renum=false) throw(INTERP_KERNEL::Exception) + void setMeshes(PyObject *li, bool renum=false) { std::vector ms; convertFromPyObjVectorOfObj(li,SWIGTYPE_p_MEDCoupling__MEDCouplingUMesh,"MEDCouplingUMesh",ms); self->setMeshes(ms,renum); } - void setGroupsFromScratch(int meshDimRelToMax, PyObject *li, bool renum=false) throw(INTERP_KERNEL::Exception) + void setGroupsFromScratch(int meshDimRelToMax, PyObject *li, bool renum=false) { std::vector ms; convertFromPyObjVectorOfObj(li,SWIGTYPE_p_MEDCoupling__MEDCouplingUMesh,"MEDCouplingUMesh",ms); self->setGroupsFromScratch(meshDimRelToMax,ms,renum); } - void setGroupsOnSetMesh(int meshDimRelToMax, PyObject *li, bool renum=false) throw(INTERP_KERNEL::Exception) + void setGroupsOnSetMesh(int meshDimRelToMax, PyObject *li, bool renum=false) { std::vector ms; convertFromPyObjVectorOfObj(li,SWIGTYPE_p_MEDCoupling__MEDCouplingUMesh,"MEDCouplingUMesh",ms); self->setGroupsOnSetMesh(meshDimRelToMax,ms,renum); } - DataArrayDouble *getCoords() const throw(INTERP_KERNEL::Exception) + DataArrayDouble *getCoords() const { DataArrayDouble *ret=self->getCoords(); if(ret) @@ -1604,7 +1604,7 @@ namespace MEDCoupling return ret; } - PartDefinition *getPartDefAtLevel(int meshDimRelToMaxExt, INTERP_KERNEL::NormalizedCellType gt=INTERP_KERNEL::NORM_ERROR) const throw(INTERP_KERNEL::Exception) + PartDefinition *getPartDefAtLevel(int meshDimRelToMaxExt, INTERP_KERNEL::NormalizedCellType gt=INTERP_KERNEL::NORM_ERROR) const { const PartDefinition *ret(self->getPartDefAtLevel(meshDimRelToMaxExt,gt)); if(ret) @@ -1612,7 +1612,7 @@ namespace MEDCoupling return const_cast(ret); } - PyObject *buildInnerBoundaryAlongM1Group(const std::string& grpNameM1) throw(INTERP_KERNEL::Exception) + PyObject *buildInnerBoundaryAlongM1Group(const std::string& grpNameM1) { DataArrayInt *ret0=0,*ret1=0,*ret2=0; self->buildInnerBoundaryAlongM1Group(grpNameM1,ret0,ret1,ret2); @@ -1623,7 +1623,7 @@ namespace MEDCoupling return ret; } - MEDCoupling1GTUMesh *getDirectUndergroundSingleGeoTypeMesh(INTERP_KERNEL::NormalizedCellType gt) const throw(INTERP_KERNEL::Exception) + MEDCoupling1GTUMesh *getDirectUndergroundSingleGeoTypeMesh(INTERP_KERNEL::NormalizedCellType gt) const { MEDCoupling1GTUMesh *ret(self->getDirectUndergroundSingleGeoTypeMesh(gt)); if(ret) @@ -1631,7 +1631,7 @@ namespace MEDCoupling return ret; } - PyObject *getDirectUndergroundSingleGeoTypeMeshes(int meshDimRelToMax) const throw(INTERP_KERNEL::Exception) + PyObject *getDirectUndergroundSingleGeoTypeMeshes(int meshDimRelToMax) const { std::vector tmp(self->getDirectUndergroundSingleGeoTypeMeshes(meshDimRelToMax)); std::size_t sz(tmp.size()); @@ -1652,7 +1652,7 @@ namespace MEDCoupling public: %extend { - MEDCoupling1SGTUMesh *getImplicitFaceMesh() const throw(INTERP_KERNEL::Exception) + MEDCoupling1SGTUMesh *getImplicitFaceMesh() const { MEDCoupling1SGTUMesh *ret(self->getImplicitFaceMesh()); if(ret) @@ -1666,11 +1666,11 @@ namespace MEDCoupling { public: static MEDFileCMesh *New(); - static MEDFileCMesh *New(DataArrayByte *db) throw(INTERP_KERNEL::Exception); - static MEDFileCMesh *New(const std::string& fileName, MEDFileMeshReadSelector *mrs=0) throw(INTERP_KERNEL::Exception); - static MEDFileCMesh *New(const std::string& fileName, const std::string& mName, int dt=-1, int it=-1, MEDFileMeshReadSelector *mrs=0) throw(INTERP_KERNEL::Exception); - void setMesh(MEDCouplingCMesh *m) throw(INTERP_KERNEL::Exception); - int getSpaceDimension() const throw(INTERP_KERNEL::Exception); + static MEDFileCMesh *New(DataArrayByte *db); + static MEDFileCMesh *New(const std::string& fileName, MEDFileMeshReadSelector *mrs=0); + static MEDFileCMesh *New(const std::string& fileName, const std::string& mName, int dt=-1, int it=-1, MEDFileMeshReadSelector *mrs=0); + void setMesh(MEDCouplingCMesh *m); + int getSpaceDimension() const; %extend { MEDFileCMesh() @@ -1678,22 +1678,22 @@ namespace MEDCoupling return MEDFileCMesh::New(); } - MEDFileCMesh(const std::string& fileName, MEDFileMeshReadSelector *mrs=0) throw(INTERP_KERNEL::Exception) + MEDFileCMesh(const std::string& fileName, MEDFileMeshReadSelector *mrs=0) { return MEDFileCMesh::New(fileName,mrs); } - MEDFileCMesh(const std::string& fileName, const std::string& mName, int dt=-1, int it=-1, MEDFileMeshReadSelector *mrs=0) throw(INTERP_KERNEL::Exception) + MEDFileCMesh(const std::string& fileName, const std::string& mName, int dt=-1, int it=-1, MEDFileMeshReadSelector *mrs=0) { return MEDFileCMesh::New(fileName,mName,dt,it,mrs); } - MEDFileCMesh(DataArrayByte *db) throw(INTERP_KERNEL::Exception) + MEDFileCMesh(DataArrayByte *db) { return MEDFileCMesh::New(db); } - PyObject *getMesh() const throw(INTERP_KERNEL::Exception) + PyObject *getMesh() const { const MEDCouplingCMesh *tmp=self->getMesh(); if(tmp) @@ -1707,10 +1707,10 @@ namespace MEDCoupling { public: static MEDFileCurveLinearMesh *New(); - static MEDFileCurveLinearMesh *New(DataArrayByte *db) throw(INTERP_KERNEL::Exception); - static MEDFileCurveLinearMesh *New(const std::string& fileName, MEDFileMeshReadSelector *mrs=0) throw(INTERP_KERNEL::Exception); - static MEDFileCurveLinearMesh *New(const std::string& fileName, const std::string& mName, int dt=-1, int it=-1, MEDFileMeshReadSelector *mrs=0) throw(INTERP_KERNEL::Exception); - void setMesh(MEDCouplingCurveLinearMesh *m) throw(INTERP_KERNEL::Exception); + static MEDFileCurveLinearMesh *New(DataArrayByte *db); + static MEDFileCurveLinearMesh *New(const std::string& fileName, MEDFileMeshReadSelector *mrs=0); + static MEDFileCurveLinearMesh *New(const std::string& fileName, const std::string& mName, int dt=-1, int it=-1, MEDFileMeshReadSelector *mrs=0); + void setMesh(MEDCouplingCurveLinearMesh *m); %extend { MEDFileCurveLinearMesh() @@ -1718,22 +1718,22 @@ namespace MEDCoupling return MEDFileCurveLinearMesh::New(); } - MEDFileCurveLinearMesh(const std::string& fileName, MEDFileMeshReadSelector *mrs=0) throw(INTERP_KERNEL::Exception) + MEDFileCurveLinearMesh(const std::string& fileName, MEDFileMeshReadSelector *mrs=0) { return MEDFileCurveLinearMesh::New(fileName,mrs); } - MEDFileCurveLinearMesh(const std::string& fileName, const std::string& mName, int dt=-1, int it=-1, MEDFileMeshReadSelector *mrs=0) throw(INTERP_KERNEL::Exception) + MEDFileCurveLinearMesh(const std::string& fileName, const std::string& mName, int dt=-1, int it=-1, MEDFileMeshReadSelector *mrs=0) { return MEDFileCurveLinearMesh::New(fileName,mName,dt,it,mrs); } - MEDFileCurveLinearMesh(DataArrayByte *db) throw(INTERP_KERNEL::Exception) + MEDFileCurveLinearMesh(DataArrayByte *db) { return MEDFileCurveLinearMesh::New(db); } - PyObject *getMesh() const throw(INTERP_KERNEL::Exception) + PyObject *getMesh() const { const MEDCouplingCurveLinearMesh *tmp=self->getMesh(); if(tmp) @@ -1747,12 +1747,12 @@ namespace MEDCoupling { public: static MEDFileMeshMultiTS *New(); - static MEDFileMeshMultiTS *New(const std::string& fileName) throw(INTERP_KERNEL::Exception); - static MEDFileMeshMultiTS *New(const std::string& fileName, const std::string& mName) throw(INTERP_KERNEL::Exception); - MEDFileMeshMultiTS *deepCopy() const throw(INTERP_KERNEL::Exception); - std::string getName() const throw(INTERP_KERNEL::Exception); - void setOneTimeStep(MEDFileMesh *mesh1TimeStep) throw(INTERP_KERNEL::Exception); - void cartesianizeMe() throw(INTERP_KERNEL::Exception); + static MEDFileMeshMultiTS *New(const std::string& fileName); + static MEDFileMeshMultiTS *New(const std::string& fileName, const std::string& mName); + MEDFileMeshMultiTS *deepCopy() const; + std::string getName() const; + void setOneTimeStep(MEDFileMesh *mesh1TimeStep); + void cartesianizeMe(); %extend { MEDFileMeshMultiTS() @@ -1760,17 +1760,17 @@ namespace MEDCoupling return MEDFileMeshMultiTS::New(); } - MEDFileMeshMultiTS(const std::string& fileName) throw(INTERP_KERNEL::Exception) + MEDFileMeshMultiTS(const std::string& fileName) { return MEDFileMeshMultiTS::New(fileName); } - MEDFileMeshMultiTS(const std::string& fileName, const std::string& mName) throw(INTERP_KERNEL::Exception) + MEDFileMeshMultiTS(const std::string& fileName, const std::string& mName) { return MEDFileMeshMultiTS::New(fileName,mName); } - MEDFileMesh *getOneTimeStep() const throw(INTERP_KERNEL::Exception) + MEDFileMesh *getOneTimeStep() const { MEDFileMesh *ret=self->getOneTimeStep(); if(ret) @@ -1785,7 +1785,7 @@ namespace MEDCoupling public: %extend { - PyObject *next() throw(INTERP_KERNEL::Exception) + PyObject *next() { MEDFileMesh *ret=self->nextt(); if(ret) @@ -1806,18 +1806,18 @@ namespace MEDCoupling { public: static MEDFileMeshes *New(); - static MEDFileMeshes *New(DataArrayByte *db) throw(INTERP_KERNEL::Exception); - MEDFileMeshes *deepCopy() const throw(INTERP_KERNEL::Exception); - int getNumberOfMeshes() const throw(INTERP_KERNEL::Exception); - std::vector getMeshesNames() const throw(INTERP_KERNEL::Exception); + static MEDFileMeshes *New(DataArrayByte *db); + MEDFileMeshes *deepCopy() const; + int getNumberOfMeshes() const; + std::vector getMeshesNames() const; // - void resize(int newSize) throw(INTERP_KERNEL::Exception); - void pushMesh(MEDFileMesh *mesh) throw(INTERP_KERNEL::Exception); - void setMeshAtPos(int i, MEDFileMesh *mesh) throw(INTERP_KERNEL::Exception); - void destroyMeshAtPos(int i) throw(INTERP_KERNEL::Exception); - void cartesianizeMe() throw(INTERP_KERNEL::Exception); - bool presenceOfStructureElements() const throw(INTERP_KERNEL::Exception); - void killStructureElements() throw(INTERP_KERNEL::Exception); + void resize(int newSize); + void pushMesh(MEDFileMesh *mesh); + void setMeshAtPos(int i, MEDFileMesh *mesh); + void destroyMeshAtPos(int i); + void cartesianizeMe(); + bool presenceOfStructureElements() const; + void killStructureElements(); %extend { MEDFileMeshes() @@ -1825,22 +1825,22 @@ namespace MEDCoupling return MEDFileMeshes::New(); } - MEDFileMeshes(const std::string& fileName) throw(INTERP_KERNEL::Exception) + MEDFileMeshes(const std::string& fileName) { return MEDFileMeshes::New(fileName); } - MEDFileMeshes(DataArrayByte *db) throw(INTERP_KERNEL::Exception) + MEDFileMeshes(DataArrayByte *db) { return MEDFileMeshes::New(db); } - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->simpleRepr(); } - MEDFileMesh *__getitem__(PyObject *obj) throw(INTERP_KERNEL::Exception) + MEDFileMesh *__getitem__(PyObject *obj) { static const char msg[]="MEDFileMeshes::__getitem__ : only integer or string with meshname supported !"; if(PyInt_Check(obj)) @@ -1856,30 +1856,30 @@ namespace MEDCoupling return ret; } - MEDFileMeshes *__setitem__(int obj, MEDFileMesh *mesh) throw(INTERP_KERNEL::Exception) + MEDFileMeshes *__setitem__(int obj, MEDFileMesh *mesh) { self->setMeshAtPos(obj,mesh); return self; } - MEDFileMeshesIterator *__iter__() throw(INTERP_KERNEL::Exception) + MEDFileMeshesIterator *__iter__() { return self->iterator(); } - int __len__() const throw(INTERP_KERNEL::Exception) + int __len__() const { return self->getNumberOfMeshes(); } - MEDFileMesh *getMeshAtPos(int i) const throw(INTERP_KERNEL::Exception) + MEDFileMesh *getMeshAtPos(int i) const { MEDFileMesh *ret=self->getMeshAtPos(i); if(ret) ret->incrRef(); return ret; } - MEDFileMesh *getMeshWithName(const std::string& mname) const throw(INTERP_KERNEL::Exception) + MEDFileMesh *getMeshWithName(const std::string& mname) const { MEDFileMesh *ret=self->getMeshWithName(mname); if(ret) @@ -1899,10 +1899,10 @@ namespace MEDCoupling const std::vector& getRefCoords() const; const std::vector& getGaussCoords() const; const std::vector& getGaussWeights() const; - bool isEqual(const MEDFileFieldLoc& other, double eps) const throw(INTERP_KERNEL::Exception); + bool isEqual(const MEDFileFieldLoc& other, double eps) const; %extend { - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->repr(); } @@ -1913,37 +1913,37 @@ namespace MEDCoupling { public: void resetContent(); - void shallowCpyGlobs(const MEDFileFieldGlobsReal& other) throw(INTERP_KERNEL::Exception); - void deepCpyGlobs(const MEDFileFieldGlobsReal& other) throw(INTERP_KERNEL::Exception); - void shallowCpyOnlyUsedGlobs(const MEDFileFieldGlobsReal& other) throw(INTERP_KERNEL::Exception); - void deepCpyOnlyUsedGlobs(const MEDFileFieldGlobsReal& other) throw(INTERP_KERNEL::Exception); - void appendGlobs(const MEDFileFieldGlobsReal& other, double eps) throw(INTERP_KERNEL::Exception); - void checkGlobsCoherency() const throw(INTERP_KERNEL::Exception); - void checkGlobsPflsPartCoherency() const throw(INTERP_KERNEL::Exception); - void checkGlobsLocsPartCoherency() const throw(INTERP_KERNEL::Exception); - std::vector getPfls() const throw(INTERP_KERNEL::Exception); - std::vector getLocs() const throw(INTERP_KERNEL::Exception); - bool existsPfl(const std::string& pflName) const throw(INTERP_KERNEL::Exception); - bool existsLoc(const std::string& locName) const throw(INTERP_KERNEL::Exception); - std::string createNewNameOfPfl() const throw(INTERP_KERNEL::Exception); - std::string createNewNameOfLoc() const throw(INTERP_KERNEL::Exception); - std::vector< std::vector > whichAreEqualProfiles() const throw(INTERP_KERNEL::Exception); - std::vector< std::vector > whichAreEqualLocs(double eps) const throw(INTERP_KERNEL::Exception); - virtual std::vector getPflsReallyUsed() const throw(INTERP_KERNEL::Exception); - virtual std::vector getLocsReallyUsed() const throw(INTERP_KERNEL::Exception); - virtual std::vector getPflsReallyUsedMulti() const throw(INTERP_KERNEL::Exception); - virtual std::vector getLocsReallyUsedMulti() const throw(INTERP_KERNEL::Exception); - void killProfileIds(const std::vector& pflIds) throw(INTERP_KERNEL::Exception); - void killLocalizationIds(const std::vector& locIds) throw(INTERP_KERNEL::Exception); - void changePflName(const std::string& oldName, const std::string& newName) throw(INTERP_KERNEL::Exception); - void changeLocName(const std::string& oldName, const std::string& newName) throw(INTERP_KERNEL::Exception); - int getNbOfGaussPtPerCell(int locId) const throw(INTERP_KERNEL::Exception); - int getLocalizationId(const std::string& loc) const throw(INTERP_KERNEL::Exception); - int getProfileId(const std::string& pfl) const throw(INTERP_KERNEL::Exception); - void killStructureElementsInGlobs() throw(INTERP_KERNEL::Exception); + void shallowCpyGlobs(const MEDFileFieldGlobsReal& other); + void deepCpyGlobs(const MEDFileFieldGlobsReal& other); + void shallowCpyOnlyUsedGlobs(const MEDFileFieldGlobsReal& other); + void deepCpyOnlyUsedGlobs(const MEDFileFieldGlobsReal& other); + void appendGlobs(const MEDFileFieldGlobsReal& other, double eps); + void checkGlobsCoherency() const; + void checkGlobsPflsPartCoherency() const; + void checkGlobsLocsPartCoherency() const; + std::vector getPfls() const; + std::vector getLocs() const; + bool existsPfl(const std::string& pflName) const; + bool existsLoc(const std::string& locName) const; + std::string createNewNameOfPfl() const; + std::string createNewNameOfLoc() const; + std::vector< std::vector > whichAreEqualProfiles() const; + std::vector< std::vector > whichAreEqualLocs(double eps) const; + virtual std::vector getPflsReallyUsed() const; + virtual std::vector getLocsReallyUsed() const; + virtual std::vector getPflsReallyUsedMulti() const; + virtual std::vector getLocsReallyUsedMulti() const; + void killProfileIds(const std::vector& pflIds); + void killLocalizationIds(const std::vector& locIds); + void changePflName(const std::string& oldName, const std::string& newName); + void changeLocName(const std::string& oldName, const std::string& newName); + int getNbOfGaussPtPerCell(int locId) const; + int getLocalizationId(const std::string& loc) const; + int getProfileId(const std::string& pfl) const; + void killStructureElementsInGlobs(); %extend { - PyObject *getProfile(const std::string& pflName) const throw(INTERP_KERNEL::Exception) + PyObject *getProfile(const std::string& pflName) const { const DataArrayInt *ret=self->getProfile(pflName); if(ret) @@ -1951,7 +1951,7 @@ namespace MEDCoupling return SWIG_NewPointerObj(SWIG_as_voidptr(ret),SWIGTYPE_p_MEDCoupling__DataArrayInt, SWIG_POINTER_OWN | 0 ); } - PyObject *getProfileFromId(int pflId) const throw(INTERP_KERNEL::Exception) + PyObject *getProfileFromId(int pflId) const { const DataArrayInt *ret=self->getProfileFromId(pflId); if(ret) @@ -1959,7 +1959,7 @@ namespace MEDCoupling return SWIG_NewPointerObj(SWIG_as_voidptr(ret),SWIGTYPE_p_MEDCoupling__DataArrayInt, SWIG_POINTER_OWN | 0 ); } - PyObject *getLocalizationFromId(int locId) const throw(INTERP_KERNEL::Exception) + PyObject *getLocalizationFromId(int locId) const { const MEDFileFieldLoc *loc=&self->getLocalizationFromId(locId); if(loc) @@ -1967,7 +1967,7 @@ namespace MEDCoupling return SWIG_NewPointerObj(SWIG_as_voidptr(loc),SWIGTYPE_p_MEDCoupling__MEDFileFieldLoc, SWIG_POINTER_OWN | 0 ); } - PyObject *getLocalization(const std::string& locName) const throw(INTERP_KERNEL::Exception) + PyObject *getLocalization(const std::string& locName) const { const MEDFileFieldLoc *loc=&self->getLocalization(locName); if(loc) @@ -1975,55 +1975,55 @@ namespace MEDCoupling return SWIG_NewPointerObj(SWIG_as_voidptr(loc),SWIGTYPE_p_MEDCoupling__MEDFileFieldLoc, SWIG_POINTER_OWN | 0 ); } - PyObject *zipPflsNames() throw(INTERP_KERNEL::Exception) + PyObject *zipPflsNames() { std::vector< std::pair, std::string > > ret=self->zipPflsNames(); return convertVecPairVecStToPy(ret); } - PyObject *zipLocsNames(double eps) throw(INTERP_KERNEL::Exception) + PyObject *zipLocsNames(double eps) { std::vector< std::pair, std::string > > ret=self->zipLocsNames(eps); return convertVecPairVecStToPy(ret); } - void changePflsNames(PyObject *li) throw(INTERP_KERNEL::Exception) + void changePflsNames(PyObject *li) { std::vector< std::pair, std::string > > v=convertVecPairVecStFromPy(li); self->changePflsNames(v); } - void changePflsRefsNamesGen(PyObject *li) throw(INTERP_KERNEL::Exception) + void changePflsRefsNamesGen(PyObject *li) { std::vector< std::pair, std::string > > v=convertVecPairVecStFromPy(li); self->changePflsRefsNamesGen(v); } - void changePflsNamesInStruct(PyObject *li) throw(INTERP_KERNEL::Exception) + void changePflsNamesInStruct(PyObject *li) { std::vector< std::pair, std::string > > v=convertVecPairVecStFromPy(li); self->changePflsNamesInStruct(v); } - void changeLocsNames(PyObject *li) throw(INTERP_KERNEL::Exception) + void changeLocsNames(PyObject *li) { std::vector< std::pair, std::string > > v=convertVecPairVecStFromPy(li); self->changeLocsNames(v); } - void changeLocsRefsNamesGen(PyObject *li) throw(INTERP_KERNEL::Exception) + void changeLocsRefsNamesGen(PyObject *li) { std::vector< std::pair, std::string > > v=convertVecPairVecStFromPy(li); self->changeLocsRefsNamesGen(v); } - void changeLocsNamesInStruct(PyObject *li) throw(INTERP_KERNEL::Exception) + void changeLocsNamesInStruct(PyObject *li) { std::vector< std::pair, std::string > > v=convertVecPairVecStFromPy(li); self->changeLocsNamesInStruct(v); } - std::string simpleReprGlobs() const throw(INTERP_KERNEL::Exception) + std::string simpleReprGlobs() const { std::ostringstream oss; self->simpleReprGlobs(oss); @@ -2037,7 +2037,7 @@ namespace MEDCoupling public: %extend { - static MEDFileEntities *BuildFrom(PyObject *entities) throw(INTERP_KERNEL::Exception) + static MEDFileEntities *BuildFrom(PyObject *entities) { std::vector< std::pair > inp; std::vector< std::pair > inp0(convertTimePairIdsFromPy(entities)); @@ -2057,36 +2057,36 @@ namespace MEDCoupling class MEDFileAnyTypeField1TS : public RefCountObject, public MEDFileFieldGlobsReal, public MEDFileWritableStandAlone { public: - static MEDFileAnyTypeField1TS *New(const std::string& fileName, bool loadAll=true) throw(INTERP_KERNEL::Exception); - static MEDFileAnyTypeField1TS *New(const std::string& fileName, const std::string& fieldName, bool loadAll=true) throw(INTERP_KERNEL::Exception); - static MEDFileAnyTypeField1TS *New(const std::string& fileName, const std::string& fieldName, int iteration, int order, bool loadAll=true) throw(INTERP_KERNEL::Exception); - static MEDFileAnyTypeField1TS *NewAdv(const std::string& fileName, const std::string& fieldName, int iteration, int order, bool loadAll, const MEDFileEntities *entities) throw(INTERP_KERNEL::Exception); - void loadArrays() throw(INTERP_KERNEL::Exception); - void loadArraysIfNecessary() throw(INTERP_KERNEL::Exception); - void unloadArrays() throw(INTERP_KERNEL::Exception); - void unloadArraysWithoutDataLoss() throw(INTERP_KERNEL::Exception); - int getDimension() const throw(INTERP_KERNEL::Exception); - int getIteration() const throw(INTERP_KERNEL::Exception); - int getOrder() const throw(INTERP_KERNEL::Exception); - std::string getName() throw(INTERP_KERNEL::Exception); - void setName(const std::string& name) throw(INTERP_KERNEL::Exception); - std::string getMeshName() throw(INTERP_KERNEL::Exception); - void setMeshName(const std::string& newMeshName) throw(INTERP_KERNEL::Exception); - int getMeshIteration() const throw(INTERP_KERNEL::Exception); - int getMeshOrder() const throw(INTERP_KERNEL::Exception); - int getNumberOfComponents() const throw(INTERP_KERNEL::Exception); - bool isDealingTS(int iteration, int order) const throw(INTERP_KERNEL::Exception); - void setInfo(const std::vector& infos) throw(INTERP_KERNEL::Exception); - const std::vector& getInfo() const throw(INTERP_KERNEL::Exception); - bool presenceOfMultiDiscPerGeoType() const throw(INTERP_KERNEL::Exception); - void setTime(int iteration, int order, double val) throw(INTERP_KERNEL::Exception); - virtual MEDFileAnyTypeField1TS *shallowCpy() const throw(INTERP_KERNEL::Exception); - MEDFileAnyTypeField1TS *deepCopy() const throw(INTERP_KERNEL::Exception); - std::string getDtUnit() const throw(INTERP_KERNEL::Exception); - void setDtUnit(const std::string& dtUnit) throw(INTERP_KERNEL::Exception); + static MEDFileAnyTypeField1TS *New(const std::string& fileName, bool loadAll=true); + static MEDFileAnyTypeField1TS *New(const std::string& fileName, const std::string& fieldName, bool loadAll=true); + static MEDFileAnyTypeField1TS *New(const std::string& fileName, const std::string& fieldName, int iteration, int order, bool loadAll=true); + static MEDFileAnyTypeField1TS *NewAdv(const std::string& fileName, const std::string& fieldName, int iteration, int order, bool loadAll, const MEDFileEntities *entities); + void loadArrays(); + void loadArraysIfNecessary(); + void unloadArrays(); + void unloadArraysWithoutDataLoss(); + int getDimension() const; + int getIteration() const; + int getOrder() const; + std::string getName(); + void setName(const std::string& name); + std::string getMeshName(); + void setMeshName(const std::string& newMeshName); + int getMeshIteration() const; + int getMeshOrder() const; + int getNumberOfComponents() const; + bool isDealingTS(int iteration, int order) const; + void setInfo(const std::vector& infos); + const std::vector& getInfo() const; + bool presenceOfMultiDiscPerGeoType() const; + void setTime(int iteration, int order, double val); + virtual MEDFileAnyTypeField1TS *shallowCpy() const; + MEDFileAnyTypeField1TS *deepCopy() const; + std::string getDtUnit() const; + void setDtUnit(const std::string& dtUnit); %extend { - PyObject *getTime() throw(INTERP_KERNEL::Exception) + PyObject *getTime() { int tmp1,tmp2; double tmp0=self->getTime(tmp1,tmp2); @@ -2097,7 +2097,7 @@ namespace MEDCoupling return res; } - PyObject *getDtIt() const throw(INTERP_KERNEL::Exception) + PyObject *getDtIt() const { std::pair res=self->getDtIt(); PyObject *elt=PyTuple_New(2); @@ -2106,23 +2106,23 @@ namespace MEDCoupling return elt; } - void setProfileNameOnLeaf(INTERP_KERNEL::NormalizedCellType typ, int locId, const std::string& newPflName, bool forceRenameOnGlob=false) throw(INTERP_KERNEL::Exception) + void setProfileNameOnLeaf(INTERP_KERNEL::NormalizedCellType typ, int locId, const std::string& newPflName, bool forceRenameOnGlob=false) { self->setProfileNameOnLeaf(0,typ,locId,newPflName,forceRenameOnGlob); } - void setLocNameOnLeaf(INTERP_KERNEL::NormalizedCellType typ, int locId, const std::string& newLocName, bool forceRenameOnGlob=false) throw(INTERP_KERNEL::Exception) + void setLocNameOnLeaf(INTERP_KERNEL::NormalizedCellType typ, int locId, const std::string& newLocName, bool forceRenameOnGlob=false) { self->setLocNameOnLeaf(0,typ,locId,newLocName,forceRenameOnGlob); } - bool changeMeshNames(PyObject *li) throw(INTERP_KERNEL::Exception) + bool changeMeshNames(PyObject *li) { std::vector< std::pair > modifTab=convertVecPairStStFromPy(li); return self->changeMeshNames(modifTab); } - PyObject *getTypesOfFieldAvailable() const throw(INTERP_KERNEL::Exception) + PyObject *getTypesOfFieldAvailable() const { std::vector ret=self->getTypesOfFieldAvailable(); PyObject *ret2=PyList_New(ret.size()); @@ -2131,7 +2131,7 @@ namespace MEDCoupling return ret2; } - PyObject *getNonEmptyLevels(const std::string& mname=std::string()) const throw(INTERP_KERNEL::Exception) + PyObject *getNonEmptyLevels(const std::string& mname=std::string()) const { std::vector ret1; int ret0=self->getNonEmptyLevels(mname,ret1); @@ -2141,7 +2141,7 @@ namespace MEDCoupling return elt; } - PyObject *getFieldSplitedByType(const std::string& mname=std::string()) const throw(INTERP_KERNEL::Exception) + PyObject *getFieldSplitedByType(const std::string& mname=std::string()) const { std::vector types; std::vector< std::vector > typesF; @@ -2176,7 +2176,7 @@ namespace MEDCoupling return ret2; } - PyObject *splitComponents() const throw(INTERP_KERNEL::Exception) + PyObject *splitComponents() const { std::vector< MCAuto< MEDFileAnyTypeField1TS > > ret=self->splitComponents(); std::size_t sz=ret.size(); @@ -2186,7 +2186,7 @@ namespace MEDCoupling return retPy; } - PyObject *splitDiscretizations() const throw(INTERP_KERNEL::Exception) + PyObject *splitDiscretizations() const { std::vector< MCAuto< MEDFileAnyTypeField1TS > > ret=self->splitDiscretizations(); std::size_t sz=ret.size(); @@ -2196,7 +2196,7 @@ namespace MEDCoupling return retPy; } - PyObject *splitMultiDiscrPerGeoTypes() const throw(INTERP_KERNEL::Exception) + PyObject *splitMultiDiscrPerGeoTypes() const { std::vector< MCAuto< MEDFileAnyTypeField1TS > > ret=self->splitMultiDiscrPerGeoTypes(); std::size_t sz=ret.size(); @@ -2206,7 +2206,7 @@ namespace MEDCoupling return retPy; } - MEDFileAnyTypeField1TS *extractPart(PyObject *extractDef, MEDFileMesh *mm) const throw(INTERP_KERNEL::Exception) + MEDFileAnyTypeField1TS *extractPart(PyObject *extractDef, MEDFileMesh *mm) const { std::map > extractDefCpp; convertToMapIntDataArrayInt(extractDef,extractDefCpp); @@ -2218,43 +2218,43 @@ namespace MEDCoupling class MEDFileField1TS : public MEDFileAnyTypeField1TS { public: - static MEDFileField1TS *New(const std::string& fileName, const std::string& fieldName, int iteration, int order, bool loadAll=true) throw(INTERP_KERNEL::Exception); - static MEDFileField1TS *New(const std::string& fileName, const std::string& fieldName, bool loadAll=true) throw(INTERP_KERNEL::Exception); - static MEDFileField1TS *New(const std::string& fileName, bool loadAll=true) throw(INTERP_KERNEL::Exception); - static MEDFileField1TS *New(DataArrayByte *db) throw(INTERP_KERNEL::Exception); + static MEDFileField1TS *New(const std::string& fileName, const std::string& fieldName, int iteration, int order, bool loadAll=true); + static MEDFileField1TS *New(const std::string& fileName, const std::string& fieldName, bool loadAll=true); + static MEDFileField1TS *New(const std::string& fileName, bool loadAll=true); + static MEDFileField1TS *New(DataArrayByte *db); static MEDFileField1TS *New(); - MEDCoupling::MEDFileIntField1TS *convertToInt(bool isDeepCpyGlobs=true) const throw(INTERP_KERNEL::Exception); - void copyTimeInfoFrom(MEDCouplingFieldDouble *mcf) throw(INTERP_KERNEL::Exception); - MEDCouplingFieldDouble *field(const MEDFileMesh *mesh) const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldDouble *getFieldAtLevel(TypeOfField type, int meshDimRelToMax, int renumPol=0) const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldDouble *getFieldAtTopLevel(TypeOfField type, int renumPol=0) const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldDouble *getFieldOnMeshAtLevel(TypeOfField type, const MEDCouplingMesh *mesh, int renumPol=0) const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldDouble *getFieldOnMeshAtLevel(TypeOfField type, int meshDimRelToMax, const MEDFileMesh *mesh, int renumPol=0) const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldDouble *getFieldAtLevelOld(TypeOfField type, const std::string& mname, int meshDimRelToMax, int renumPol=0) const throw(INTERP_KERNEL::Exception); + MEDCoupling::MEDFileIntField1TS *convertToInt(bool isDeepCpyGlobs=true) const; + void copyTimeInfoFrom(MEDCouplingFieldDouble *mcf); + MEDCouplingFieldDouble *field(const MEDFileMesh *mesh) const; + MEDCouplingFieldDouble *getFieldAtLevel(TypeOfField type, int meshDimRelToMax, int renumPol=0) const; + MEDCouplingFieldDouble *getFieldAtTopLevel(TypeOfField type, int renumPol=0) const; + MEDCouplingFieldDouble *getFieldOnMeshAtLevel(TypeOfField type, const MEDCouplingMesh *mesh, int renumPol=0) const; + MEDCouplingFieldDouble *getFieldOnMeshAtLevel(TypeOfField type, int meshDimRelToMax, const MEDFileMesh *mesh, int renumPol=0) const; + MEDCouplingFieldDouble *getFieldAtLevelOld(TypeOfField type, const std::string& mname, int meshDimRelToMax, int renumPol=0) const; // - void setFieldNoProfileSBT(const MEDCouplingFieldDouble *field) throw(INTERP_KERNEL::Exception); - void setFieldProfile(const MEDCouplingFieldDouble *field, const MEDFileMesh *mesh, int meshDimRelToMax, const DataArrayInt *profile) throw(INTERP_KERNEL::Exception); - void setFieldProfileFlatly(const MEDCouplingFieldDouble *field, const MEDFileMesh *mesh, int meshDimRelToMax, const DataArrayInt *profile) throw(INTERP_KERNEL::Exception); - void setProfileNameOnLeaf(const std::string& mName, INTERP_KERNEL::NormalizedCellType typ, int locId, const std::string& newPflName, bool forceRenameOnGlob=false) throw(INTERP_KERNEL::Exception); - void setLocNameOnLeaf(const std::string& mName, INTERP_KERNEL::NormalizedCellType typ, int locId, const std::string& newLocName, bool forceRenameOnGlob=false) throw(INTERP_KERNEL::Exception); + void setFieldNoProfileSBT(const MEDCouplingFieldDouble *field); + void setFieldProfile(const MEDCouplingFieldDouble *field, const MEDFileMesh *mesh, int meshDimRelToMax, const DataArrayInt *profile); + void setFieldProfileFlatly(const MEDCouplingFieldDouble *field, const MEDFileMesh *mesh, int meshDimRelToMax, const DataArrayInt *profile); + void setProfileNameOnLeaf(const std::string& mName, INTERP_KERNEL::NormalizedCellType typ, int locId, const std::string& newPflName, bool forceRenameOnGlob=false); + void setLocNameOnLeaf(const std::string& mName, INTERP_KERNEL::NormalizedCellType typ, int locId, const std::string& newLocName, bool forceRenameOnGlob=false); %extend { - MEDFileField1TS(const std::string& fileName, bool loadAll=true) throw(INTERP_KERNEL::Exception) + MEDFileField1TS(const std::string& fileName, bool loadAll=true) { return MEDFileField1TS::New(fileName,loadAll); } - MEDFileField1TS(const std::string& fileName, const std::string& fieldName, bool loadAll=true) throw(INTERP_KERNEL::Exception) + MEDFileField1TS(const std::string& fileName, const std::string& fieldName, bool loadAll=true) { return MEDFileField1TS::New(fileName,fieldName,loadAll); } - MEDFileField1TS(const std::string& fileName, const std::string& fieldName, int iteration, int order, bool loadAll=true) throw(INTERP_KERNEL::Exception) + MEDFileField1TS(const std::string& fileName, const std::string& fieldName, int iteration, int order, bool loadAll=true) { return MEDFileField1TS::New(fileName,fieldName,iteration,order,loadAll); } - MEDFileField1TS(DataArrayByte *db) throw(INTERP_KERNEL::Exception) + MEDFileField1TS(DataArrayByte *db) { return MEDFileField1TS::New(db); } @@ -2264,7 +2264,7 @@ namespace MEDCoupling return MEDFileField1TS::New(); } - void copyTinyInfoFrom(const MEDCouplingFieldDouble *field) throw(INTERP_KERNEL::Exception) + void copyTinyInfoFrom(const MEDCouplingFieldDouble *field) { const DataArrayDouble *arr=0; if(field) @@ -2272,17 +2272,17 @@ namespace MEDCoupling self->copyTinyInfoFrom(field,arr); } - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->simpleRepr(); } - PyObject *getFieldWithProfile(TypeOfField type, int meshDimRelToMax, const MEDFileMesh *mesh) const throw(INTERP_KERNEL::Exception) + PyObject *getFieldWithProfile(TypeOfField type, int meshDimRelToMax, const MEDFileMesh *mesh) const { return MEDFileField1TS_getFieldWithProfile(self,type,meshDimRelToMax,mesh); } - PyObject *getFieldSplitedByType2(const std::string& mname=std::string()) const throw(INTERP_KERNEL::Exception) + PyObject *getFieldSplitedByType2(const std::string& mname=std::string()) const { std::vector types; std::vector< std::vector > typesF; @@ -2316,7 +2316,7 @@ namespace MEDCoupling return ret2; } - DataArrayDouble *getUndergroundDataArray() const throw(INTERP_KERNEL::Exception) + DataArrayDouble *getUndergroundDataArray() const { DataArrayDouble *ret=self->getUndergroundDataArray(); if(ret) @@ -2324,7 +2324,7 @@ namespace MEDCoupling return ret; } - PyObject *getUndergroundDataArrayExt() const throw(INTERP_KERNEL::Exception) + PyObject *getUndergroundDataArrayExt() const { return MEDFileField1TS_getUndergroundDataArrayExt(self); } @@ -2335,60 +2335,60 @@ namespace MEDCoupling { public: static MEDFileIntField1TS *New(); - static MEDFileIntField1TS *New(const std::string& fileName, bool loadAll=true) throw(INTERP_KERNEL::Exception); - static MEDFileIntField1TS *New(DataArrayByte *db) throw(INTERP_KERNEL::Exception); - static MEDFileIntField1TS *New(const std::string& fileName, const std::string& fieldName, bool loadAll=true) throw(INTERP_KERNEL::Exception); - static MEDFileIntField1TS *New(const std::string& fileName, const std::string& fieldName, int iteration, int order, bool loadAll=true) throw(INTERP_KERNEL::Exception); - MEDCoupling::MEDFileField1TS *convertToDouble(bool isDeepCpyGlobs=true) const throw(INTERP_KERNEL::Exception); + static MEDFileIntField1TS *New(const std::string& fileName, bool loadAll=true); + static MEDFileIntField1TS *New(DataArrayByte *db); + static MEDFileIntField1TS *New(const std::string& fileName, const std::string& fieldName, bool loadAll=true); + static MEDFileIntField1TS *New(const std::string& fileName, const std::string& fieldName, int iteration, int order, bool loadAll=true); + MEDCoupling::MEDFileField1TS *convertToDouble(bool isDeepCpyGlobs=true) const; // - void setFieldNoProfileSBT(const MEDCouplingFieldInt *field) throw(INTERP_KERNEL::Exception); - void setFieldProfile(const MEDCouplingFieldInt *field, const MEDFileMesh *mesh, int meshDimRelToMax, const DataArrayInt *profile) throw(INTERP_KERNEL::Exception); - void setFieldProfileFlatly(const MEDCouplingFieldInt *field, const MEDFileMesh *mesh, int meshDimRelToMax, const DataArrayInt *profile) throw(INTERP_KERNEL::Exception); - void copyTimeInfoFrom(MEDCouplingFieldInt *mcf) throw(INTERP_KERNEL::Exception); - MEDCouplingFieldInt *field(const MEDFileMesh *mesh) const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldInt *getFieldAtLevel(TypeOfField type, int meshDimRelToMax, int renumPol=0) const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldInt *getFieldAtTopLevel(TypeOfField type, int renumPol=0) const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldInt *getFieldOnMeshAtLevel(TypeOfField type, int meshDimRelToMax, const MEDFileMesh *mesh, int renumPol=0) const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldInt *getFieldOnMeshAtLevel(TypeOfField type, const MEDCouplingMesh *mesh, int renumPol=0) const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldInt *getFieldAtLevelOld(TypeOfField type, const std::string& mname, int meshDimRelToMax, int renumPol=0) const throw(INTERP_KERNEL::Exception); + void setFieldNoProfileSBT(const MEDCouplingFieldInt *field); + void setFieldProfile(const MEDCouplingFieldInt *field, const MEDFileMesh *mesh, int meshDimRelToMax, const DataArrayInt *profile); + void setFieldProfileFlatly(const MEDCouplingFieldInt *field, const MEDFileMesh *mesh, int meshDimRelToMax, const DataArrayInt *profile); + void copyTimeInfoFrom(MEDCouplingFieldInt *mcf); + MEDCouplingFieldInt *field(const MEDFileMesh *mesh) const; + MEDCouplingFieldInt *getFieldAtLevel(TypeOfField type, int meshDimRelToMax, int renumPol=0) const; + MEDCouplingFieldInt *getFieldAtTopLevel(TypeOfField type, int renumPol=0) const; + MEDCouplingFieldInt *getFieldOnMeshAtLevel(TypeOfField type, int meshDimRelToMax, const MEDFileMesh *mesh, int renumPol=0) const; + MEDCouplingFieldInt *getFieldOnMeshAtLevel(TypeOfField type, const MEDCouplingMesh *mesh, int renumPol=0) const; + MEDCouplingFieldInt *getFieldAtLevelOld(TypeOfField type, const std::string& mname, int meshDimRelToMax, int renumPol=0) const; %extend { - MEDFileIntField1TS() throw(INTERP_KERNEL::Exception) + MEDFileIntField1TS() { return MEDFileIntField1TS::New(); } - MEDFileIntField1TS(const std::string& fileName, bool loadAll=true) throw(INTERP_KERNEL::Exception) + MEDFileIntField1TS(const std::string& fileName, bool loadAll=true) { return MEDFileIntField1TS::New(fileName,loadAll); } - MEDFileIntField1TS(const std::string& fileName, const std::string& fieldName, bool loadAll=true) throw(INTERP_KERNEL::Exception) + MEDFileIntField1TS(const std::string& fileName, const std::string& fieldName, bool loadAll=true) { return MEDFileIntField1TS::New(fileName,fieldName,loadAll); } - MEDFileIntField1TS(const std::string& fileName, const std::string& fieldName, int iteration, int order, bool loadAll=true) throw(INTERP_KERNEL::Exception) + MEDFileIntField1TS(const std::string& fileName, const std::string& fieldName, int iteration, int order, bool loadAll=true) { return MEDFileIntField1TS::New(fileName,fieldName,iteration,order,loadAll); } - MEDFileIntField1TS(DataArrayByte *db) throw(INTERP_KERNEL::Exception) + MEDFileIntField1TS(DataArrayByte *db) { return MEDFileIntField1TS::New(db); } - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->simpleRepr(); } - PyObject *getFieldWithProfile(TypeOfField type, int meshDimRelToMax, const MEDFileMesh *mesh) const throw(INTERP_KERNEL::Exception) + PyObject *getFieldWithProfile(TypeOfField type, int meshDimRelToMax, const MEDFileMesh *mesh) const { return MEDFileField1TS_getFieldWithProfile(self,type,meshDimRelToMax,mesh); } - DataArrayInt *getUndergroundDataArray() const throw(INTERP_KERNEL::Exception) + DataArrayInt *getUndergroundDataArray() const { DataArrayInt *ret=self->getUndergroundDataArray(); if(ret) @@ -2396,7 +2396,7 @@ namespace MEDCoupling return ret; } - PyObject *getUndergroundDataArrayExt() const throw(INTERP_KERNEL::Exception) + PyObject *getUndergroundDataArrayExt() const { return MEDFileField1TS_getUndergroundDataArrayExt(self); } @@ -2407,60 +2407,60 @@ namespace MEDCoupling { public: static MEDFileFloatField1TS *New(); - static MEDFileFloatField1TS *New(const std::string& fileName, bool loadAll=true) throw(INTERP_KERNEL::Exception); - static MEDFileFloatField1TS *New(DataArrayByte *db) throw(INTERP_KERNEL::Exception); - static MEDFileFloatField1TS *New(const std::string& fileName, const std::string& fieldName, bool loadAll=true) throw(INTERP_KERNEL::Exception); - static MEDFileFloatField1TS *New(const std::string& fileName, const std::string& fieldName, int iteration, int order, bool loadAll=true) throw(INTERP_KERNEL::Exception); - MEDCoupling::MEDFileField1TS *convertToDouble(bool isDeepCpyGlobs=true) const throw(INTERP_KERNEL::Exception); + static MEDFileFloatField1TS *New(const std::string& fileName, bool loadAll=true); + static MEDFileFloatField1TS *New(DataArrayByte *db); + static MEDFileFloatField1TS *New(const std::string& fileName, const std::string& fieldName, bool loadAll=true); + static MEDFileFloatField1TS *New(const std::string& fileName, const std::string& fieldName, int iteration, int order, bool loadAll=true); + MEDCoupling::MEDFileField1TS *convertToDouble(bool isDeepCpyGlobs=true) const; // - void setFieldNoProfileSBT(const MEDCouplingFieldFloat *field) throw(INTERP_KERNEL::Exception); - void setFieldProfile(const MEDCouplingFieldFloat *field, const MEDFileMesh *mesh, int meshDimRelToMax, const DataArrayInt *profile) throw(INTERP_KERNEL::Exception); - void setFieldProfileFlatly(const MEDCouplingFieldFloat *field, const MEDFileMesh *mesh, int meshDimRelToMax, const DataArrayInt *profile) throw(INTERP_KERNEL::Exception); - void copyTimeInfoFrom(MEDCouplingFieldFloat *mcf) throw(INTERP_KERNEL::Exception); - MEDCouplingFieldFloat *field(const MEDFileMesh *mesh) const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldFloat *getFieldAtLevel(TypeOfField type, int meshDimRelToMax, int renumPol=0) const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldFloat *getFieldAtTopLevel(TypeOfField type, int renumPol=0) const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldFloat *getFieldOnMeshAtLevel(TypeOfField type, int meshDimRelToMax, const MEDFileMesh *mesh, int renumPol=0) const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldFloat *getFieldOnMeshAtLevel(TypeOfField type, const MEDCouplingMesh *mesh, int renumPol=0) const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldFloat *getFieldAtLevelOld(TypeOfField type, const std::string& mname, int meshDimRelToMax, int renumPol=0) const throw(INTERP_KERNEL::Exception); + void setFieldNoProfileSBT(const MEDCouplingFieldFloat *field); + void setFieldProfile(const MEDCouplingFieldFloat *field, const MEDFileMesh *mesh, int meshDimRelToMax, const DataArrayInt *profile); + void setFieldProfileFlatly(const MEDCouplingFieldFloat *field, const MEDFileMesh *mesh, int meshDimRelToMax, const DataArrayInt *profile); + void copyTimeInfoFrom(MEDCouplingFieldFloat *mcf); + MEDCouplingFieldFloat *field(const MEDFileMesh *mesh) const; + MEDCouplingFieldFloat *getFieldAtLevel(TypeOfField type, int meshDimRelToMax, int renumPol=0) const; + MEDCouplingFieldFloat *getFieldAtTopLevel(TypeOfField type, int renumPol=0) const; + MEDCouplingFieldFloat *getFieldOnMeshAtLevel(TypeOfField type, int meshDimRelToMax, const MEDFileMesh *mesh, int renumPol=0) const; + MEDCouplingFieldFloat *getFieldOnMeshAtLevel(TypeOfField type, const MEDCouplingMesh *mesh, int renumPol=0) const; + MEDCouplingFieldFloat *getFieldAtLevelOld(TypeOfField type, const std::string& mname, int meshDimRelToMax, int renumPol=0) const; %extend { - MEDFileFloatField1TS() throw(INTERP_KERNEL::Exception) + MEDFileFloatField1TS() { return MEDFileFloatField1TS::New(); } - MEDFileFloatField1TS(const std::string& fileName, bool loadAll=true) throw(INTERP_KERNEL::Exception) + MEDFileFloatField1TS(const std::string& fileName, bool loadAll=true) { return MEDFileFloatField1TS::New(fileName,loadAll); } - MEDFileFloatField1TS(const std::string& fileName, const std::string& fieldName, bool loadAll=true) throw(INTERP_KERNEL::Exception) + MEDFileFloatField1TS(const std::string& fileName, const std::string& fieldName, bool loadAll=true) { return MEDFileFloatField1TS::New(fileName,fieldName,loadAll); } - MEDFileFloatField1TS(const std::string& fileName, const std::string& fieldName, int iteration, int order, bool loadAll=true) throw(INTERP_KERNEL::Exception) + MEDFileFloatField1TS(const std::string& fileName, const std::string& fieldName, int iteration, int order, bool loadAll=true) { return MEDFileFloatField1TS::New(fileName,fieldName,iteration,order,loadAll); } - MEDFileFloatField1TS(DataArrayByte *db) throw(INTERP_KERNEL::Exception) + MEDFileFloatField1TS(DataArrayByte *db) { return MEDFileFloatField1TS::New(db); } - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->simpleRepr(); } - PyObject *getFieldWithProfile(TypeOfField type, int meshDimRelToMax, const MEDFileMesh *mesh) const throw(INTERP_KERNEL::Exception) + PyObject *getFieldWithProfile(TypeOfField type, int meshDimRelToMax, const MEDFileMesh *mesh) const { return MEDFileField1TS_getFieldWithProfile(self,type,meshDimRelToMax,mesh); } - DataArrayFloat *getUndergroundDataArray() const throw(INTERP_KERNEL::Exception) + DataArrayFloat *getUndergroundDataArray() const { DataArrayFloat *ret=self->getUndergroundDataArray(); if(ret) @@ -2468,7 +2468,7 @@ namespace MEDCoupling return ret; } - PyObject *getUndergroundDataArrayExt() const throw(INTERP_KERNEL::Exception) + PyObject *getUndergroundDataArrayExt() const { return MEDFileField1TS_getUndergroundDataArrayExt(self); } @@ -2480,7 +2480,7 @@ namespace MEDCoupling public: %extend { - PyObject *next() throw(INTERP_KERNEL::Exception) + PyObject *next() { MEDFileAnyTypeField1TS *ret=self->nextt(); if(ret) @@ -2497,42 +2497,42 @@ namespace MEDCoupling class MEDFileAnyTypeFieldMultiTS : public RefCountObject, public MEDFileFieldGlobsReal, public MEDFileWritableStandAlone { public: - static MEDFileAnyTypeFieldMultiTS *New(const std::string& fileName, bool loadAll=true) throw(INTERP_KERNEL::Exception); - static MEDFileAnyTypeFieldMultiTS *New(const std::string& fileName, const std::string& fieldName, bool loadAll=true) throw(INTERP_KERNEL::Exception); - MEDFileAnyTypeFieldMultiTS *deepCopy() const throw(INTERP_KERNEL::Exception); - virtual MEDFileAnyTypeFieldMultiTS *shallowCpy() const throw(INTERP_KERNEL::Exception); - std::string getName() const throw(INTERP_KERNEL::Exception); - void setName(const std::string& name) throw(INTERP_KERNEL::Exception); - std::string getDtUnit() const throw(INTERP_KERNEL::Exception); - void setDtUnit(const std::string& dtUnit) throw(INTERP_KERNEL::Exception); - std::string getMeshName() const throw(INTERP_KERNEL::Exception); - void setMeshName(const std::string& newMeshName) throw(INTERP_KERNEL::Exception); - const std::vector& getInfo() const throw(INTERP_KERNEL::Exception); - bool presenceOfMultiDiscPerGeoType() const throw(INTERP_KERNEL::Exception); - int getNumberOfComponents() const throw(INTERP_KERNEL::Exception); - int getNumberOfTS() const throw(INTERP_KERNEL::Exception); - void eraseEmptyTS() throw(INTERP_KERNEL::Exception); - int getPosOfTimeStep(int iteration, int order) const throw(INTERP_KERNEL::Exception); - int getPosGivenTime(double time, double eps=1e-8) const throw(INTERP_KERNEL::Exception); - void loadArrays() throw(INTERP_KERNEL::Exception); - void loadArraysIfNecessary() throw(INTERP_KERNEL::Exception); - void unloadArrays() throw(INTERP_KERNEL::Exception); - void unloadArraysWithoutDataLoss() throw(INTERP_KERNEL::Exception); + static MEDFileAnyTypeFieldMultiTS *New(const std::string& fileName, bool loadAll=true); + static MEDFileAnyTypeFieldMultiTS *New(const std::string& fileName, const std::string& fieldName, bool loadAll=true); + MEDFileAnyTypeFieldMultiTS *deepCopy() const; + virtual MEDFileAnyTypeFieldMultiTS *shallowCpy() const; + std::string getName() const; + void setName(const std::string& name); + std::string getDtUnit() const; + void setDtUnit(const std::string& dtUnit); + std::string getMeshName() const; + void setMeshName(const std::string& newMeshName); + const std::vector& getInfo() const; + bool presenceOfMultiDiscPerGeoType() const; + int getNumberOfComponents() const; + int getNumberOfTS() const; + void eraseEmptyTS(); + int getPosOfTimeStep(int iteration, int order) const; + int getPosGivenTime(double time, double eps=1e-8) const; + void loadArrays(); + void loadArraysIfNecessary(); + void unloadArrays(); + void unloadArraysWithoutDataLoss(); // - virtual MEDFileAnyTypeField1TS *getTimeStepAtPos(int pos) const throw(INTERP_KERNEL::Exception); - MEDFileAnyTypeField1TS *getTimeStep(int iteration, int order) const throw(INTERP_KERNEL::Exception); - MEDFileAnyTypeField1TS *getTimeStepGivenTime(double time, double eps=1e-8) const throw(INTERP_KERNEL::Exception); - void pushBackTimeStep(MEDFileAnyTypeField1TS *f1ts) throw(INTERP_KERNEL::Exception); - void synchronizeNameScope() throw(INTERP_KERNEL::Exception); - MEDFileAnyTypeFieldMultiTS *buildNewEmpty() const throw(INTERP_KERNEL::Exception); + virtual MEDFileAnyTypeField1TS *getTimeStepAtPos(int pos) const; + MEDFileAnyTypeField1TS *getTimeStep(int iteration, int order) const; + MEDFileAnyTypeField1TS *getTimeStepGivenTime(double time, double eps=1e-8) const; + void pushBackTimeStep(MEDFileAnyTypeField1TS *f1ts); + void synchronizeNameScope(); + MEDFileAnyTypeFieldMultiTS *buildNewEmpty() const; %extend { - int __len__() const throw(INTERP_KERNEL::Exception) + int __len__() const { return self->getNumberOfTS(); } - int getTimeId(PyObject *elt0) const throw(INTERP_KERNEL::Exception) + int getTimeId(PyObject *elt0) const { if(elt0 && PyInt_Check(elt0)) {//fmts[3] @@ -2566,13 +2566,13 @@ namespace MEDCoupling throw INTERP_KERNEL::Exception("MEDFileAnyTypeFieldMultiTS::__getitem__ : invalid input params ! expected fmts[int], fmts[int,int] or fmts[double] to request time step !"); } - PyObject *getIterations() const throw(INTERP_KERNEL::Exception) + PyObject *getIterations() const { std::vector< std::pair > res(self->getIterations()); return convertVecPairIntToPy(res); } - PyObject *getTimeSteps() const throw(INTERP_KERNEL::Exception) + PyObject *getTimeSteps() const { std::vector ret1; std::vector< std::pair > ret=self->getTimeSteps(ret1); @@ -2589,7 +2589,7 @@ namespace MEDCoupling return ret2; } - PyObject *getTypesOfFieldAvailable() const throw(INTERP_KERNEL::Exception) + PyObject *getTypesOfFieldAvailable() const { std::vector< std::vector > ret=self->getTypesOfFieldAvailable(); PyObject *ret2=PyList_New(ret.size()); @@ -2604,7 +2604,7 @@ namespace MEDCoupling return ret2; } - PyObject *getNonEmptyLevels(int iteration, int order, const std::string& mname=std::string()) const throw(INTERP_KERNEL::Exception) + PyObject *getNonEmptyLevels(int iteration, int order, const std::string& mname=std::string()) const { std::vector ret1; int ret0=self->getNonEmptyLevels(iteration,order,mname,ret1); @@ -2614,7 +2614,7 @@ namespace MEDCoupling return elt; } - PyObject *getFieldSplitedByType(int iteration, int order, const std::string& mname=std::string()) const throw(INTERP_KERNEL::Exception) + PyObject *getFieldSplitedByType(int iteration, int order, const std::string& mname=std::string()) const { std::vector types; std::vector< std::vector > typesF; @@ -2649,7 +2649,7 @@ namespace MEDCoupling return ret2; } - std::vector getTimeIds(PyObject *elts) const throw(INTERP_KERNEL::Exception) + std::vector getTimeIds(PyObject *elts) const { if(PyList_Check(elts)) { @@ -2670,7 +2670,7 @@ namespace MEDCoupling } } - void __delitem__(PyObject *elts) throw(INTERP_KERNEL::Exception) + void __delitem__(PyObject *elts) { if(PySlice_Check(elts)) { @@ -2686,7 +2686,7 @@ namespace MEDCoupling } } - void eraseTimeStepIds(PyObject *li) throw(INTERP_KERNEL::Exception) + void eraseTimeStepIds(PyObject *li) { int sw; int pos1; @@ -2718,12 +2718,12 @@ namespace MEDCoupling } } - MEDFileAnyTypeFieldMultiTSIterator *__iter__() throw(INTERP_KERNEL::Exception) + MEDFileAnyTypeFieldMultiTSIterator *__iter__() { return self->iterator(); } - PyObject *__getitem__(PyObject *elt0) const throw(INTERP_KERNEL::Exception) + PyObject *__getitem__(PyObject *elt0) const { if(elt0 && PyList_Check(elt0)) { @@ -2747,13 +2747,13 @@ namespace MEDCoupling return convertMEDFileField1TS(self->getTimeStepAtPos(MEDFileAnyTypeFieldMultiTSgetitemSingleTS__(self,elt0)),SWIG_POINTER_OWN | 0); } - bool changeMeshNames(PyObject *li) throw(INTERP_KERNEL::Exception) + bool changeMeshNames(PyObject *li) { std::vector< std::pair > modifTab=convertVecPairStStFromPy(li); return self->changeMeshNames(modifTab); } - PyObject *splitComponents() const throw(INTERP_KERNEL::Exception) + PyObject *splitComponents() const { std::vector< MCAuto< MEDFileAnyTypeFieldMultiTS > > ret=self->splitComponents(); std::size_t sz=ret.size(); @@ -2763,7 +2763,7 @@ namespace MEDCoupling return retPy; } - PyObject *splitDiscretizations() const throw(INTERP_KERNEL::Exception) + PyObject *splitDiscretizations() const { std::vector< MCAuto< MEDFileAnyTypeFieldMultiTS > > ret=self->splitDiscretizations(); std::size_t sz=ret.size(); @@ -2773,7 +2773,7 @@ namespace MEDCoupling return retPy; } - PyObject *splitMultiDiscrPerGeoTypes() const throw(INTERP_KERNEL::Exception) + PyObject *splitMultiDiscrPerGeoTypes() const { std::vector< MCAuto< MEDFileAnyTypeFieldMultiTS > > ret=self->splitMultiDiscrPerGeoTypes(); std::size_t sz=ret.size(); @@ -2783,7 +2783,7 @@ namespace MEDCoupling return retPy; } - void pushBackTimeSteps(PyObject *li) throw(INTERP_KERNEL::Exception) + void pushBackTimeSteps(PyObject *li) { void *argp(0); int status(SWIG_ConvertPtr(li,&argp,SWIGTYPE_p_MEDCoupling__MEDFileAnyTypeFieldMultiTS,0|0)); @@ -2799,14 +2799,14 @@ namespace MEDCoupling } } - MEDFileAnyTypeFieldMultiTS *extractPart(PyObject *extractDef, MEDFileMesh *mm) const throw(INTERP_KERNEL::Exception) + MEDFileAnyTypeFieldMultiTS *extractPart(PyObject *extractDef, MEDFileMesh *mm) const { std::map > extractDefCpp; convertToMapIntDataArrayInt(extractDef,extractDefCpp); return self->extractPart(extractDefCpp,mm); } - static PyObject *MEDFileAnyTypeFieldMultiTS::SplitIntoCommonTimeSeries(PyObject *li) throw(INTERP_KERNEL::Exception) + static PyObject *MEDFileAnyTypeFieldMultiTS::SplitIntoCommonTimeSeries(PyObject *li) { std::vector vectFMTS; convertFromPyObjVectorOfObj(li,SWIGTYPE_p_MEDCoupling__MEDFileAnyTypeFieldMultiTS,"MEDFileAnyTypeFieldMultiTS",vectFMTS); @@ -2829,7 +2829,7 @@ namespace MEDCoupling return retPy; } - static PyObject *MEDFileAnyTypeFieldMultiTS::SplitPerCommonSupport(PyObject *li, const MEDFileMesh *mesh) throw(INTERP_KERNEL::Exception) + static PyObject *MEDFileAnyTypeFieldMultiTS::SplitPerCommonSupport(PyObject *li, const MEDFileMesh *mesh) { std::vector vectFMTS; convertFromPyObjVectorOfObj(li,SWIGTYPE_p_MEDCoupling__MEDFileAnyTypeFieldMultiTS,"MEDFileAnyTypeFieldMultiTS",vectFMTS); @@ -2868,21 +2868,21 @@ namespace MEDCoupling class MEDFileFieldMultiTS : public MEDFileAnyTypeFieldMultiTS { public: - static MEDFileFieldMultiTS *New() throw(INTERP_KERNEL::Exception); - static MEDFileFieldMultiTS *New(const std::string& fileName, bool loadAll=true) throw(INTERP_KERNEL::Exception); - static MEDFileFieldMultiTS *New(const std::string& fileName, const std::string& fieldName, bool loadAll=true) throw(INTERP_KERNEL::Exception); - static MEDFileFieldMultiTS *New(DataArrayByte *db) throw(INTERP_KERNEL::Exception); + static MEDFileFieldMultiTS *New(); + static MEDFileFieldMultiTS *New(const std::string& fileName, bool loadAll=true); + static MEDFileFieldMultiTS *New(const std::string& fileName, const std::string& fieldName, bool loadAll=true); + static MEDFileFieldMultiTS *New(DataArrayByte *db); // - MEDCouplingFieldDouble *field(int iteration, int order, const MEDFileMesh *mesh) const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldDouble *getFieldAtLevel(TypeOfField type, int iteration, int order, int meshDimRelToMax, int renumPol=0) const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldDouble *getFieldAtTopLevel(TypeOfField type, int iteration, int order, int renumPol=0) const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldDouble *getFieldOnMeshAtLevel(TypeOfField type, int iteration, int order, int meshDimRelToMax, const MEDFileMesh *mesh, int renumPol=0) const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldDouble *getFieldOnMeshAtLevel(TypeOfField type, int iteration, int order, const MEDCouplingMesh *mesh, int renumPol=0) const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldDouble *getFieldAtLevelOld(TypeOfField type, int iteration, int order, const std::string& mname, int meshDimRelToMax, int renumPol=0) const throw(INTERP_KERNEL::Exception); + MEDCouplingFieldDouble *field(int iteration, int order, const MEDFileMesh *mesh) const; + MEDCouplingFieldDouble *getFieldAtLevel(TypeOfField type, int iteration, int order, int meshDimRelToMax, int renumPol=0) const; + MEDCouplingFieldDouble *getFieldAtTopLevel(TypeOfField type, int iteration, int order, int renumPol=0) const; + MEDCouplingFieldDouble *getFieldOnMeshAtLevel(TypeOfField type, int iteration, int order, int meshDimRelToMax, const MEDFileMesh *mesh, int renumPol=0) const; + MEDCouplingFieldDouble *getFieldOnMeshAtLevel(TypeOfField type, int iteration, int order, const MEDCouplingMesh *mesh, int renumPol=0) const; + MEDCouplingFieldDouble *getFieldAtLevelOld(TypeOfField type, int iteration, int order, const std::string& mname, int meshDimRelToMax, int renumPol=0) const; // - void appendFieldNoProfileSBT(const MEDCouplingFieldDouble *field) throw(INTERP_KERNEL::Exception); - void appendFieldProfile(const MEDCouplingFieldDouble *field, const MEDFileMesh *mesh, int meshDimRelToMax, const DataArrayInt *profile) throw(INTERP_KERNEL::Exception); - MEDFileIntFieldMultiTS *convertToInt(bool isDeepCpyGlobs=true) const throw(INTERP_KERNEL::Exception); + void appendFieldNoProfileSBT(const MEDCouplingFieldDouble *field); + void appendFieldProfile(const MEDCouplingFieldDouble *field, const MEDFileMesh *mesh, int meshDimRelToMax, const DataArrayInt *profile); + MEDFileIntFieldMultiTS *convertToInt(bool isDeepCpyGlobs=true) const; %extend { MEDFileFieldMultiTS() @@ -2890,17 +2890,17 @@ namespace MEDCoupling return MEDFileFieldMultiTS::New(); } - MEDFileFieldMultiTS(const std::string& fileName, bool loadAll=true) throw(INTERP_KERNEL::Exception) + MEDFileFieldMultiTS(const std::string& fileName, bool loadAll=true) { return MEDFileFieldMultiTS::New(fileName,loadAll); } - MEDFileFieldMultiTS(const std::string& fileName, const std::string& fieldName, bool loadAll=true) throw(INTERP_KERNEL::Exception) + MEDFileFieldMultiTS(const std::string& fileName, const std::string& fieldName, bool loadAll=true) { return MEDFileFieldMultiTS::New(fileName,fieldName,loadAll); } - MEDFileFieldMultiTS(DataArrayByte *db) throw(INTERP_KERNEL::Exception) + MEDFileFieldMultiTS(DataArrayByte *db) { return MEDFileFieldMultiTS::New(db); } @@ -2918,12 +2918,12 @@ namespace MEDCoupling return MEDFileFieldMultiTS::LoadSpecificEntities(fileName,fieldName,entitiesCpp,loadAll); } - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->simpleRepr(); } - PyObject *getFieldWithProfile(TypeOfField type, int iteration, int order, int meshDimRelToMax, const MEDFileMesh *mesh) const throw(INTERP_KERNEL::Exception) + PyObject *getFieldWithProfile(TypeOfField type, int iteration, int order, int meshDimRelToMax, const MEDFileMesh *mesh) const { DataArrayInt *ret1=0; DataArrayDouble *ret0=self->getFieldWithProfile(type,iteration,order,meshDimRelToMax,mesh,ret1); @@ -2933,7 +2933,7 @@ namespace MEDCoupling return ret; } - PyObject *getFieldSplitedByType2(int iteration, int order, const std::string& mname=std::string()) const throw(INTERP_KERNEL::Exception) + PyObject *getFieldSplitedByType2(int iteration, int order, const std::string& mname=std::string()) const { std::vector types; std::vector< std::vector > typesF; @@ -2966,7 +2966,7 @@ namespace MEDCoupling } return ret2; } - DataArrayDouble *getUndergroundDataArray(int iteration, int order) const throw(INTERP_KERNEL::Exception) + DataArrayDouble *getUndergroundDataArray(int iteration, int order) const { DataArrayDouble *ret=self->getUndergroundDataArray(iteration,order); if(ret) @@ -2974,7 +2974,7 @@ namespace MEDCoupling return ret; } - PyObject *getUndergroundDataArrayExt(int iteration, int order) const throw(INTERP_KERNEL::Exception) + PyObject *getUndergroundDataArrayExt(int iteration, int order) const { std::vector< std::pair,std::pair > > elt1Cpp; DataArrayDouble *elt0=self->getUndergroundDataArrayExt(iteration,order,elt1Cpp); @@ -3008,7 +3008,7 @@ namespace MEDCoupling public: %extend { - PyObject *next() throw(INTERP_KERNEL::Exception) + PyObject *next() { MEDFileAnyTypeFieldMultiTS *ret=self->nextt(); if(ret) @@ -3026,19 +3026,19 @@ namespace MEDCoupling { public: static MEDFileIntFieldMultiTS *New(); - static MEDFileIntFieldMultiTS *New(const std::string& fileName, bool loadAll=true) throw(INTERP_KERNEL::Exception); - static MEDFileIntFieldMultiTS *New(const std::string& fileName, const std::string& fieldName, bool loadAll=true) throw(INTERP_KERNEL::Exception); - static MEDFileIntFieldMultiTS *New(DataArrayByte *db) throw(INTERP_KERNEL::Exception); + static MEDFileIntFieldMultiTS *New(const std::string& fileName, bool loadAll=true); + static MEDFileIntFieldMultiTS *New(const std::string& fileName, const std::string& fieldName, bool loadAll=true); + static MEDFileIntFieldMultiTS *New(DataArrayByte *db); // - void appendFieldNoProfileSBT(const MEDCouplingFieldInt *field) throw(INTERP_KERNEL::Exception); - void appendFieldProfile(const MEDCouplingFieldInt *field, const MEDFileMesh *mesh, int meshDimRelToMax, const DataArrayInt *profile) throw(INTERP_KERNEL::Exception); - MEDCoupling::MEDFileFieldMultiTS *convertToDouble(bool isDeepCpyGlobs=true) const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldInt *field(int iteration, int order, const MEDFileMesh *mesh) const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldInt *getFieldAtLevel(TypeOfField type, int iteration, int order, int meshDimRelToMax, int renumPol=0) const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldInt *getFieldAtTopLevel(TypeOfField type, int iteration, int order, int renumPol=0) const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldInt *getFieldOnMeshAtLevel(TypeOfField type, int iteration, int order, int meshDimRelToMax, const MEDFileMesh *mesh, int renumPol=0) const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldInt *getFieldOnMeshAtLevel(TypeOfField type, int iteration, int order, const MEDCouplingMesh *mesh, int renumPol=0) const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldInt *getFieldAtLevelOld(TypeOfField type, int iteration, int order, const std::string& mname, int meshDimRelToMax, int renumPol=0) const throw(INTERP_KERNEL::Exception); + void appendFieldNoProfileSBT(const MEDCouplingFieldInt *field); + void appendFieldProfile(const MEDCouplingFieldInt *field, const MEDFileMesh *mesh, int meshDimRelToMax, const DataArrayInt *profile); + MEDCoupling::MEDFileFieldMultiTS *convertToDouble(bool isDeepCpyGlobs=true) const; + MEDCouplingFieldInt *field(int iteration, int order, const MEDFileMesh *mesh) const; + MEDCouplingFieldInt *getFieldAtLevel(TypeOfField type, int iteration, int order, int meshDimRelToMax, int renumPol=0) const; + MEDCouplingFieldInt *getFieldAtTopLevel(TypeOfField type, int iteration, int order, int renumPol=0) const; + MEDCouplingFieldInt *getFieldOnMeshAtLevel(TypeOfField type, int iteration, int order, int meshDimRelToMax, const MEDFileMesh *mesh, int renumPol=0) const; + MEDCouplingFieldInt *getFieldOnMeshAtLevel(TypeOfField type, int iteration, int order, const MEDCouplingMesh *mesh, int renumPol=0) const; + MEDCouplingFieldInt *getFieldAtLevelOld(TypeOfField type, int iteration, int order, const std::string& mname, int meshDimRelToMax, int renumPol=0) const; %extend { MEDFileIntFieldMultiTS() @@ -3046,17 +3046,17 @@ namespace MEDCoupling return MEDFileIntFieldMultiTS::New(); } - MEDFileIntFieldMultiTS(const std::string& fileName, bool loadAll=true) throw(INTERP_KERNEL::Exception) + MEDFileIntFieldMultiTS(const std::string& fileName, bool loadAll=true) { return MEDFileIntFieldMultiTS::New(fileName,loadAll); } - MEDFileIntFieldMultiTS(const std::string& fileName, const std::string& fieldName, bool loadAll=true) throw(INTERP_KERNEL::Exception) + MEDFileIntFieldMultiTS(const std::string& fileName, const std::string& fieldName, bool loadAll=true) { return MEDFileIntFieldMultiTS::New(fileName,fieldName,loadAll); } - MEDFileIntFieldMultiTS(DataArrayByte *db) throw(INTERP_KERNEL::Exception) + MEDFileIntFieldMultiTS(DataArrayByte *db) { return MEDFileIntFieldMultiTS::New(db); } @@ -3068,12 +3068,12 @@ namespace MEDCoupling return MEDFileIntFieldMultiTS::LoadSpecificEntities(fileName,fieldName,entitiesCpp,loadAll); } - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->simpleRepr(); } - PyObject *getFieldWithProfile(TypeOfField type, int iteration, int order, int meshDimRelToMax, const MEDFileMesh *mesh) const throw(INTERP_KERNEL::Exception) + PyObject *getFieldWithProfile(TypeOfField type, int iteration, int order, int meshDimRelToMax, const MEDFileMesh *mesh) const { DataArrayInt *ret1=0; DataArrayInt *ret0=self->getFieldWithProfile(type,iteration,order,meshDimRelToMax,mesh,ret1); @@ -3083,7 +3083,7 @@ namespace MEDCoupling return ret; } - DataArrayInt *getUndergroundDataArray(int iteration, int order) const throw(INTERP_KERNEL::Exception) + DataArrayInt *getUndergroundDataArray(int iteration, int order) const { DataArrayInt *ret=self->getUndergroundDataArray(iteration,order); if(ret) @@ -3097,19 +3097,19 @@ namespace MEDCoupling { public: static MEDFileFloatFieldMultiTS *New(); - static MEDFileFloatFieldMultiTS *New(const std::string& fileName, bool loadAll=true) throw(INTERP_KERNEL::Exception); - static MEDFileFloatFieldMultiTS *New(const std::string& fileName, const std::string& fieldName, bool loadAll=true) throw(INTERP_KERNEL::Exception); - static MEDFileFloatFieldMultiTS *New(DataArrayByte *db) throw(INTERP_KERNEL::Exception); + static MEDFileFloatFieldMultiTS *New(const std::string& fileName, bool loadAll=true); + static MEDFileFloatFieldMultiTS *New(const std::string& fileName, const std::string& fieldName, bool loadAll=true); + static MEDFileFloatFieldMultiTS *New(DataArrayByte *db); // - void appendFieldNoProfileSBT(const MEDCouplingFieldFloat *field) throw(INTERP_KERNEL::Exception); - void appendFieldProfile(const MEDCouplingFieldFloat *field, const MEDFileMesh *mesh, int meshDimRelToMax, const DataArrayInt *profile) throw(INTERP_KERNEL::Exception); - MEDCoupling::MEDFileFieldMultiTS *convertToDouble(bool isDeepCpyGlobs=true) const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldFloat *field(int iteration, int order, const MEDFileMesh *mesh) const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldFloat *getFieldAtLevel(TypeOfField type, int iteration, int order, int meshDimRelToMax, int renumPol=0) const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldFloat *getFieldAtTopLevel(TypeOfField type, int iteration, int order, int renumPol=0) const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldFloat *getFieldOnMeshAtLevel(TypeOfField type, int iteration, int order, int meshDimRelToMax, const MEDFileMesh *mesh, int renumPol=0) const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldFloat *getFieldOnMeshAtLevel(TypeOfField type, int iteration, int order, const MEDCouplingMesh *mesh, int renumPol=0) const throw(INTERP_KERNEL::Exception); - MEDCouplingFieldFloat *getFieldAtLevelOld(TypeOfField type, int iteration, int order, const std::string& mname, int meshDimRelToMax, int renumPol=0) const throw(INTERP_KERNEL::Exception); + void appendFieldNoProfileSBT(const MEDCouplingFieldFloat *field); + void appendFieldProfile(const MEDCouplingFieldFloat *field, const MEDFileMesh *mesh, int meshDimRelToMax, const DataArrayInt *profile); + MEDCoupling::MEDFileFieldMultiTS *convertToDouble(bool isDeepCpyGlobs=true) const; + MEDCouplingFieldFloat *field(int iteration, int order, const MEDFileMesh *mesh) const; + MEDCouplingFieldFloat *getFieldAtLevel(TypeOfField type, int iteration, int order, int meshDimRelToMax, int renumPol=0) const; + MEDCouplingFieldFloat *getFieldAtTopLevel(TypeOfField type, int iteration, int order, int renumPol=0) const; + MEDCouplingFieldFloat *getFieldOnMeshAtLevel(TypeOfField type, int iteration, int order, int meshDimRelToMax, const MEDFileMesh *mesh, int renumPol=0) const; + MEDCouplingFieldFloat *getFieldOnMeshAtLevel(TypeOfField type, int iteration, int order, const MEDCouplingMesh *mesh, int renumPol=0) const; + MEDCouplingFieldFloat *getFieldAtLevelOld(TypeOfField type, int iteration, int order, const std::string& mname, int meshDimRelToMax, int renumPol=0) const; %extend { MEDFileFloatFieldMultiTS() @@ -3117,17 +3117,17 @@ namespace MEDCoupling return MEDFileFloatFieldMultiTS::New(); } - MEDFileFloatFieldMultiTS(const std::string& fileName, bool loadAll=true) throw(INTERP_KERNEL::Exception) + MEDFileFloatFieldMultiTS(const std::string& fileName, bool loadAll=true) { return MEDFileFloatFieldMultiTS::New(fileName,loadAll); } - MEDFileFloatFieldMultiTS(const std::string& fileName, const std::string& fieldName, bool loadAll=true) throw(INTERP_KERNEL::Exception) + MEDFileFloatFieldMultiTS(const std::string& fileName, const std::string& fieldName, bool loadAll=true) { return MEDFileFloatFieldMultiTS::New(fileName,fieldName,loadAll); } - MEDFileFloatFieldMultiTS(DataArrayByte *db) throw(INTERP_KERNEL::Exception) + MEDFileFloatFieldMultiTS(DataArrayByte *db) { return MEDFileFloatFieldMultiTS::New(db); } @@ -3139,12 +3139,12 @@ namespace MEDCoupling return MEDFileFloatFieldMultiTS::LoadSpecificEntities(fileName,fieldName,entitiesCpp,loadAll); } - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->simpleRepr(); } - PyObject *getFieldWithProfile(TypeOfField type, int iteration, int order, int meshDimRelToMax, const MEDFileMesh *mesh) const throw(INTERP_KERNEL::Exception) + PyObject *getFieldWithProfile(TypeOfField type, int iteration, int order, int meshDimRelToMax, const MEDFileMesh *mesh) const { DataArrayInt *ret1=0; DataArrayFloat *ret0=self->getFieldWithProfile(type,iteration,order,meshDimRelToMax,mesh,ret1); @@ -3154,7 +3154,7 @@ namespace MEDCoupling return ret; } - DataArrayFloat *getUndergroundDataArray(int iteration, int order) const throw(INTERP_KERNEL::Exception) + DataArrayFloat *getUndergroundDataArray(int iteration, int order) const { DataArrayFloat *ret=self->getUndergroundDataArray(iteration,order); if(ret) @@ -3167,11 +3167,11 @@ namespace MEDCoupling class MEDFileMeshSupports : public RefCountObject, public MEDFileWritableStandAlone { public: - static MEDFileMeshSupports *New(const std::string& fileName) throw(INTERP_KERNEL::Exception); - std::vector getSupMeshNames() const throw(INTERP_KERNEL::Exception); + static MEDFileMeshSupports *New(const std::string& fileName); + std::vector getSupMeshNames() const; %extend { - MEDFileUMesh *getSupMeshWithName(const std::string& name) const throw(INTERP_KERNEL::Exception) + MEDFileUMesh *getSupMeshWithName(const std::string& name) const { const MEDFileUMesh *ret(self->getSupMeshWithName(name)); MEDFileUMesh *ret2(const_cast(ret)); @@ -3185,7 +3185,7 @@ namespace MEDCoupling class MEDFileStructureElements : public RefCountObject, public MEDFileWritableStandAlone { public: - static MEDFileStructureElements *New(const std::string& fileName, const MEDFileMeshSupports *ms) throw(INTERP_KERNEL::Exception); + static MEDFileStructureElements *New(const std::string& fileName, const MEDFileMeshSupports *ms); private: MEDFileStructureElements(); }; @@ -3193,37 +3193,37 @@ namespace MEDCoupling class MEDFileFields : public RefCountObject, public MEDFileFieldGlobsReal, public MEDFileWritableStandAlone { public: - static MEDFileFields *New() throw(INTERP_KERNEL::Exception); - static MEDFileFields *New(const std::string& fileName, bool loadAll=true) throw(INTERP_KERNEL::Exception); - static MEDFileFields *New(DataArrayByte *db) throw(INTERP_KERNEL::Exception); - static MEDFileFields *NewAdv(const std::string& fileName, bool loadAll, const MEDFileEntities *entities) throw(INTERP_KERNEL::Exception); - static MEDFileFields *LoadPartOf(const std::string& fileName, bool loadAll=true, const MEDFileMeshes *ms=0) throw(INTERP_KERNEL::Exception); - static MEDFileFields *NewWithDynGT(const std::string& fileName, const MEDFileStructureElements *se, bool loadAll=true) throw(INTERP_KERNEL::Exception); - MEDFileFields *deepCopy() const throw(INTERP_KERNEL::Exception); - MEDFileFields *shallowCpy() const throw(INTERP_KERNEL::Exception); - void loadArrays() throw(INTERP_KERNEL::Exception); - void loadArraysIfNecessary() throw(INTERP_KERNEL::Exception); - void unloadArrays() throw(INTERP_KERNEL::Exception); - void unloadArraysWithoutDataLoss() throw(INTERP_KERNEL::Exception); + static MEDFileFields *New(); + static MEDFileFields *New(const std::string& fileName, bool loadAll=true); + static MEDFileFields *New(DataArrayByte *db); + static MEDFileFields *NewAdv(const std::string& fileName, bool loadAll, const MEDFileEntities *entities); + static MEDFileFields *LoadPartOf(const std::string& fileName, bool loadAll=true, const MEDFileMeshes *ms=0); + static MEDFileFields *NewWithDynGT(const std::string& fileName, const MEDFileStructureElements *se, bool loadAll=true); + MEDFileFields *deepCopy() const; + MEDFileFields *shallowCpy() const; + void loadArrays(); + void loadArraysIfNecessary(); + void unloadArrays(); + void unloadArraysWithoutDataLoss(); int getNumberOfFields() const; - std::vector getFieldsNames() const throw(INTERP_KERNEL::Exception); - std::vector getMeshesNames() const throw(INTERP_KERNEL::Exception); + std::vector getFieldsNames() const; + std::vector getMeshesNames() const; // - void resize(int newSize) throw(INTERP_KERNEL::Exception); - void pushField(MEDFileAnyTypeFieldMultiTS *field) throw(INTERP_KERNEL::Exception); - void setFieldAtPos(int i, MEDFileAnyTypeFieldMultiTS *field) throw(INTERP_KERNEL::Exception); - int getPosFromFieldName(const std::string& fieldName) const throw(INTERP_KERNEL::Exception); - MEDFileAnyTypeFieldMultiTS *getFieldAtPos(int i) const throw(INTERP_KERNEL::Exception); - MEDFileAnyTypeFieldMultiTS *getFieldWithName(const std::string& fieldName) const throw(INTERP_KERNEL::Exception); - MEDFileFields *partOfThisLyingOnSpecifiedMeshName(const std::string& meshName) const throw(INTERP_KERNEL::Exception); - bool presenceOfStructureElements() const throw(INTERP_KERNEL::Exception); - void aggregate(const MEDFileFields& other) throw(INTERP_KERNEL::Exception); - void killStructureElements() throw(INTERP_KERNEL::Exception); - void keepOnlyStructureElements() throw(INTERP_KERNEL::Exception); - void keepOnlyOnMeshSE(const std::string& meshName, const std::string& seName) throw(INTERP_KERNEL::Exception); - void blowUpSE(MEDFileMeshes *ms, const MEDFileStructureElements *ses) throw(INTERP_KERNEL::Exception); - void destroyFieldAtPos(int i) throw(INTERP_KERNEL::Exception); - bool removeFieldsWithoutAnyTimeStep() throw(INTERP_KERNEL::Exception); + void resize(int newSize); + void pushField(MEDFileAnyTypeFieldMultiTS *field); + void setFieldAtPos(int i, MEDFileAnyTypeFieldMultiTS *field); + int getPosFromFieldName(const std::string& fieldName) const; + MEDFileAnyTypeFieldMultiTS *getFieldAtPos(int i) const; + MEDFileAnyTypeFieldMultiTS *getFieldWithName(const std::string& fieldName) const; + MEDFileFields *partOfThisLyingOnSpecifiedMeshName(const std::string& meshName) const; + bool presenceOfStructureElements() const; + void aggregate(const MEDFileFields& other); + void killStructureElements(); + void keepOnlyStructureElements(); + void keepOnlyOnMeshSE(const std::string& meshName, const std::string& seName); + void blowUpSE(MEDFileMeshes *ms, const MEDFileStructureElements *ses); + void destroyFieldAtPos(int i); + bool removeFieldsWithoutAnyTimeStep(); %extend { MEDFileFields() @@ -3231,39 +3231,39 @@ namespace MEDCoupling return MEDFileFields::New(); } - MEDFileFields(const std::string& fileName, bool loadAll=true) throw(INTERP_KERNEL::Exception) + MEDFileFields(const std::string& fileName, bool loadAll=true) { return MEDFileFields::New(fileName,loadAll); } - MEDFileFields(DataArrayByte *db) throw(INTERP_KERNEL::Exception) + MEDFileFields(DataArrayByte *db) { return MEDFileFields::New(db); } - MEDFileFields(const std::string& fileName, bool loadAll, const MEDFileEntities *entities) throw(INTERP_KERNEL::Exception) + MEDFileFields(const std::string& fileName, bool loadAll, const MEDFileEntities *entities) { return MEDFileFields::NewAdv(fileName,loadAll,entities); } - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->simpleRepr(); } - MEDFileFields *partOfThisOnStructureElements() const throw(INTERP_KERNEL::Exception) + MEDFileFields *partOfThisOnStructureElements() const { MCAuto ret(self->partOfThisOnStructureElements()); return ret.retn(); } - MEDFileFields *partOfThisLyingOnSpecifiedMeshSEName(const std::string& meshName, const std::string& seName) const throw(INTERP_KERNEL::Exception) + MEDFileFields *partOfThisLyingOnSpecifiedMeshSEName(const std::string& meshName, const std::string& seName) const { MCAuto ret(self->partOfThisLyingOnSpecifiedMeshSEName(meshName,seName)); return ret.retn(); } - static MEDFileFields *LoadSpecificEntities(const std::string& fileName, PyObject *entities, bool loadAll=true) throw(INTERP_KERNEL::Exception) + static MEDFileFields *LoadSpecificEntities(const std::string& fileName, PyObject *entities, bool loadAll=true) { std::vector > tmp(convertTimePairIdsFromPy(entities)); std::size_t sz(tmp.size()); @@ -3276,14 +3276,14 @@ namespace MEDCoupling return MEDFileFields::LoadSpecificEntities(fileName,entitiesCpp,loadAll); } - PyObject *getMeshSENames() const throw(INTERP_KERNEL::Exception) + PyObject *getMeshSENames() const { std::vector< std::pair > ps; self->getMeshSENames(ps); return convertVectPairStToPy(ps); } - PyObject *getCommonIterations() const throw(INTERP_KERNEL::Exception) + PyObject *getCommonIterations() const { bool ret1; std::vector< std::pair > ret0=self->getCommonIterations(ret1); @@ -3303,19 +3303,19 @@ namespace MEDCoupling return ret; } - MEDFileFields *partOfThisLyingOnSpecifiedTimeSteps(PyObject *timeSteps) const throw(INTERP_KERNEL::Exception) + MEDFileFields *partOfThisLyingOnSpecifiedTimeSteps(PyObject *timeSteps) const { std::vector< std::pair > ts=convertTimePairIdsFromPy(timeSteps); return self->partOfThisLyingOnSpecifiedTimeSteps(ts); } - MEDFileFields *partOfThisNotLyingOnSpecifiedTimeSteps(PyObject *timeSteps) const throw(INTERP_KERNEL::Exception) + MEDFileFields *partOfThisNotLyingOnSpecifiedTimeSteps(PyObject *timeSteps) const { std::vector< std::pair > ts=convertTimePairIdsFromPy(timeSteps); return self->partOfThisNotLyingOnSpecifiedTimeSteps(ts); } - PyObject *__getitem__(PyObject *obj) throw(INTERP_KERNEL::Exception) + PyObject *__getitem__(PyObject *obj) { if(obj && PyList_Check(obj)) { @@ -3333,29 +3333,29 @@ namespace MEDCoupling return convertMEDFileFieldMultiTS(self->getFieldAtPos(MEDFileFieldsgetitemSingleTS__(self,obj)), SWIG_POINTER_OWN | 0 ); } - MEDFileFields *__setitem__(int obj, MEDFileFieldMultiTS *field) throw(INTERP_KERNEL::Exception) + MEDFileFields *__setitem__(int obj, MEDFileFieldMultiTS *field) { self->setFieldAtPos(obj,field); return self; } - int __len__() const throw(INTERP_KERNEL::Exception) + int __len__() const { return self->getNumberOfFields(); } - MEDFileFieldsIterator *__iter__() throw(INTERP_KERNEL::Exception) + MEDFileFieldsIterator *__iter__() { return self->iterator(); } - bool changeMeshNames(PyObject *li) throw(INTERP_KERNEL::Exception) + bool changeMeshNames(PyObject *li) { std::vector< std::pair > modifTab=convertVecPairStStFromPy(li); return self->changeMeshNames(modifTab); } - int getPosOfField(PyObject *elt0) const throw(INTERP_KERNEL::Exception) + int getPosOfField(PyObject *elt0) const { static const char msg[]="MEDFileFields::getPosOfField : invalid input params ! expected fields[int], fields[string_of_field_name] !"; if(!elt0) @@ -3367,7 +3367,7 @@ namespace MEDCoupling return self->getPosFromFieldName(convertPyObjectToStr(elt0,msg)); } - std::vector getPosOfFields(PyObject *elts) const throw(INTERP_KERNEL::Exception) + std::vector getPosOfFields(PyObject *elts) const { if(PyList_Check(elts)) { @@ -3388,14 +3388,14 @@ namespace MEDCoupling } } - void pushFields(PyObject *fields) throw(INTERP_KERNEL::Exception) + void pushFields(PyObject *fields) { std::vector tmp; convertFromPyObjVectorOfObj(fields,SWIGTYPE_p_MEDCoupling__MEDFileAnyTypeFieldMultiTS,"MEDFileAnyTypeFieldMultiTS",tmp); self->pushFields(tmp); } - void __delitem__(PyObject *elts) throw(INTERP_KERNEL::Exception) + void __delitem__(PyObject *elts) { if(elts && PySlice_Check(elts)) { @@ -3411,14 +3411,14 @@ namespace MEDCoupling } } - MEDFileFields *extractPart(PyObject *extractDef, MEDFileMesh *mm) const throw(INTERP_KERNEL::Exception) + MEDFileFields *extractPart(PyObject *extractDef, MEDFileMesh *mm) const { std::map > extractDefCpp; convertToMapIntDataArrayInt(extractDef,extractDefCpp); return self->extractPart(extractDefCpp,mm); } - MEDFileFields *linearToQuadratic(const MEDFileMeshes *oldLin, const MEDFileMeshes *newQuad) const throw(INTERP_KERNEL::Exception) + MEDFileFields *linearToQuadratic(const MEDFileMeshes *oldLin, const MEDFileMeshes *newQuad) const { MCAuto ret(self->linearToQuadratic(oldLin,newQuad)); return ret.retn(); @@ -3442,12 +3442,12 @@ namespace MEDCoupling class MEDFileParameterDouble1TSWTI : public MEDFileParameter1TS { public: - void setValue(double val) throw(INTERP_KERNEL::Exception); - double getValue() const throw(INTERP_KERNEL::Exception); - std::string simpleRepr() const throw(INTERP_KERNEL::Exception); + void setValue(double val); + double getValue() const; + std::string simpleRepr() const; %extend { - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->simpleRepr(); } @@ -3467,14 +3467,14 @@ namespace MEDCoupling { public: static MEDFileParameterDouble1TS *New(); - static MEDFileParameterDouble1TS *New(const std::string& fileName) throw(INTERP_KERNEL::Exception); - static MEDFileParameterDouble1TS *New(const std::string& fileName, const std::string& paramName) throw(INTERP_KERNEL::Exception); - static MEDFileParameterDouble1TS *New(const std::string& fileName, const std::string& paramName, int dt, int it) throw(INTERP_KERNEL::Exception); - virtual MEDFileParameter1TS *deepCopy() const throw(INTERP_KERNEL::Exception); - virtual std::string simpleRepr() const throw(INTERP_KERNEL::Exception); - void setName(const std::string& name) throw(INTERP_KERNEL::Exception); - std::string getName() const throw(INTERP_KERNEL::Exception); - void write(const std::string& fileName, int mode) const throw(INTERP_KERNEL::Exception); + static MEDFileParameterDouble1TS *New(const std::string& fileName); + static MEDFileParameterDouble1TS *New(const std::string& fileName, const std::string& paramName); + static MEDFileParameterDouble1TS *New(const std::string& fileName, const std::string& paramName, int dt, int it); + virtual MEDFileParameter1TS *deepCopy() const; + virtual std::string simpleRepr() const; + void setName(const std::string& name); + std::string getName() const; + void write(const std::string& fileName, int mode) const; %extend { MEDFileParameterDouble1TS() @@ -3482,27 +3482,27 @@ namespace MEDCoupling return MEDFileParameterDouble1TS::New(); } - MEDFileParameterDouble1TS(const std::string& fileName) throw(INTERP_KERNEL::Exception) + MEDFileParameterDouble1TS(const std::string& fileName) { return MEDFileParameterDouble1TS::New(fileName); } - MEDFileParameterDouble1TS(const std::string& fileName, const std::string& paramName) throw(INTERP_KERNEL::Exception) + MEDFileParameterDouble1TS(const std::string& fileName, const std::string& paramName) { return MEDFileParameterDouble1TS::New(fileName,paramName); } - MEDFileParameterDouble1TS(const std::string& fileName, const std::string& paramName, int dt, int it) throw(INTERP_KERNEL::Exception) + MEDFileParameterDouble1TS(const std::string& fileName, const std::string& paramName, int dt, int it) { return MEDFileParameterDouble1TS::New(fileName,paramName,dt,it); } - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->simpleRepr(); } - PyObject *isEqual(const MEDFileParameter1TS *other, double eps) const throw(INTERP_KERNEL::Exception) + PyObject *isEqual(const MEDFileParameter1TS *other, double eps) const { std::string what; bool ret0=self->isEqual(other,eps,what); @@ -3520,18 +3520,18 @@ namespace MEDCoupling { public: static MEDFileParameterMultiTS *New(); - static MEDFileParameterMultiTS *New(const std::string& fileName) throw(INTERP_KERNEL::Exception); - static MEDFileParameterMultiTS *New(const std::string& fileName, const std::string& paramName) throw(INTERP_KERNEL::Exception); + static MEDFileParameterMultiTS *New(const std::string& fileName); + static MEDFileParameterMultiTS *New(const std::string& fileName, const std::string& paramName); std::string getName() const; void setName(const std::string& name); - MEDFileParameterMultiTS *deepCopy() const throw(INTERP_KERNEL::Exception); - void write(const std::string& fileName, int mode) const throw(INTERP_KERNEL::Exception); - std::string simpleRepr() const throw(INTERP_KERNEL::Exception); - void appendValue(int dt, int it, double time, double val) throw(INTERP_KERNEL::Exception); - double getDoubleValue(int iteration, int order) const throw(INTERP_KERNEL::Exception); - int getPosOfTimeStep(int iteration, int order) const throw(INTERP_KERNEL::Exception); - int getPosGivenTime(double time, double eps=1e-8) const throw(INTERP_KERNEL::Exception); - int getNumberOfTS() const throw(INTERP_KERNEL::Exception); + MEDFileParameterMultiTS *deepCopy() const; + void write(const std::string& fileName, int mode) const; + std::string simpleRepr() const; + void appendValue(int dt, int it, double time, double val); + double getDoubleValue(int iteration, int order) const; + int getPosOfTimeStep(int iteration, int order) const; + int getPosGivenTime(double time, double eps=1e-8) const; + int getNumberOfTS() const; %extend { MEDFileParameterMultiTS() @@ -3549,12 +3549,12 @@ namespace MEDCoupling return MEDFileParameterMultiTS::New(fileName,paramName); } - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->simpleRepr(); } - PyObject *isEqual(const MEDFileParameterMultiTS *other, double eps) const throw(INTERP_KERNEL::Exception) + PyObject *isEqual(const MEDFileParameterMultiTS *other, double eps) const { std::string what; bool ret0=self->isEqual(other,eps,what); @@ -3566,7 +3566,7 @@ namespace MEDCoupling return res; } - void eraseTimeStepIds(PyObject *ids) throw(INTERP_KERNEL::Exception) + void eraseTimeStepIds(PyObject *ids) { int sw; int pos1; @@ -3598,7 +3598,7 @@ namespace MEDCoupling } } - int getTimeStepId(PyObject *elt0) const throw(INTERP_KERNEL::Exception) + int getTimeStepId(PyObject *elt0) const { if(elt0 && PyInt_Check(elt0)) {//fmts[3] @@ -3632,7 +3632,7 @@ namespace MEDCoupling throw INTERP_KERNEL::Exception("MEDFileParameterMultiTS::getTimeStepId : invalid input params ! expected fmts[int], fmts[int,int] or fmts[double] to request time step !"); } - MEDFileParameter1TS *__getitem__(PyObject *elt0) const throw(INTERP_KERNEL::Exception) + MEDFileParameter1TS *__getitem__(PyObject *elt0) const { MEDFileParameter1TS *ret=self->getTimeStepAtPos(MEDCoupling_MEDFileParameterMultiTS_getTimeStepId(self,elt0)); if(ret) @@ -3640,7 +3640,7 @@ namespace MEDCoupling return ret; } - std::vector getTimeStepIds(PyObject *elts) const throw(INTERP_KERNEL::Exception) + std::vector getTimeStepIds(PyObject *elts) const { if(PyList_Check(elts)) { @@ -3661,14 +3661,14 @@ namespace MEDCoupling } } - void __delitem__(PyObject *elts) throw(INTERP_KERNEL::Exception) + void __delitem__(PyObject *elts) { std::vector idsToRemove=MEDCoupling_MEDFileParameterMultiTS_getTimeStepIds(self,elts); if(!idsToRemove.empty()) self->eraseTimeStepIds(&idsToRemove[0],&idsToRemove[0]+idsToRemove.size()); } - MEDFileParameter1TS *getTimeStepAtPos(int posId) const throw(INTERP_KERNEL::Exception) + MEDFileParameter1TS *getTimeStepAtPos(int posId) const { MEDFileParameter1TS *ret=self->getTimeStepAtPos(posId); if(ret) @@ -3676,7 +3676,7 @@ namespace MEDCoupling return ret; } - PyObject *getIterations() const throw(INTERP_KERNEL::Exception) + PyObject *getIterations() const { std::vector< std::pair > res=self->getIterations(); PyObject *ret=PyList_New(res.size()); @@ -3691,7 +3691,7 @@ namespace MEDCoupling return ret; } - PyObject *getTimeSteps() const throw(INTERP_KERNEL::Exception) + PyObject *getTimeSteps() const { std::vector res2; std::vector< std::pair > res=self->getTimeSteps(res2); @@ -3714,17 +3714,17 @@ namespace MEDCoupling { public: static MEDFileParameters *New(); - static MEDFileParameters *New(const std::string& fileName) throw(INTERP_KERNEL::Exception); - static MEDFileParameters *New(DataArrayByte *db) throw(INTERP_KERNEL::Exception); - MEDFileParameters *deepCopy() const throw(INTERP_KERNEL::Exception); - std::vector getParamsNames() const throw(INTERP_KERNEL::Exception); - std::string simpleRepr() const throw(INTERP_KERNEL::Exception); - void resize(int newSize) throw(INTERP_KERNEL::Exception); - void pushParam(MEDFileParameterMultiTS *param) throw(INTERP_KERNEL::Exception); - void setParamAtPos(int i, MEDFileParameterMultiTS *param) throw(INTERP_KERNEL::Exception); - void destroyParamAtPos(int i) throw(INTERP_KERNEL::Exception); - int getPosFromParamName(const std::string& paramName) const throw(INTERP_KERNEL::Exception); - int getNumberOfParams() const throw(INTERP_KERNEL::Exception); + static MEDFileParameters *New(const std::string& fileName); + static MEDFileParameters *New(DataArrayByte *db); + MEDFileParameters *deepCopy() const; + std::vector getParamsNames() const; + std::string simpleRepr() const; + void resize(int newSize); + void pushParam(MEDFileParameterMultiTS *param); + void setParamAtPos(int i, MEDFileParameterMultiTS *param); + void destroyParamAtPos(int i); + int getPosFromParamName(const std::string& paramName) const; + int getNumberOfParams() const; %extend { MEDFileParameters() @@ -3737,17 +3737,17 @@ namespace MEDCoupling return MEDFileParameters::New(fileName); } - MEDFileParameters(DataArrayByte *db) throw(INTERP_KERNEL::Exception) + MEDFileParameters(DataArrayByte *db) { return MEDFileParameters::New(db); } - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->simpleRepr(); } - MEDFileParameterMultiTS *__getitem__(PyObject *obj) throw(INTERP_KERNEL::Exception) + MEDFileParameterMultiTS *__getitem__(PyObject *obj) { static const char msg[]="MEDFileParameters::__getitem__ : only integer or string with meshname supported !"; if(PyInt_Check(obj)) @@ -3763,12 +3763,12 @@ namespace MEDCoupling return ret; } - int __len__() const throw(INTERP_KERNEL::Exception) + int __len__() const { return self->getNumberOfParams(); } - MEDFileParameterMultiTS *getParamAtPos(int i) const throw(INTERP_KERNEL::Exception) + MEDFileParameterMultiTS *getParamAtPos(int i) const { MEDFileParameterMultiTS *ret=self->getParamAtPos(i); if(ret) @@ -3776,7 +3776,7 @@ namespace MEDCoupling return ret; } - MEDFileParameterMultiTS *getParamWithName(const std::string& paramName) const throw(INTERP_KERNEL::Exception) + MEDFileParameterMultiTS *getParamWithName(const std::string& paramName) const { MEDFileParameterMultiTS *ret=self->getParamWithName(paramName); if(ret) @@ -3784,7 +3784,7 @@ namespace MEDCoupling return ret; } - PyObject *isEqual(const MEDFileParameters *other, double eps) const throw(INTERP_KERNEL::Exception) + PyObject *isEqual(const MEDFileParameters *other, double eps) const { std::string what; bool ret0=self->isEqual(other,eps,what); @@ -3801,31 +3801,31 @@ namespace MEDCoupling class MEDFileData : public RefCountObject, public MEDFileWritableStandAlone { public: - static MEDFileData *New(DataArrayByte *db) throw(INTERP_KERNEL::Exception); - static MEDFileData *New(const std::string& fileName) throw(INTERP_KERNEL::Exception); + static MEDFileData *New(DataArrayByte *db); + static MEDFileData *New(const std::string& fileName); static MEDFileData *New(); - MEDFileData *deepCopy() const throw(INTERP_KERNEL::Exception); - void setFields(MEDFileFields *fields) throw(INTERP_KERNEL::Exception); - void setMeshes(MEDFileMeshes *meshes) throw(INTERP_KERNEL::Exception); - void setParams(MEDFileParameters *params) throw(INTERP_KERNEL::Exception); - int getNumberOfFields() const throw(INTERP_KERNEL::Exception); - int getNumberOfMeshes() const throw(INTERP_KERNEL::Exception); - int getNumberOfParams() const throw(INTERP_KERNEL::Exception); + MEDFileData *deepCopy() const; + void setFields(MEDFileFields *fields); + void setMeshes(MEDFileMeshes *meshes); + void setParams(MEDFileParameters *params); + int getNumberOfFields() const; + int getNumberOfMeshes() const; + int getNumberOfParams() const; // - bool changeMeshName(const std::string& oldMeshName, const std::string& newMeshName) throw(INTERP_KERNEL::Exception); - bool unPolyzeMeshes() throw(INTERP_KERNEL::Exception); - void dealWithStructureElements() throw(INTERP_KERNEL::Exception); - std::string getHeader() const throw(INTERP_KERNEL::Exception); - void setHeader(const std::string& header) throw(INTERP_KERNEL::Exception); + bool changeMeshName(const std::string& oldMeshName, const std::string& newMeshName); + bool unPolyzeMeshes(); + void dealWithStructureElements(); + std::string getHeader() const; + void setHeader(const std::string& header); // %extend { - MEDFileData(const std::string& fileName) throw(INTERP_KERNEL::Exception) + MEDFileData(const std::string& fileName) { return MEDFileData::New(fileName); } - MEDFileData(DataArrayByte *db) throw(INTERP_KERNEL::Exception) + MEDFileData(DataArrayByte *db) { return MEDFileData::New(db); } @@ -3835,12 +3835,12 @@ namespace MEDCoupling return MEDFileData::New(); } - std::string __str__() const throw(INTERP_KERNEL::Exception) + std::string __str__() const { return self->simpleRepr(); } - MEDFileMeshes *getMeshes() const throw(INTERP_KERNEL::Exception) + MEDFileMeshes *getMeshes() const { MEDFileMeshes *ret=self->getMeshes(); if(ret) @@ -3848,7 +3848,7 @@ namespace MEDCoupling return ret; } - MEDFileParameters *getParams() const throw(INTERP_KERNEL::Exception) + MEDFileParameters *getParams() const { MEDFileParameters *ret=self->getParams(); if(ret) @@ -3856,7 +3856,7 @@ namespace MEDCoupling return ret; } - MEDFileFields *getFields() const throw(INTERP_KERNEL::Exception) + MEDFileFields *getFields() const { MEDFileFields *ret=self->getFields(); if(ret) @@ -3864,13 +3864,13 @@ namespace MEDCoupling return ret; } - bool changeMeshNames(PyObject *li) throw(INTERP_KERNEL::Exception) + bool changeMeshNames(PyObject *li) { std::vector< std::pair > modifTab=convertVecPairStStFromPy(li); return self->changeMeshNames(modifTab); } - static MEDFileData *Aggregate(PyObject *mfds) throw(INTERP_KERNEL::Exception) + static MEDFileData *Aggregate(PyObject *mfds) { std::vector mfdsCpp; convertFromPyObjVectorOfObj(mfds,SWIGTYPE_p_MEDCoupling__MEDFileData,"MEDFileData",mfdsCpp); @@ -3883,11 +3883,11 @@ namespace MEDCoupling class SauvReader : public RefCountObject { public: - static SauvReader* New(const std::string& fileName) throw(INTERP_KERNEL::Exception); - MEDFileData * loadInMEDFileDS() throw(INTERP_KERNEL::Exception); + static SauvReader* New(const std::string& fileName); + MEDFileData * loadInMEDFileDS(); %extend { - SauvReader(const std::string& fileName) throw(INTERP_KERNEL::Exception) + SauvReader(const std::string& fileName) { return SauvReader::New(fileName); } @@ -3898,13 +3898,13 @@ namespace MEDCoupling { public: static SauvWriter * New(); - void setMEDFileDS(const MEDFileData* medData, unsigned meshIndex = 0) throw(INTERP_KERNEL::Exception); - void write(const std::string& fileName) throw(INTERP_KERNEL::Exception); - void setCpyGrpIfOnASingleFamilyStatus(bool status) throw(INTERP_KERNEL::Exception); - bool getCpyGrpIfOnASingleFamilyStatus() const throw(INTERP_KERNEL::Exception); + void setMEDFileDS(const MEDFileData* medData, unsigned meshIndex = 0); + void write(const std::string& fileName); + void setCpyGrpIfOnASingleFamilyStatus(bool status); + bool getCpyGrpIfOnASingleFamilyStatus() const; %extend { - SauvWriter() throw(INTERP_KERNEL::Exception) + SauvWriter() { return SauvWriter::New(); } @@ -3918,13 +3918,13 @@ namespace MEDCoupling class MEDFileField1TSStructItem { public: - static MEDFileField1TSStructItem BuildItemFrom(const MEDFileAnyTypeField1TS *ref, const MEDFileMeshStruct *meshSt) throw(INTERP_KERNEL::Exception); + static MEDFileField1TSStructItem BuildItemFrom(const MEDFileAnyTypeField1TS *ref, const MEDFileMeshStruct *meshSt); }; class MEDFileMeshStruct : public RefCountObject { public: - static MEDFileMeshStruct *New(const MEDFileMesh *mesh) throw(INTERP_KERNEL::Exception); + static MEDFileMeshStruct *New(const MEDFileMesh *mesh); protected: ~MEDFileMeshStruct(); }; @@ -3932,15 +3932,15 @@ namespace MEDCoupling class MEDMeshMultiLev : public RefCountObject { public: - virtual MEDMeshMultiLev *prepare() const throw(INTERP_KERNEL::Exception); - DataArray *buildDataArray(const MEDFileField1TSStructItem& fst, const MEDFileFieldGlobsReal *globs, const DataArray *vals) const throw(INTERP_KERNEL::Exception); - DataArrayInt *retrieveGlobalNodeIdsIfAny() const throw(INTERP_KERNEL::Exception); + virtual MEDMeshMultiLev *prepare() const; + DataArray *buildDataArray(const MEDFileField1TSStructItem& fst, const MEDFileFieldGlobsReal *globs, const DataArray *vals) const; + DataArrayInt *retrieveGlobalNodeIdsIfAny() const; protected: ~MEDMeshMultiLev(); public: %extend { - PyObject *retrieveFamilyIdsOnCells() const throw(INTERP_KERNEL::Exception) + PyObject *retrieveFamilyIdsOnCells() const { DataArrayInt *famIds(0); bool isWithoutCopy(false); @@ -3953,7 +3953,7 @@ namespace MEDCoupling return ret; } - PyObject *retrieveNumberIdsOnCells() const throw(INTERP_KERNEL::Exception) + PyObject *retrieveNumberIdsOnCells() const { DataArrayInt *numIds(0); bool isWithoutCopy(false); @@ -3966,7 +3966,7 @@ namespace MEDCoupling return ret; } - PyObject *retrieveFamilyIdsOnNodes() const throw(INTERP_KERNEL::Exception) + PyObject *retrieveFamilyIdsOnNodes() const { DataArrayInt *famIds(0); bool isWithoutCopy(false); @@ -3979,7 +3979,7 @@ namespace MEDCoupling return ret; } - PyObject *retrieveNumberIdsOnNodes() const throw(INTERP_KERNEL::Exception) + PyObject *retrieveNumberIdsOnNodes() const { DataArrayInt *numIds(0); bool isWithoutCopy(false); @@ -3992,7 +3992,7 @@ namespace MEDCoupling return ret; } - PyObject *getGeoTypes() const throw(INTERP_KERNEL::Exception) + PyObject *getGeoTypes() const { std::vector< INTERP_KERNEL::NormalizedCellType > result(self->getGeoTypes()); std::vector< INTERP_KERNEL::NormalizedCellType >::const_iterator iL(result.begin()); @@ -4011,7 +4011,7 @@ namespace MEDCoupling public: %extend { - PyObject *buildVTUArrays() const throw(INTERP_KERNEL::Exception) + PyObject *buildVTUArrays() const { DataArrayDouble *coords(0); DataArrayByte *types(0); DataArrayInt *cellLocations(0),*cells(0),*faceLocations(0),*faces(0); bool ncc(self->buildVTUArrays(coords,types,cellLocations,cells,faceLocations,faces)); @@ -4043,7 +4043,7 @@ namespace MEDCoupling public: %extend { - PyObject *buildVTUArrays() const throw(INTERP_KERNEL::Exception) + PyObject *buildVTUArrays() const { bool isInternal; std::vector< DataArrayDouble * > objs(self->buildVTUArrays(isInternal)); @@ -4068,7 +4068,7 @@ namespace MEDCoupling public: %extend { - PyObject *buildVTUArrays() const throw(INTERP_KERNEL::Exception) + PyObject *buildVTUArrays() const { DataArrayDouble *ret0(0); std::vector ret1; @@ -4092,16 +4092,16 @@ namespace MEDCoupling class MEDFileFastCellSupportComparator : public RefCountObject { public: - static MEDFileFastCellSupportComparator *New(const MEDFileMeshStruct *m, const MEDFileAnyTypeFieldMultiTS *ref) throw(INTERP_KERNEL::Exception); - MEDMeshMultiLev *buildFromScratchDataSetSupport(int timeStepId, const MEDFileFieldGlobsReal *globs) const throw(INTERP_KERNEL::Exception); - bool isDataSetSupportEqualToThePreviousOne(int timeStepId, const MEDFileFieldGlobsReal *globs) const throw(INTERP_KERNEL::Exception); - int getNumberOfTS() const throw(INTERP_KERNEL::Exception); + static MEDFileFastCellSupportComparator *New(const MEDFileMeshStruct *m, const MEDFileAnyTypeFieldMultiTS *ref); + MEDMeshMultiLev *buildFromScratchDataSetSupport(int timeStepId, const MEDFileFieldGlobsReal *globs) const; + bool isDataSetSupportEqualToThePreviousOne(int timeStepId, const MEDFileFieldGlobsReal *globs) const; + int getNumberOfTS() const; protected: ~MEDFileFastCellSupportComparator(); public: %extend { - PyObject *getGeoTypesAt(int timeStepId, const MEDFileMesh *m) const throw(INTERP_KERNEL::Exception) + PyObject *getGeoTypesAt(int timeStepId, const MEDFileMesh *m) const { std::vector< INTERP_KERNEL::NormalizedCellType > result(self->getGeoTypesAt(timeStepId,m)); std::vector< INTERP_KERNEL::NormalizedCellType >::const_iterator iL(result.begin()); diff --git a/src/MEDPartitioner_Swig/MEDPartitionerCommon.i b/src/MEDPartitioner_Swig/MEDPartitionerCommon.i index 57979c6a1..af3b40b2d 100644 --- a/src/MEDPartitioner_Swig/MEDPartitionerCommon.i +++ b/src/MEDPartitioner_Swig/MEDPartitionerCommon.i @@ -40,7 +40,7 @@ namespace MEDPARTITIONER public: typedef enum {METIS,SCOTCH,PTSCOTCH} splitter_type; public: - virtual void partGraph(int ndomain, const std::string& options_string="", ParaDomainSelector *sel=0) throw(INTERP_KERNEL::Exception); + virtual void partGraph(int ndomain, const std::string& options_string="", ParaDomainSelector *sel=0); MEDCoupling::MEDCouplingSkyLineArray *getGraph() const { const MEDCoupling::MEDCouplingSkyLineArray *ret(self->getGraph()); @@ -61,14 +61,14 @@ namespace MEDPARTITIONER class MEDPartitioner { public: - MEDPartitioner(const std::string& filename, int ndomains=1, const std::string& library="metis",bool create_boundary_faces=false, bool create_joints=false, bool mesure_memory=false) throw(INTERP_KERNEL::Exception); - MEDPartitioner(const MEDCoupling::MEDFileData* fileData, int ndomains=1, const std::string& library="metis",bool create_boundary_faces=false, bool create_joints=false, bool mesure_memory=false) throw(INTERP_KERNEL::Exception); - MEDPartitioner(const MEDCoupling::MEDFileData* fileData, Graph* graph, bool create_boundary_faces=false, bool create_joints=false, bool mesure_memory=false) throw(INTERP_KERNEL::Exception); - static MEDPARTITIONER::Graph* Graph(MEDCoupling::MEDCouplingSkyLineArray* graph, Graph::splitter_type split=Graph::METIS, int* edgeweight=0, MEDCoupling::DataArrayInt* vlbloctab=0) throw(INTERP_KERNEL::Exception); + MEDPartitioner(const std::string& filename, int ndomains=1, const std::string& library="metis",bool create_boundary_faces=false, bool create_joints=false, bool mesure_memory=false); + MEDPartitioner(const MEDCoupling::MEDFileData* fileData, int ndomains=1, const std::string& library="metis",bool create_boundary_faces=false, bool create_joints=false, bool mesure_memory=false); + MEDPartitioner(const MEDCoupling::MEDFileData* fileData, Graph* graph, bool create_boundary_faces=false, bool create_joints=false, bool mesure_memory=false); + static MEDPARTITIONER::Graph* Graph(MEDCoupling::MEDCouplingSkyLineArray* graph, Graph::splitter_type split=Graph::METIS, int* edgeweight=0, MEDCoupling::DataArrayInt* vlbloctab=0); static std::vector AvailableAlgorithms(); static std::vector AllAlgorithms(); - MEDCoupling::MEDFileData* getMEDFileData() throw(INTERP_KERNEL::Exception); - void write(const std::string& filename) throw(INTERP_KERNEL::Exception); + MEDCoupling::MEDFileData* getMEDFileData(); + void write(const std::string& filename); }; } diff --git a/src/RENUMBER_Swig/MEDRenumberImpl.i b/src/RENUMBER_Swig/MEDRenumberImpl.i index 13101a280..21c5c8e9d 100644 --- a/src/RENUMBER_Swig/MEDRenumberImpl.i +++ b/src/RENUMBER_Swig/MEDRenumberImpl.i @@ -32,7 +32,7 @@ class Renumbering public: %extend { - virtual PyObject *renumber(const MEDCoupling::DataArrayInt *graph, const MEDCoupling::DataArrayInt *index_graph) throw(INTERP_KERNEL::Exception) + virtual PyObject *renumber(const MEDCoupling::DataArrayInt *graph, const MEDCoupling::DataArrayInt *index_graph) { if(!graph || !index_graph) throw INTERP_KERNEL::Exception("wrap of Renumbering::renumber : One of the input arrays is NULL !"); @@ -51,7 +51,7 @@ public: namespace MED_RENUMBER { - Renumbering *RenumberingFactory(const std::string& s) throw(INTERP_KERNEL::Exception); + Renumbering *RenumberingFactory(const std::string& s); std::vector RenumberAvailableMethods(); std::vector AllRenumberMethods(); }