]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Mini-doc.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 16 Oct 2002 15:52:00 +0000 (15:52 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 16 Oct 2002 15:52:00 +0000 (15:52 +0000)
git-svn-id: https://svn.dealii.org/trunk@6664 0785d39b-7218-0410-832d-ea1e28bc413d

tests/base/abort.cc
tests/base/auto_derivative_function.cc
tests/base/logtest.cc
tests/base/polynomial1d.cc
tests/base/polynomial_test.cc
tests/base/quadrature_test.cc

index 04de05ab43ac7c4d032cd8329ea043424cbba63f..de64fcdfcb0bd7da3ea309760d17a380ce4940bd 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 1998, 1999, 2000, 2001 by the deal.II authors
+//    Copyright (C) 1998, 1999, 2000, 2001, 2002 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
 //
 //-----------------------------------------------------------------------
 
+
+// when linking with the object file generated from this file, calling
+// aborts() will not abort the program, but simply resume
+// operation. while usually useless, this is used in the test to
+// generate the output of a triggered assertion without aborting the
+// program. we do this, since we sometimes want to test that some code
+// actually generates an assertion, which would otherwise be
+// impossible
+
 extern "C"
 void abort()
 {}
index fbdb479554604a303f5772e30f886359af2f24cd..54f8c8f97b045ca4858d2dbb179c6e1270539eda 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 2000, 2001 by the deal.II authors
+//    Copyright (C) 2000, 2001, 2002 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
 //
 //----------------------------  polynomial_test.cc  ---------------------------
 
-#include <iostream>
 
+// test the class that generates derivatives of function objects by
+// finite differencing
 
-#include <cmath>
 
 #include <base/point.h>
 #include <base/auto_derivative_function.h>
@@ -22,6 +22,9 @@
 #include <base/logstream.h>
 #include <lac/vector.h>
 
+#include <iostream>
+#include <cmath>
+
 
 template <int dim>
 class AutoSinExp: public AutoDerivativeFunction<dim>
index a43a6ab098b6878b37747b4ab416d03d1c4a0595..2519d4051d5f620ee227f716d88a46b12b04b7af 100644 (file)
 //----------------------------  logtest.cc  ---------------------------
 
 
+// some tests for the logstream class, writing output, pushing and
+// popping levels, etc
+
+
 #include <base/logstream.h>
 #include <fstream>
 #include <iostream>
index 3a56a68eb0ca5dc5fb5743338e9f4116cd9eecfc..d66840e0c662d87d18a23e6574448ed354b0ebb5 100644 (file)
 //
 //-----------------------------------------------------------------------------
 
+// just output a lot of information about various classes implementing
+// 1d-polynomials, to make sure that all changes we make to these classes
+// do not change the results of these classes.
+
+
 #include <iostream>
 #include <fstream>
 #include <cmath>
index 585e659ef08eea851ca5258cb95fb055138dec80..af7af06d9ea730edfc88b40a1b6ceebe33eecc81 100644 (file)
 //
 //----------------------------  polynomial_test.cc  ---------------------------
 
+
+// just output a lot of information about various classes implementing
+// polynomials, to make sure that all changes we make to these classes
+// do not change the results of these classes.
+
+
 #include <iostream>
 #include <fstream>
 #include <cmath>
index 2ab4caa99421ae5d124ca00dba49dcd6be0e9a60..a5dbc2990492b0cefc664cac2b718cb02215ccff 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 1998, 1999, 2000, 2001 by the deal.II authors
+//    Copyright (C) 1998, 1999, 2000, 2001, 2002 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
 //----------------------------  quadrature_test.cc  ---------------------------
 
 
+// check accuracy of various quadrature formulas by using them to
+// integrate polynomials of increasing degree, and finding the degree
+// until which they integrate exactly
+
+
 #include <iostream>
 #include <fstream>
 
@@ -207,7 +212,9 @@ int main()
   deallog.pop();
 
                                   // delete objects again to avoid
-                                  // messages about memory leaks
+                                  // messages about memory leaks when
+                                  // using purify or other memory
+                                  // checkers
   for (unsigned int i=0; i<q1.size(); ++i)
     delete q1[i];
   for (unsigned int i=0; i<q2.size(); ++i)

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.