Skip to content

Commit

Permalink
Raviart-Thomas
Browse files Browse the repository at this point in the history
  • Loading branch information
mscroggs committed Sep 6, 2023
1 parent b290027 commit 4fd8031
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cpp/basix/e-raviart-thomas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
#include "e-lagrange.h"
#include "element-families.h"
#include "maps.h"
#include "math.h"
#include "moments.h"
#include "polyset.h"
#include "quadrature.h"
#include "sobolev-spaces.h"
#include <cmath>
#include <vector>

using namespace basix;
Expand Down Expand Up @@ -65,7 +67,7 @@ FiniteElement<T> basix::element::create_rt(cell::type celltype, int degree,
// polynomial basis
for (std::size_t i = 0; i < ns; ++i)
{
for (std::size_t k = 0; k < psize; ++k)
for (std::size_t k = nv; k < psize; ++k)
{
for (std::size_t j = 0; j < tdim; ++j)
{
Expand All @@ -79,6 +81,8 @@ FiniteElement<T> basix::element::create_rt(cell::type celltype, int degree,
}
}

basix::math::orthogonalise<T>(B, nv * tdim);

std::array<std::vector<impl::mdarray_t<T, 2>>, 4> x;
std::array<std::vector<impl::mdarray_t<T, 4>>, 4> M;
for (std::size_t i = 0; i < tdim - 1; ++i)
Expand Down

0 comments on commit 4fd8031

Please sign in to comment.