fixed: add basis support in ASMu2D::constrainCorner

This commit is contained in:
Arne Morten Kvarving 2016-10-20 13:01:52 +02:00
parent 41116a0d84
commit 8829994ec3
2 changed files with 4 additions and 2 deletions

View File

@ -692,7 +692,7 @@ int ASMu2D::getCorner(int I, int J, int basis) const
{ {
std::vector<LR::Basisfunction*> edgeFunctions; std::vector<LR::Basisfunction*> edgeFunctions;
const LR::LRSplineSurface* srf = getBasis(basis); const LR::LRSplineSurface* srf = this->getBasis(basis);
// Note: Corners are identified by "coordinates" {-1,-1} {-1,1} {1,-1} {1,1}. // Note: Corners are identified by "coordinates" {-1,-1} {-1,1} {1,-1} {1,1}.
if (I < 0) { if (I < 0) {

View File

@ -171,11 +171,13 @@ public:
//! \param[in] J Parameter index in v-direction //! \param[in] J Parameter index in v-direction
//! \param[in] dof Which DOFs to constrain at the node //! \param[in] dof Which DOFs to constrain at the node
//! \param[in] code Inhomogeneous dirichlet condition code //! \param[in] code Inhomogeneous dirichlet condition code
//! \param[in] basis Basis to constrain node for
//! //!
//! \details The sign of the two indices is used to define whether we want //! \details The sign of the two indices is used to define whether we want
//! the node at the beginning or the end of that parameter direction. //! the node at the beginning or the end of that parameter direction.
//! The magnitude of the indices are not used. //! The magnitude of the indices are not used.
virtual void constrainCorner(int I, int J, int dof, int code = 0, char = 1); virtual void constrainCorner(int I, int J, int dof,
int code = 0, char basis = 1);
//! \brief Constrains a node identified by two relative parameter values. //! \brief Constrains a node identified by two relative parameter values.
//! \param[in] xi Parameter in u-direction //! \param[in] xi Parameter in u-direction
//! \param[in] eta Parameter in v-direction //! \param[in] eta Parameter in v-direction