diff --git a/src/ASM/LR/ASMLRSpline.C b/src/ASM/LR/ASMLRSpline.C index 3b95a0db..436ae1dd 100644 --- a/src/ASM/LR/ASMLRSpline.C +++ b/src/ASM/LR/ASMLRSpline.C @@ -586,3 +586,12 @@ void ASMLRSpline::getNoIntPoints (size_t& nPt, size_t& nIPt) if (nInterface > 0 && nInterface != nel && nGauss > 0 && nGauss <= 10) nIPt += nInterface*nGp/nGauss; } + + +void ASMLRSpline::swapProjectionBasis () +{ + if (projB2) { + std::swap(projB, projB2); + std::swap(projThreadGroups, proj2ThreadGroups); + } +} diff --git a/src/ASM/LR/ASMLRSpline.h b/src/ASM/LR/ASMLRSpline.h index 515c1f3e..38e4a5a2 100644 --- a/src/ASM/LR/ASMLRSpline.h +++ b/src/ASM/LR/ASMLRSpline.h @@ -181,6 +181,9 @@ public: //! \brief Computes the total number of integration points in this patch. virtual void getNoIntPoints(size_t& nPt, size_t& nIPt); + //! \brief Swaps between the first and second projection basis. + virtual void swapProjectionBasis(); + protected: //! \brief Refines the mesh adaptively. //! \param[in] prm Input data used to control the mesh refinement diff --git a/src/ASM/LR/ASMu2Dmx.C b/src/ASM/LR/ASMu2Dmx.C index 4f3c43ac..76ee2b2d 100644 --- a/src/ASM/LR/ASMu2Dmx.C +++ b/src/ASM/LR/ASMu2Dmx.C @@ -1210,15 +1210,6 @@ void ASMu2Dmx::copyRefinement (LR::LRSplineSurface* basis, } -void ASMu2Dmx::swapProjectionBasis () -{ - if (projB2) { - std::swap(projB, projB2); - std::swap(projThreadGroups, proj2ThreadGroups); - } -} - - void ASMu2Dmx::getElementsAt (const RealArray& param, std::vector& elms, std::vector& sizes) const diff --git a/src/ASM/LR/ASMu2Dmx.h b/src/ASM/LR/ASMu2Dmx.h index 1944792d..3b38964b 100644 --- a/src/ASM/LR/ASMu2Dmx.h +++ b/src/ASM/LR/ASMu2Dmx.h @@ -213,9 +213,6 @@ public: //! \param[in] multiplicity Wanted multiplicity void copyRefinement(LR::LRSplineSurface* basis, int multiplicity) const; - //! \brief Swaps between the main and alternative projection basis. - virtual void swapProjectionBasis(); - //! \brief Checks if a separate projection basis is used for this patch. virtual bool separateProjectionBasis() const; diff --git a/src/ASM/LR/ASMu3Dmx.C b/src/ASM/LR/ASMu3Dmx.C index c0e67b02..3af13b8c 100644 --- a/src/ASM/LR/ASMu3Dmx.C +++ b/src/ASM/LR/ASMu3Dmx.C @@ -1004,15 +1004,6 @@ void ASMu3Dmx::copyRefinement (LR::LRSplineVolume* basis, } -void ASMu3Dmx::swapProjectionBasis () -{ - if (projB2) { - std::swap(projB, projB2); - std::swap(projThreadGroups, proj2ThreadGroups); - } -} - - void ASMu3Dmx::getElementsAt (const RealArray& param, std::vector& elms, std::vector& sizes) const diff --git a/src/ASM/LR/ASMu3Dmx.h b/src/ASM/LR/ASMu3Dmx.h index 06fc338c..a53e7ce3 100644 --- a/src/ASM/LR/ASMu3Dmx.h +++ b/src/ASM/LR/ASMu3Dmx.h @@ -178,9 +178,6 @@ public: //! \param[in] multiplicity Wanted multiplicity void copyRefinement(LR::LRSplineVolume* basis, int multiplicity) const; - //! \brief Swaps between the main and alternative projection basis. - virtual void swapProjectionBasis(); - //! \brief Checks if a separate projection basis is used for this patch. virtual bool separateProjectionBasis() const;