| 1 |
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- |
| 2 |
// vi: set et ts=4 sw=2 sts=2: |
| 3 |
// SPDX-FileCopyrightInfo: Copyright © DUNE Project contributors, see file LICENSE.md in module root |
| 4 |
// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception |
| 5 |
|
| 6 |
#include <iostream> |
| 7 |
|
| 8 |
#include <dune/localfunctions/brezzidouglasmarini.hh> |
| 9 |
|
| 10 |
#include <dune/localfunctions/test/test-localfe.hh> |
| 11 |
|
| 12 |
int main(int argc, char** argv) |
| 13 |
{ |
| 14 |
bool success = true; |
| 15 |
|
| 16 |
Dune::BrezziDouglasMariniCubeLocalFiniteElement<double,double,2,1> bdm1cube2dlfem(1); |
| 17 |
TEST_FE(bdm1cube2dlfem); |
| 18 |
|
| 19 |
Dune::BrezziDouglasMariniCubeLocalFiniteElement<double,double,3,1> bdm1cube3dlfem(1); |
| 20 |
// \todo Implement the missing LocalInterpolation |
| 21 |
// DisableRepresentConstants is only set because the test also uses DisableLocalInterpolation internally. |
| 22 |
TEST_FE2(bdm1cube3dlfem, DisableLocalInterpolation + DisableRepresentConstants); |
| 23 |
|
| 24 |
Dune::BrezziDouglasMariniCubeLocalFiniteElement<double,double,2,2> bdm2cube2dlfem(1); |
| 25 |
TEST_FE(bdm2cube2dlfem); |
| 26 |
|
| 27 |
Dune::BrezziDouglasMariniSimplexLocalFiniteElement<double,double,2,1> bdm1simplex2dlfem(1); |
| 28 |
TEST_FE(bdm1simplex2dlfem); |
| 29 |
|
| 30 |
Dune::BrezziDouglasMariniSimplexLocalFiniteElement<double,double,2,2> bdm2simplex2dlfem(1); |
| 31 |
TEST_FE(bdm2simplex2dlfem); |
| 32 |
|
| 33 |
return success ? 0 : 1; |
| 34 |
} |