OGS
ShapeLine2-impl.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4namespace NumLib
5{
6template <class T_X, class T_N>
7void ShapeLine2::computeShapeFunction(const T_X& r, T_N& N)
8{
9 N[0] = (1.0 - r[0]) * 0.5;
10 N[1] = (1.0 + r[0]) * 0.5;
11}
12
13template <class T_X, class T_N>
14void ShapeLine2::computeGradShapeFunction(const T_X& /*r*/, T_N& dN)
15{
16 dN[0] = -0.5;
17 dN[1] = 0.5;
18}
19
20} // namespace NumLib
static void computeShapeFunction(const T_X &r, T_N &N)
static void computeGradShapeFunction(const T_X &r, T_N &dN)