~fenics-core/ufl/spatder2grad

« back to all changes in this revision

Viewing changes to test/test_derivative.py

  • Committer: Martin Sandve Alnæs
  • Date: 2011-09-20 10:28:32 UTC
  • Revision ID: martinal@simula.no-20110920102832-4j0yz7hmk75doqdz
Fix more tabs->spaces.

Show diffs side-by-side

added added

removed removed

Lines of Context:
272
272
        self.assertAlmostEqual(Jv, Jv2)
273
273
 
274
274
    def test_mass_derived_from_functional(self):
275
 
        cell = triangle
 
275
        cell = triangle
276
276
        V = FiniteElement("CG", cell, 1)
277
277
 
278
278
        v = TestFunction(V)
285
285
        F  = derivative(f, w, v)
286
286
        J1 = derivative(L, w, u)
287
287
        J2 = derivative(F, w, u)
288
 
        # TODO: assert something
 
288
        # TODO: assert something
289
289
 
290
290
    def test_coefficient_derivatives(self):
291
291
        V = FiniteElement("Lagrange", triangle, 1)
404
404
 
405
405
        L = NS_a(U,v)*dx
406
406
        a = derivative(L, U, du)
407
 
        # TODO: assert something
 
407
        # TODO: assert something
408
408
 
409
409
if __name__ == "__main__":
410
410
    main()