From e6eea079ae77e9952ee4ea1fc6dae4fb73000a1d Mon Sep 17 00:00:00 2001 From: Johnny Vogels <35307256+jmv2009@users.noreply.github.com> Date: Sat, 14 Dec 2024 14:35:08 +0000 Subject: [PATCH 1/2] Encompassing DeRham element --- cpp/basix/e-DeRham | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 cpp/basix/e-DeRham diff --git a/cpp/basix/e-DeRham b/cpp/basix/e-DeRham new file mode 100644 index 000000000..480d14ba8 --- /dev/null +++ b/cpp/basix/e-DeRham @@ -0,0 +1,31 @@ +// Copyright (c) 2024 Johannes M. Vogels +// FEniCS Project +// SPDX-License-Identifier: MIT + +#pragma once + +#include "cell.h" +#include "element-families.h" +#include "finite-element.h" +#include + +namespace basix::element +{ +/// Create a finite element on cell with given degree +/// @param[in] celltype The cell type +/// @param[in] degree The degree of the element +/// @param[in] form -1,0,1,2,3 : de Rahm complex form +/// @param[in] trimmed : P- instead of P based +/// @param[in] tensor : instead of serendipity +/// @param[in] tiniesttensor : instead of full +/// @param[in] rotated2D : Curl Div instead of Grad Curl complex for 2D +/// @return A finite element +template +FiniteElement create_DeRham_element(cell::type celltype, + int degree, + int form, + bool trimmed, + bool tensor, + bool tiniesttensor, + bool rotated2D + ); From 2dcabdeadfb1218c78e695f569c85137fcbe7b6e Mon Sep 17 00:00:00 2001 From: Johnny Vogels <35307256+jmv2009@users.noreply.github.com> Date: Sat, 14 Dec 2024 14:52:54 +0000 Subject: [PATCH 2/2] Rename e-DeRham to e-DeRham.h --- cpp/basix/{e-DeRham => e-DeRham.h} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename cpp/basix/{e-DeRham => e-DeRham.h} (100%) diff --git a/cpp/basix/e-DeRham b/cpp/basix/e-DeRham.h similarity index 100% rename from cpp/basix/e-DeRham rename to cpp/basix/e-DeRham.h