From: Wolfgang Bangerth Date: Sun, 27 Jan 2002 08:44:04 +0000 (+0000) Subject: Include where necessary. X-Git-Tag: v8.0.0~18413 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b494d56541405580d04ac2ae5f0ef51e2b5838e4;p=dealii.git Include where necessary. git-svn-id: https://svn.dealii.org/trunk@5422 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-10/step-10.cc b/deal.II/examples/step-10/step-10.cc index 1d3f033c9b..2c0cdfed75 100644 --- a/deal.II/examples/step-10/step-10.cc +++ b/deal.II/examples/step-10/step-10.cc @@ -35,6 +35,7 @@ #include // And this again is C++: +#include #include #include diff --git a/deal.II/examples/step-11/step-11.cc b/deal.II/examples/step-11/step-11.cc index c9eb4f20f5..537467b6c2 100644 --- a/deal.II/examples/step-11/step-11.cc +++ b/deal.II/examples/step-11/step-11.cc @@ -52,6 +52,7 @@ // following file for its // declaration: #include +#include #include #include diff --git a/deal.II/examples/step-12/step-12.cc b/deal.II/examples/step-12/step-12.cc index 13c9de0e72..b757801ff4 100644 --- a/deal.II/examples/step-12/step-12.cc +++ b/deal.II/examples/step-12/step-12.cc @@ -67,6 +67,7 @@ #include // And this again is C++: +#include #include diff --git a/deal.II/examples/step-3/step-3.cc b/deal.II/examples/step-3/step-3.cc index 893fe897d8..9417d670ce 100644 --- a/deal.II/examples/step-3/step-3.cc +++ b/deal.II/examples/step-3/step-3.cc @@ -83,9 +83,10 @@ #include // Finally, this is for output to a - // file. + // file and to the console: #include #include +#include // Instead of the procedural diff --git a/deal.II/examples/step-4/step-4.cc b/deal.II/examples/step-4/step-4.cc index bb4f71ac93..9293fc0898 100644 --- a/deal.II/examples/step-4/step-4.cc +++ b/deal.II/examples/step-4/step-4.cc @@ -38,6 +38,7 @@ #include #include +#include // This is new, however: in the // previous example we got some diff --git a/deal.II/examples/step-5/step-5.cc b/deal.II/examples/step-5/step-5.cc index 91ef76fd63..ebbf6f3f1e 100644 --- a/deal.II/examples/step-5/step-5.cc +++ b/deal.II/examples/step-5/step-5.cc @@ -50,8 +50,8 @@ #include // ... and this is too: We will // convert integers to strings using - // the the C++ stringstream class - // ``ostringstream''. One slight + // the C++ stringstream class + // ``ostringstream''. One annoying // complication arises here in that // the classes ``std::istringstream'' // and ``std::ostringstream'' (with @@ -62,7 +62,7 @@ // around the time the C++ standard // was made in 1999. For example, the // gcc compiler up to and including - // version 2.95.x did not have them, + // version 2.95.2 did not have them, // but instead provided classes // ``istrstream'' and ``ostrstream'' // with a similar, but nevertheless @@ -793,11 +793,11 @@ void LaplaceProblem::output_results (const unsigned int cycle) const // run time using an input file. // Finally, we need the filename to - // which the results is to be + // which the results are to be // written. We would like to have // it of the form // ``solution-N.eps'', where N is - // the number of refinement + // the number of the refinement // cycle. Thus, we have to convert // an integer to a part of a // string; this can be done using @@ -806,12 +806,13 @@ void LaplaceProblem::output_results (const unsigned int cycle) const // write everything into a special // stream (just like writing into a // file or to the screen) and - // retrieve that as a string. This - // applies the usual conversions - // from integer to strings, and one - // could as well give stream - // modifiers such as ``setf'', - // ``setprecision'', and so on. + // retrieve what you wrote as a + // string. This applies the usual + // conversions from integer to + // strings, and one could as well + // give stream modifiers such as + // ``setw'', ``setprecision'', and + // so on. // // In C++, you can do this by using // the so-called stringstream @@ -836,11 +837,11 @@ void LaplaceProblem::output_results (const unsigned int cycle) const // the two classes which we might // now be using, depending on which // one is available, is close - // enough that we need not take - // care about the differences any - // more, so we can use them in a - // straightforward way, even if - // they are not identical. + // enough that we need to take care + // about the differences only once + // below, so we can use them in a + // rather straightforward way, even + // if they are not identical. // In order to now actually // generate a filename, we fill the @@ -858,13 +859,15 @@ void LaplaceProblem::output_results (const unsigned int cycle) const // We can get whatever we wrote to // the stream using the ``str()'' - // function. If the new stringstream - // classes are used, then the result is - // a string which we have to convert to - // a char* using the ``c_str()'' - // function, otherwise the result is a - // char* right away. Use that as filename - // for the output stream: + // function. If the new + // stringstream classes are used, + // then the result is a string + // which we have to convert to a + // char* using the ``c_str()'' + // function, otherwise the result + // is a char* right away. Use that + // as filename for the output + // stream: #ifdef HAVE_STD_STRINGSTREAM std::ofstream output (filename.str().c_str()); #else diff --git a/deal.II/examples/step-6/step-6.cc b/deal.II/examples/step-6/step-6.cc index b0daa315ee..bcfa77fb09 100644 --- a/deal.II/examples/step-6/step-6.cc +++ b/deal.II/examples/step-6/step-6.cc @@ -88,6 +88,7 @@ #include #include +#include // The main class is again almost diff --git a/deal.II/examples/step-7/step-7.cc b/deal.II/examples/step-7/step-7.cc index ee9ac38b67..2a119ec194 100644 --- a/deal.II/examples/step-7/step-7.cc +++ b/deal.II/examples/step-7/step-7.cc @@ -81,6 +81,7 @@ // slightly more detail below. #include #include +#include // @sect3{Equation data} diff --git a/deal.II/examples/step-8/step-8.cc b/deal.II/examples/step-8/step-8.cc index d5f0a1092f..37fdaf6c9a 100644 --- a/deal.II/examples/step-8/step-8.cc +++ b/deal.II/examples/step-8/step-8.cc @@ -52,6 +52,7 @@ // This again is C++: #include +#include // The main class is, except for its diff --git a/deal.II/examples/step-9/step-9.cc b/deal.II/examples/step-9/step-9.cc index 68efbfab79..4fd06faddc 100644 --- a/deal.II/examples/step-9/step-9.cc +++ b/deal.II/examples/step-9/step-9.cc @@ -77,6 +77,7 @@ // This is C++, as we want to write // some output to disk: #include +#include diff --git a/tests/base/logtest.cc b/tests/base/logtest.cc index 73d9a04f0b..a43a6ab098 100644 --- a/tests/base/logtest.cc +++ b/tests/base/logtest.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 @@ -14,6 +14,7 @@ #include #include +#include int main() diff --git a/tests/base/reference.cc b/tests/base/reference.cc index 1b54a605a5..f131b7e798 100644 --- a/tests/base/reference.cc +++ b/tests/base/reference.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 @@ -16,6 +16,7 @@ #include #include #include +#include class Test : public Subscriptor diff --git a/tests/base/tensor.cc b/tests/base/tensor.cc index 80ea42b3bf..f0f7a137e1 100644 --- a/tests/base/tensor.cc +++ b/tests/base/tensor.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 @@ -16,7 +16,7 @@ #include #include #include - +#include int main () { diff --git a/tests/base/timer.cc b/tests/base/timer.cc index 3ed423716d..55a1a6a0e9 100644 --- a/tests/base/timer.cc +++ b/tests/base/timer.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 @@ -16,6 +16,7 @@ #include #include #include +#include // compute the ratio of two measurements and compare to // the expected value. diff --git a/tests/deal.II/grid_transform.cc b/tests/deal.II/grid_transform.cc index f6207cefaa..b069b6ca65 100644 --- a/tests/deal.II/grid_transform.cc +++ b/tests/deal.II/grid_transform.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 @@ -22,6 +22,7 @@ #include #include +#include int main () diff --git a/tests/deal.II/subdomain_ids.cc b/tests/deal.II/subdomain_ids.cc index 08345f23bd..a1d22da953 100644 --- a/tests/deal.II/subdomain_ids.cc +++ b/tests/deal.II/subdomain_ids.cc @@ -164,7 +164,7 @@ void test () ExcNumberMismatch(std::count (selected_dofs.begin(), selected_dofs.end(), true), - pow(cells_per_direction/2+1,dim))); + (int)pow(cells_per_direction/2+1,dim))); } deallog << "Check 4 (dim=" << dim << ") ok" << std::endl; }; diff --git a/tests/lac/block_matrices.cc b/tests/lac/block_matrices.cc index 6813863354..d2f37933ba 100644 --- a/tests/lac/block_matrices.cc +++ b/tests/lac/block_matrices.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 @@ -17,6 +17,7 @@ #include #include #include +#include #include diff --git a/tests/lac/block_vector.cc b/tests/lac/block_vector.cc index 9820b91173..5dd982fe42 100644 --- a/tests/lac/block_vector.cc +++ b/tests/lac/block_vector.cc @@ -17,6 +17,7 @@ #include #include #include +#include #include #include diff --git a/tests/lac/block_vector_iterator.cc b/tests/lac/block_vector_iterator.cc index fbde046691..3f0b5dbe6e 100644 --- a/tests/lac/block_vector_iterator.cc +++ b/tests/lac/block_vector_iterator.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 @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include diff --git a/tests/lac/full_matrix.cc b/tests/lac/full_matrix.cc index f7a3e25c9d..f859e5783d 100644 --- a/tests/lac/full_matrix.cc +++ b/tests/lac/full_matrix.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 @@ -14,6 +14,7 @@ #include #include +#include #include #include diff --git a/tests/lac/matrix_out.cc b/tests/lac/matrix_out.cc index c3d556f755..2e76b0f4b2 100644 --- a/tests/lac/matrix_out.cc +++ b/tests/lac/matrix_out.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2001 by the deal.II authors +// Copyright (C) 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 @@ -16,6 +16,7 @@ #include #include #include +#include int main () { diff --git a/tests/lac/mg.cc b/tests/lac/mg.cc index 8e68395c67..444407ec74 100644 --- a/tests/lac/mg.cc +++ b/tests/lac/mg.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 1998, 1999, 2000 by the deal.II authors +// Copyright (C) 1998, 1999, 2000, 2002 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -14,6 +14,7 @@ #include #include +#include #include "testmatrix.h" #include #include diff --git a/tests/lac/mgbase.cc b/tests/lac/mgbase.cc index aa6756b5dd..1397403493 100644 --- a/tests/lac/mgbase.cc +++ b/tests/lac/mgbase.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 1998, 1999, 2000 by the deal.II authors +// Copyright (C) 1998, 1999, 2000, 2002 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -17,6 +17,7 @@ #include #include +#include class TransferTest : diff --git a/tests/lac/solver.cc b/tests/lac/solver.cc index 84ef074e84..9d6597563f 100644 --- a/tests/lac/solver.cc +++ b/tests/lac/solver.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 @@ -14,6 +14,7 @@ #include #include +#include #include #include "testmatrix.h" #include diff --git a/tests/lac/sparse_ilu.cc b/tests/lac/sparse_ilu.cc index fb29d2d176..723ec0743b 100644 --- a/tests/lac/sparse_ilu.cc +++ b/tests/lac/sparse_ilu.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2001 by the deal.II authors +// Copyright (C) 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 @@ -17,6 +17,7 @@ #include #include +#include #include #include #include "testmatrix.h" diff --git a/tests/lac/sparsity_pattern.cc b/tests/lac/sparsity_pattern.cc index 0eae668de2..023540907b 100644 --- a/tests/lac/sparsity_pattern.cc +++ b/tests/lac/sparsity_pattern.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2001 by the deal.II authors +// Copyright (C) 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 @@ -16,6 +16,7 @@ #include #include "testmatrix.h" #include +#include #include #include diff --git a/tests/lac/vector-vector.cc b/tests/lac/vector-vector.cc index d37aed418d..534e2068f4 100644 --- a/tests/lac/vector-vector.cc +++ b/tests/lac/vector-vector.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 @@ -16,6 +16,7 @@ #include #include #include +#include