}
}
-const short *UnitDataBase::getInfoForUnit(const std::string& unit,
- double& addFact, double& mFact) const throw(INTERP_KERNEL::Exception)
+const short *UnitDataBase::getInfoForUnit(const std::string& unit, double& addFact, double& mFact) const
{
std::size_t lgth=unit.length();
std::string work,work2;
return *this;
}
-DecompositionInUnitBase &DecompositionInUnitBase::operator^(const DecompositionInUnitBase& other) throw(INTERP_KERNEL::Exception)
+DecompositionInUnitBase &DecompositionInUnitBase::operator^(const DecompositionInUnitBase& other)
{
if(!other.isAdimensional())
throw INTERP_KERNEL::Exception("Trying to execute operator ^ with a second member not adimensionnal");
{
public:
INTERPKERNEL_EXPORT UnitDataBase();
- INTERPKERNEL_EXPORT const short *getInfoForUnit(const std::string& unit,
- double& addFact, double& mFact) const throw(INTERP_KERNEL::Exception);
+ INTERPKERNEL_EXPORT const short *getInfoForUnit(const std::string& unit, double& addFact, double& mFact) const;
INTERPKERNEL_EXPORT static UnitDataBase _uniqueMapForExpr;
INTERPKERNEL_EXPORT static const int SIZE_OF_UNIT_BASE=5;
private:
INTERPKERNEL_EXPORT void tryToConvertInUnit(double val);
INTERPKERNEL_EXPORT DecompositionInUnitBase &operator*(const DecompositionInUnitBase& other);
INTERPKERNEL_EXPORT DecompositionInUnitBase &operator/(const DecompositionInUnitBase& other);
- INTERPKERNEL_EXPORT DecompositionInUnitBase &operator^(const DecompositionInUnitBase& other) throw(INTERP_KERNEL::Exception);
+ INTERPKERNEL_EXPORT DecompositionInUnitBase &operator^(const DecompositionInUnitBase& other);
private:
void dealWithAddFactor(const DecompositionInUnitBase& other);
static int couldItBeConsideredAsInt(double val);
/*!
* Initialize the internal vectors
*/
-void GaussInfo::initLocalInfo() throw (INTERP_KERNEL::Exception)
+void GaussInfo::initLocalInfo()
{
bool aSatify = false;
const CellModel& cellModel=CellModel::GetCellModel(_my_geometry);
const double* theGaussCoord,
int theNbGauss,
const double* theReferenceCoord,
- int theNbRef) throw (INTERP_KERNEL::Exception)
+ int theNbRef)
{
GaussInfoVector::iterator it = _my_gauss_info.begin();
for( ; it != _my_gauss_info.end(); it++ )
double* GaussCoords::calculateCoords( NormalizedCellType theGeometry,
const double *theNodeCoords,
const int theSpaceDim,
- const int *theIndex) throw (INTERP_KERNEL::Exception)
+ const int *theIndex)
{
const GaussInfo *info = getInfoGivenCellType(theGeometry);
int nbCoords = theSpaceDim * info->getNbGauss();
}
-void GaussCoords::calculateCoords( NormalizedCellType theGeometry, const double *theNodeCoords, const int theSpaceDim, const int *theIndex, double *result) throw(INTERP_KERNEL::Exception)
+void GaussCoords::calculateCoords( NormalizedCellType theGeometry, const double *theNodeCoords, const int theSpaceDim, const int *theIndex, double *result)
{
const GaussInfo *info = getInfoGivenCellType(theGeometry);
calculateCoordsAlg(info,theNodeCoords,theSpaceDim,theIndex,result);
INTERPKERNEL_EXPORT const double* getFunctionValues( const int theGaussId ) const;
- INTERPKERNEL_EXPORT void initLocalInfo() throw (INTERP_KERNEL::Exception);
+ INTERPKERNEL_EXPORT void initLocalInfo();
protected:
const double* theGaussCoord,
int theNbGauss,
const double* theReferenceCoord,
- int theNbRef) throw (INTERP_KERNEL::Exception);
+ int theNbRef);
INTERPKERNEL_EXPORT double* calculateCoords( NormalizedCellType theGeometry,
const double* theNodeCoords,
const int theSpaceDim,
- const int* theIndex) throw(INTERP_KERNEL::Exception);
+ const int* theIndex);
INTERPKERNEL_EXPORT void calculateCoords( NormalizedCellType theGeometry,
const double* theNodeCoords,
const int theSpaceDim,
const int* theIndex,
- double *result) throw(INTERP_KERNEL::Exception);
+ double *result);
private:
const GaussInfo *getInfoGivenCellType(NormalizedCellType cellType);
void calculateCoordsAlg(const GaussInfo *info, const double* theNodeCoords, const int theSpaceDim, const int *theIndex,
* more than one 3D target cell, and the value of '_duplicate_faces'
* the 3D target cells. The size of the value of '_duplicate_faces' is more than or equal to 2.
*/
- class INTERPKERNEL_EXPORT Interpolation3D2D : public Interpolation<Interpolation3D2D>
+ class Interpolation3D2D : public Interpolation<Interpolation3D2D>
{
public:
typedef std::map<int,std::set<int> > DuplicateFacesType;
- Interpolation3D2D();
- Interpolation3D2D(const InterpolationOptions& io);
+ INTERPKERNEL_EXPORT Interpolation3D2D();
+ INTERPKERNEL_EXPORT Interpolation3D2D(const InterpolationOptions& io);
template<class MyMeshType, class MyMatrixType>
- int interpolateMeshes(const MyMeshType& srcMesh,
- const MyMeshType& targetMesh,
- MyMatrixType& matrix,
- const char *method);
- DuplicateFacesType retrieveDuplicateFaces() const
- {
- return _duplicate_faces;
- }
+ INTERPKERNEL_EXPORT int interpolateMeshes(const MyMeshType& srcMesh,
+ const MyMeshType& targetMesh,
+ MyMatrixType& matrix,
+ const char *method);
+ INTERPKERNEL_EXPORT DuplicateFacesType retrieveDuplicateFaces() const { return _duplicate_faces; }
private:
SplittingPolicy _splitting_policy;
DuplicateFacesType _duplicate_faces;
{
void SplitHexa8IntoTetras(SplittingPolicy policy, const int *nodalConnBg, const int *nodalConnEnd, const double *coords,
- std::vector<int>& tetrasNodalConn, std::vector<double>& addCoords) throw(INTERP_KERNEL::Exception)
+ std::vector<int>& tetrasNodalConn, std::vector<double>& addCoords)
{
if(std::distance(nodalConnBg,nodalConnEnd)!=8)
throw INTERP_KERNEL::Exception("SplitHexa8IntoTetras : input hexa do not have 8 nodes !");
}
void SplitIntoTetras(SplittingPolicy policy, NormalizedCellType gt, const int *nodalConnBg, const int *nodalConnEnd, const double *coords,
- std::vector<int>& tetrasNodalConn, std::vector<double>& addCoords) throw(INTERP_KERNEL::Exception)
+ std::vector<int>& tetrasNodalConn, std::vector<double>& addCoords)
{
switch(gt)
{
-19,-16,-11,-18,-17,-8,6,-12};
void SplitHexa8IntoTetras(SplittingPolicy policy, const int *nodalConnBg, const int *nodalConnEnd, const double *coords,
- std::vector<int>& tetrasNodalConn, std::vector<double>& addCoords) throw(INTERP_KERNEL::Exception);
+ std::vector<int>& tetrasNodalConn, std::vector<double>& addCoords);
INTERPKERNEL_EXPORT void SplitIntoTetras(SplittingPolicy policy, NormalizedCellType gt, const int *nodalConnBg, const int *nodalConnEnd, const double *coords,
- std::vector<int>& tetrasNodalConn, std::vector<double>& addCoords) throw(INTERP_KERNEL::Exception);
+ std::vector<int>& tetrasNodalConn, std::vector<double>& addCoords);
/**
* \brief Class representing a triangular face, used as key in caching hash map in SplitterTetra.