From 170807e18387bd27ba397a59d0a1f55813b32876 Mon Sep 17 00:00:00 2001 From: wolf Date: Wed, 16 Oct 2002 15:52:00 +0000 Subject: [PATCH] Mini-doc. git-svn-id: https://svn.dealii.org/trunk@6664 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/base/abort.cc | 11 ++++++++++- tests/base/auto_derivative_function.cc | 9 ++++++--- tests/base/logtest.cc | 4 ++++ tests/base/polynomial1d.cc | 5 +++++ tests/base/polynomial_test.cc | 6 ++++++ tests/base/quadrature_test.cc | 11 +++++++++-- 6 files changed, 40 insertions(+), 6 deletions(-) diff --git a/tests/base/abort.cc b/tests/base/abort.cc index 04de05ab43..de64fcdfcb 100644 --- a/tests/base/abort.cc +++ b/tests/base/abort.cc @@ -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 @@ -11,6 +11,15 @@ // //----------------------------------------------------------------------- + +// 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() {} diff --git a/tests/base/auto_derivative_function.cc b/tests/base/auto_derivative_function.cc index fbdb479554..54f8c8f97b 100644 --- a/tests/base/auto_derivative_function.cc +++ b/tests/base/auto_derivative_function.cc @@ -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 @@ -11,10 +11,10 @@ // //---------------------------- polynomial_test.cc --------------------------- -#include +// test the class that generates derivatives of function objects by +// finite differencing -#include #include #include @@ -22,6 +22,9 @@ #include #include +#include +#include + template class AutoSinExp: public AutoDerivativeFunction diff --git a/tests/base/logtest.cc b/tests/base/logtest.cc index a43a6ab098..2519d4051d 100644 --- a/tests/base/logtest.cc +++ b/tests/base/logtest.cc @@ -12,6 +12,10 @@ //---------------------------- logtest.cc --------------------------- +// some tests for the logstream class, writing output, pushing and +// popping levels, etc + + #include #include #include diff --git a/tests/base/polynomial1d.cc b/tests/base/polynomial1d.cc index 3a56a68eb0..d66840e0c6 100644 --- a/tests/base/polynomial1d.cc +++ b/tests/base/polynomial1d.cc @@ -11,6 +11,11 @@ // //----------------------------------------------------------------------------- +// 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 #include #include diff --git a/tests/base/polynomial_test.cc b/tests/base/polynomial_test.cc index 585e659ef0..af7af06d9e 100644 --- a/tests/base/polynomial_test.cc +++ b/tests/base/polynomial_test.cc @@ -11,6 +11,12 @@ // //---------------------------- 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 #include #include diff --git a/tests/base/quadrature_test.cc b/tests/base/quadrature_test.cc index 2ab4caa994..a5dbc29904 100644 --- a/tests/base/quadrature_test.cc +++ b/tests/base/quadrature_test.cc @@ -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 @@ -12,6 +12,11 @@ //---------------------------- 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 #include @@ -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