File: nedelecbasistest.py

package info (click to toggle)
dune-functions 2.10.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,544 kB
  • sloc: cpp: 14,241; python: 661; makefile: 3
file content (12 lines) | stat: -rw-r--r-- 457 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
# SPDX-FileCopyrightText: Copyright © DUNE Project contributors, see file AUTHORS.md
# SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception OR LGPL-3.0-or-later

import dune.grid
import dune.functions

import basistest   # The general test suite for function space bases

grid = dune.grid.structuredGrid([0,0],[1,1],[5,5])

basis = dune.functions.defaultGlobalBasis(grid, dune.functions.Nedelec(kind=1,order=1))
basistest.checkBasis(basis)