Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,17 @@ void FillEquationIdVectorIBRA(const GeometryType::Pointer pGeometry,
{
KRATOS_TRY;
// Get the polynomial degree of the nurbs surface
IndexType polynomial_degree_u = pGeometry->PolynomialDegree(0);
IndexType polynomial_degree_v = pGeometry->PolynomialDegree(1);
const IndexType polynomial_degree_u = pGeometry->PolynomialDegree(0);
const IndexType polynomial_degree_v = pGeometry->PolynomialDegree(1);

// Get the knot vectors of the nurbs surface and extend them to be consistent
// Get the knot vectors of the nurbs surface and extend them to be consistent
std::vector<double> knot_vector_u, knot_vector_v;
pGeometry->SpansLocalSpace(knot_vector_u, 0);
pGeometry->SpansLocalSpace(knot_vector_v, 1);
knot_vector_u.insert(knot_vector_u.begin(), knot_vector_u.front());
knot_vector_u.insert(knot_vector_u.end(), knot_vector_u.back());
knot_vector_v.insert(knot_vector_v.begin(), knot_vector_v.front());
knot_vector_v.insert(knot_vector_v.end(), knot_vector_v.back());
knot_vector_u.insert(knot_vector_u.begin(), polynomial_degree_u - 1, knot_vector_u.front());
knot_vector_u.insert(knot_vector_u.end(), polynomial_degree_u - 1, knot_vector_u.back());
knot_vector_v.insert(knot_vector_v.begin(), polynomial_degree_v - 1, knot_vector_v.front());
knot_vector_v.insert(knot_vector_v.end(), polynomial_degree_v - 1, knot_vector_v.back());

// shape function container.
NurbsSurfaceShapeFunction shape_function_container(
Expand Down Expand Up @@ -450,4 +450,4 @@ bool ComputeProjection(const GeometryType& rGeometry,
}

} // namespace ProjectionUtilities
} // namespace Kratos.
} // namespace Kratos.
Loading