Some fixes reveiled by regression tests
git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1128 e10b68d5-8a6e-419e-a041-bce267b0401d
This commit is contained in:
@@ -73,10 +73,9 @@ public:
|
||||
//! \brief Empty destructor.
|
||||
virtual ~ASMs2D() {}
|
||||
|
||||
//! \brief Returns the spline surface representing this patch.
|
||||
Go::SplineSurface* getSurface() const { return surf; }
|
||||
|
||||
// Methods to access data
|
||||
// ============================
|
||||
Go::SplineSurface* getSurface() { return surf; }
|
||||
|
||||
// Methods for model generation
|
||||
// ============================
|
||||
|
||||
@@ -92,10 +92,8 @@ public:
|
||||
//! \brief Empty destructor.
|
||||
virtual ~ASMs3D() {}
|
||||
|
||||
|
||||
// Methods to access data
|
||||
// ============================
|
||||
Go::SplineVolume* getVolume() { return svol; }
|
||||
//! \brief Returns the spline volume representing this patch.
|
||||
Go::SplineVolume* getVolume() const { return svol; }
|
||||
|
||||
|
||||
// Methods for model generation
|
||||
|
||||
@@ -185,8 +185,8 @@ ElmNorm& NormBase::getElmNormBuffer (LocalIntegral*& elmInt, const size_t nn)
|
||||
|
||||
static double* data = 0;
|
||||
if (!data) data = new double[nn];
|
||||
memset(data,0,nn*sizeof(double));
|
||||
static ElmNorm buf(data,nn);
|
||||
memset(data,0,buf.size()*sizeof(double));
|
||||
elmInt = &buf;
|
||||
return buf;
|
||||
}
|
||||
|
||||
@@ -237,10 +237,6 @@ public:
|
||||
//! \brief Initializes current element for numerical integration.
|
||||
//! \param[in] MNPC Matrix of nodal point correspondance for current element
|
||||
virtual bool initElement(const std::vector<int>& MNPC);
|
||||
//! \brief Initializes current element for numerical integration.
|
||||
//! \param[in] MNPC Matrix of nodal point correspondance for current element
|
||||
virtual bool initElement(const std::vector<int>& MNPC, const Vec3&, size_t)
|
||||
{ return this->initElement(MNPC); }
|
||||
|
||||
//! \brief Evaluates the integrand at an interior point.
|
||||
//! \param elmInt The local integral object to receive the contributions
|
||||
|
||||
Reference in New Issue
Block a user