From 24f8b3d7d16e8c3a9c95c1f62b1030f7996c8d94 Mon Sep 17 00:00:00 2001 From: Knut Morten Okstad Date: Mon, 6 May 2019 07:37:05 +0200 Subject: [PATCH] Fixed: ASMu2Dnurbs now inherits ASMu2DC1. Such that it also can be used for clamped problems. --- src/ASM/LR/ASMu2Dnurbs.C | 16 ++++++++-------- src/ASM/LR/ASMu2Dnurbs.h | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/ASM/LR/ASMu2Dnurbs.C b/src/ASM/LR/ASMu2Dnurbs.C index a7eb5b77..b87f84ff 100644 --- a/src/ASM/LR/ASMu2Dnurbs.C +++ b/src/ASM/LR/ASMu2Dnurbs.C @@ -24,14 +24,14 @@ ASMu2Dnurbs::ASMu2Dnurbs (unsigned char n_s, unsigned char n_f) - : ASMu2D(n_s, n_f) + : ASMu2DC1(n_s, n_f) { noNurbs = false; } ASMu2Dnurbs::ASMu2Dnurbs (const ASMu2Dnurbs& patch, unsigned char n_f) - : ASMu2D(patch, n_f) + : ASMu2DC1(patch, n_f) { noNurbs = patch.noNurbs; } @@ -39,7 +39,7 @@ ASMu2Dnurbs::ASMu2Dnurbs (const ASMu2Dnurbs& patch, unsigned char n_f) bool ASMu2Dnurbs::read (std::istream& is) { - bool ok = this->ASMu2D::read(is); + bool ok = this->ASMu2DC1::read(is); if (ok && !(tensorspline && tensorspline->rational())) std::cout <<" ** LR-nurbs requested but input is a spline."<< std::endl; @@ -51,7 +51,7 @@ bool ASMu2Dnurbs::evaluateBasis (int iel, FiniteElement& fe, int derivs) const { if (noNurbs) - return this->ASMu2D::evaluateBasis(iel,fe,derivs); + return this->ASMu2DC1::evaluateBasis(iel,fe,derivs); const LR::Element* el = lrspline->getElement(iel); if (!el) return false; @@ -158,7 +158,7 @@ void ASMu2Dnurbs::computeBasis (double u, double v, const LR::LRSplineSurface* spline) const { if (noNurbs) - return this->ASMu2D::computeBasis(u,v,bas,iel,spline); + return this->ASMu2DC1::computeBasis(u,v,bas,iel,spline); PROFILE3("ASMu2Dn::compBasis(0)"); @@ -186,7 +186,7 @@ void ASMu2Dnurbs::computeBasis (double u, double v, const LR::LRSplineSurface* spline) const { if (noNurbs) - return this->ASMu2D::computeBasis(u,v,bas,iel,spline); + return this->ASMu2DC1::computeBasis(u,v,bas,iel,spline); PROFILE3("ASMu2Dn::compBasis(1)"); @@ -219,7 +219,7 @@ void ASMu2Dnurbs::computeBasis (double u, double v, Go::BasisDerivsSf2& bas, int iel) const { if (noNurbs) - return this->ASMu2D::computeBasis(u,v,bas,iel); + return this->ASMu2DC1::computeBasis(u,v,bas,iel); PROFILE3("ASMu2Dn::compBasis(2)"); @@ -263,7 +263,7 @@ void ASMu2Dnurbs::computeBasis (double u, double v, Go::BasisDerivsSf3& bas, int iel) const { if (noNurbs) - return this->ASMu2D::computeBasis(u,v,bas,iel); + return this->ASMu2DC1::computeBasis(u,v,bas,iel); PROFILE3("ASMu2Dn::compBasis(3)"); diff --git a/src/ASM/LR/ASMu2Dnurbs.h b/src/ASM/LR/ASMu2Dnurbs.h index c246e362..beb9355b 100644 --- a/src/ASM/LR/ASMu2Dnurbs.h +++ b/src/ASM/LR/ASMu2Dnurbs.h @@ -14,7 +14,7 @@ #ifndef _ASM_U2D_NURBS_H #define _ASM_U2D_NURBS_H -#include "ASMu2D.h" +#include "ASMu2DC1.h" /*! @@ -22,7 +22,7 @@ \details This class contains methods common for 2D LR-NURBS patches. */ -class ASMu2Dnurbs : public ASMu2D +class ASMu2Dnurbs : public ASMu2DC1 { public: //! \brief Default constructor.