]> https://gitweb.dealii.org/ - dealii.git/commitdiff
add H1_seminorm to test
authorTimo Heister <timo.heister@gmail.com>
Mon, 31 Aug 2015 20:12:03 +0000 (16:12 -0400)
committerTimo Heister <timo.heister@gmail.com>
Mon, 31 Aug 2015 20:12:03 +0000 (16:12 -0400)
tests/vector_tools/integrate_difference_01.cc

index a94367eb3fbae539a966dc0aff048880e32f5552..02a634c4d77619ebfe77836f6224787bea0b37c2 100644 (file)
@@ -96,7 +96,10 @@ void test()
   deallog << "L2_norm:" << std::endl;
   // sqrt(\int_\Omega f^2) = sqrt(\int (x+y)^2+(x^2+y^2)^2)
   test<dim>(VectorTools::L2_norm, std::sqrt(161.0/90.0));
-  
+  deallog << "H1_seminorm:" << std::endl;
+  // sqrt( sum | d/dxi f |_0^2 ) = sqrt( sum \int   )
+  test<dim>(VectorTools::H1_seminorm, std::sqrt(14.0/3.0));
+
   deallog << "OK" << std::endl;
 }
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.