File: lagrange.h

package info (click to toggle)
basix 0.0.1~git20210122.4f10ef2-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 696 kB
  • sloc: cpp: 3,987; python: 1,918; makefile: 33
file content (28 lines) | stat: -rw-r--r-- 940 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright (c) 2020 Chris Richardson
// FEniCS Project
// SPDX-License-Identifier:    MIT

#pragma once

#include "cell.h"
#include "finite-element.h"
#include <string>

namespace basix
{
/// Create a Lagrange element on cell with given degree
/// @param[in] celltype interval, triangle or tetrahedral celltype
/// @param[in] degree
/// @param[in] name Identifier string (optional)
/// @return A FiniteElemenet
FiniteElement create_lagrange(cell::type celltype, int degree,
                              const std::string& name = std::string());

/// Create a Discontinuous Lagrange element on cell with given degree
/// @param celltype interval, triangle or tetrahedral celltype
/// @param[in] degree
/// @param[in] name Identifier string (optional)
/// @return A FiniteElemenet
FiniteElement create_dlagrange(cell::type celltype, int degree,
                               const std::string& name = std::string());
} // namespace basix