Numerical C++ Library Concepts
TWiki Guest (guest)
Logout
Numerical C++ Library Concepts
IT Services
ISG Blog
IntraMATH
Contact
Login
Keyword or person
News
About us
People
People
Publications
Gallery
Applications
Installation
How to get started
Tutorials
Class documentation
ETH Zurich
D-MATH
wiki@math
Concepts
testLegendre.hh
Go to the documentation of this file.
1
8
#ifndef testLegendre_hh
9
#define testLegendre_hh
10
11
#include "
basics/testsuite.hh
"
12
#include "
basics/typedefs.hh
"
13
#include "
formula/elementFormula.hh
"
14
15
using
concepts::Real
;
16
17
namespace
test
{
18
19
// ******************************************************* TestLegendre1D **
20
21
class
TestLegendre1D
:
public
TestCase
{
22
public
:
23
virtual
~TestLegendre1D
();
24
virtual
void
run
();
25
26
/* Diagonal entries of the mass matrix wrt to Legendre-
27
* polynomials on [-1,1] are tested.
28
*
29
*/
30
void
testIdentity
();
31
32
/* Testing hp1D::Value() in function.hh for graphical output
33
* of LegendreElements. Solving the identity problem twice,
34
* once with elements of type hp1D::LegendreElements
35
* the other one with elements of type hp1D::Element
36
* and comparing the resulting ElementFormulaVectors.
37
*/
38
void
testLegendreValue
();
39
40
41
};
42
43
}
// namespace test
44
45
#endif // testLegendre_hh
test::TestCase
Base class for tests.
Definition:
testcase.hh:92
test::TestLegendre1D
Definition:
testLegendre.hh:21
testsuite.hh
test::TestLegendre1D::testIdentity
void testIdentity()
test::TestLegendre1D::run
virtual void run()
Runs the tests. Must be overwritten by the specialization.
test
Unit tests.
Definition:
testcase.hh:66
test::TestLegendre1D::~TestLegendre1D
virtual ~TestLegendre1D()
test::TestLegendre1D::testLegendreValue
void testLegendreValue()
typedefs.hh
concepts::Real
double Real
Type normally used for a floating point number.
Definition:
typedefs.hh:36
elementFormula.hh
Page URL:
http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020
Eidgenössische Technische Hochschule Zürich