Skip to content

Commit 4fd8031

Browse files
committed
Raviart-Thomas
1 parent b290027 commit 4fd8031

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cpp/basix/e-raviart-thomas.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@
66
#include "e-lagrange.h"
77
#include "element-families.h"
88
#include "maps.h"
9+
#include "math.h"
910
#include "moments.h"
1011
#include "polyset.h"
1112
#include "quadrature.h"
1213
#include "sobolev-spaces.h"
14+
#include <cmath>
1315
#include <vector>
1416

1517
using namespace basix;
@@ -65,7 +67,7 @@ FiniteElement<T> basix::element::create_rt(cell::type celltype, int degree,
6567
// polynomial basis
6668
for (std::size_t i = 0; i < ns; ++i)
6769
{
68-
for (std::size_t k = 0; k < psize; ++k)
70+
for (std::size_t k = nv; k < psize; ++k)
6971
{
7072
for (std::size_t j = 0; j < tdim; ++j)
7173
{
@@ -79,6 +81,8 @@ FiniteElement<T> basix::element::create_rt(cell::type celltype, int degree,
7981
}
8082
}
8183

84+
basix::math::orthogonalise<T>(B, nv * tdim);
85+
8286
std::array<std::vector<impl::mdarray_t<T, 2>>, 4> x;
8387
std::array<std::vector<impl::mdarray_t<T, 4>>, 4> M;
8488
for (std::size_t i = 0; i < tdim - 1; ++i)

0 commit comments

Comments
 (0)