SyFi  0.3
test_syfi.test_elements.TestElements Class Reference

Inherits TestCase.

List of all members.

Public Member Functions

def test_lagrange_elements

Detailed Description

Definition at line 10 of file test_elements.py.


Member Function Documentation

Definition at line 12 of file test_elements.py.

00012 
00013     def test_lagrange_elements(self):
00014         SyFi.initSyFi(3)
00015         cells = [SyFi.ReferenceLine(),
00016                  SyFi.ReferenceTriangle(),
00017                  SyFi.ReferenceTetrahedron(),
00018                  SyFi.ReferenceRectangle(),
00019                  SyFi.ReferenceBox()]
00020         for cell in cells:
00021             dim = cell.no_space_dim()
00022             for order in (1,2):
00023                 fe = SyFi.Lagrange(cell, order)
00024                 self.assertEqual(fe.get_order(), order)
00025                 #self.assertEqual(fe.get_polygon(), cell)
00026                 for i in range(fe.nbf()):
00027                     N = fe.N(i)
00028                     dof = fe.dof(i)
00029                     # TODO: Assert something

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator