]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add #include <iostream> to a few tutorial programs. 513/head
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 11 Feb 2015 00:19:13 +0000 (18:19 -0600)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 11 Feb 2015 00:19:13 +0000 (18:19 -0600)
These are the tutorial programs that use std::cout or std::endl, which we need to
get from <iostream> but don't currently. Presumably because we include it transitively,
but for the sake of learning deal.II and C++, this is one more and unnecessary step
to understand. It turns out it also makes Eclipse happier if we do the explicit
#include, as it shows fewer source errors.

15 files changed:
examples/step-1/step-1.cc
examples/step-16/step-16.cc
examples/step-21/step-21.cc
examples/step-22/step-22.cc
examples/step-29/step-29.cc
examples/step-31/step-31.cc
examples/step-37/step-37.cc
examples/step-43/step-43.cc
examples/step-45/step-45.cc
examples/step-46/step-46.cc
examples/step-49/step-49.cc
examples/step-5/step-5.cc
examples/step-50/step-50.cc
examples/step-51/step-51.cc
examples/step-53/step-53.cc

index 6a9bef0fc04eceec33e7a3bbb6e87045d2b48027..42c437ba8b2ba7e5759a769ca96d714d09c51248 100644 (file)
@@ -1,6 +1,6 @@
 /* ---------------------------------------------------------------------
  *
- * Copyright (C) 1999 - 2014 by the deal.II authors
+ * Copyright (C) 1999 - 2015 by the deal.II authors
  *
  * This file is part of the deal.II library.
  *
@@ -33,6 +33,7 @@
 #include <deal.II/grid/grid_out.h>
 
 // This is needed for C++ output:
+#include <iostream>
 #include <fstream>
 // And this for the declarations of the `sqrt' and `fabs' functions:
 #include <cmath>
index 39b4db2fd5fbb3c0843d12017cb10b8070a032e9..f879864ea5381886710a98982bb565ab2464b093 100644 (file)
@@ -86,6 +86,7 @@
 #include <deal.II/integrators/l2.h>
 
 // This is C++:
+#include <iostream>
 #include <fstream>
 #include <sstream>
 
index 96dace18f62eb0b2011f3fc3e1d9c27dfedb1127..983f712c9d440f7afaeffcfc59ae18445cc15dcd 100644 (file)
@@ -1,6 +1,6 @@
 /* ---------------------------------------------------------------------
  *
- * Copyright (C) 2006 - 2014 by the deal.II authors
+ * Copyright (C) 2006 - 2015 by the deal.II authors
  *
  * This file is part of the deal.II library.
  *
@@ -57,6 +57,7 @@
 #include <deal.II/numerics/matrix_tools.h>
 #include <deal.II/numerics/data_out.h>
 
+#include <iostream>
 #include <fstream>
 #include <sstream>
 
index 8e17beba2deb699f4516737a6a285f84fd0e83e2..ad8097640794db66b7a9047d665677d2d1e67f8c 100644 (file)
@@ -1,6 +1,6 @@
 /* ---------------------------------------------------------------------
  *
- * Copyright (C) 2008 - 2014 by the deal.II authors
+ * Copyright (C) 2008 - 2015 by the deal.II authors
  *
  * This file is part of the deal.II library.
  *
@@ -64,6 +64,7 @@
 #include <deal.II/lac/sparse_ilu.h>
 
 // This is C++:
+#include <iostream>
 #include <fstream>
 #include <sstream>
 
index f2af6693df6e1f817a70e9d1ea9cb45b9839a4b3..04371441c606100e5e82aff32b666d600e6e53c0 100644 (file)
@@ -48,6 +48,7 @@
 #include <deal.II/numerics/data_out.h>
 #include <deal.II/numerics/vector_tools.h>
 
+#include <iostream>
 #include <fstream>
 
 // This header file contains the necessary declarations for the
index 94a8fe79d5b44b00746537e9bfebc5ea10b610cb..45b8ccaedfabbebc29acd1ceff0adaf7786c1c0e 100644 (file)
@@ -64,8 +64,9 @@
 #include <deal.II/lac/trilinos_block_vector.h>
 #include <deal.II/lac/trilinos_precondition.h>
 
-// Finally, here are two C++ headers that haven't been included yet by one of
+// Finally, here are a few C++ headers that haven't been included yet by one of
 // the aforelisted header files:
+#include <iostream>
 #include <fstream>
 #include <sstream>
 #include <limits>
index 0a855161e1041add5b792af5a8b5a8a618aeb073..7fab2a4a0a13b2a16ac014d16b4e918ac8d40179 100644 (file)
@@ -54,6 +54,7 @@
 #include <deal.II/matrix_free/matrix_free.h>
 #include <deal.II/matrix_free/fe_evaluation.h>
 
+#include <iostream>
 #include <fstream>
 #include <sstream>
 
index 868ee586590b9babdc4aa7574cb3b0d2aff41802..0dd8b185998749f10aba0d568152d6607aa23a84 100644 (file)
@@ -65,6 +65,7 @@
 #include <deal.II/lac/trilinos_block_vector.h>
 #include <deal.II/lac/trilinos_precondition.h>
 
+#include <iostream>
 #include <fstream>
 #include <sstream>
 
index 22febb24311286789aef44260c4ae4a751de8cd0..d0b80883fa51e008caf5b00e33fb8d7dcd468291 100644 (file)
@@ -1,6 +1,6 @@
 /* ---------------------------------------------------------------------
  *
- * Copyright (C) 2010 - 2014 by the deal.II authors
+ * Copyright (C) 2010 - 2015 by the deal.II authors
  *
  * This file is part of the deal.II library.
  *
@@ -47,6 +47,7 @@
 #include <deal.II/numerics/data_out.h>
 #include <deal.II/numerics/vector_tools.h>
 
+#include <iostream>
 #include <fstream>
 
 
index d5c3e2b13716f39a88e0bab68ae057bf4ee7f477..252a0e7aa07e0f5fcff4224a89b006e43d3cd29c 100644 (file)
@@ -1,6 +1,6 @@
 /* ---------------------------------------------------------------------
  *
- * Copyright (C) 2011 - 2014 by the deal.II authors
+ * Copyright (C) 2011 - 2015 by the deal.II authors
  *
  * This file is part of the deal.II library.
  *
@@ -58,6 +58,7 @@
 #include <deal.II/numerics/data_out.h>
 #include <deal.II/numerics/error_estimator.h>
 
+#include <iostream>
 #include <fstream>
 #include <sstream>
 
index fb63396cf4236b591122d86a5fb4031f0c67b054..592cafc54cfc08051667201bc450e19517c104b0 100644 (file)
@@ -1,6 +1,6 @@
 /* ---------------------------------------------------------------------
  *
- * Copyright (C) 2013 - 2014 by the deal.II authors
+ * Copyright (C) 2013 - 2015 by the deal.II authors
  *
  * This file is part of the deal.II library.
  *
@@ -37,6 +37,7 @@
 #include <deal.II/grid/grid_out.h>
 #include <deal.II/grid/grid_in.h>
 
+#include <iostream>
 #include <fstream>
 
 #include <map>
index 058898eac6b6547ad1f36132026250ff6168348f..f51f193b76cdb877e8ce7701f8fad308244bac0b 100644 (file)
@@ -53,6 +53,7 @@
 
 // This is C++ ...
 #include <fstream>
+#include <iostream>
 // ... and this is too: We will convert integers to strings using the C++
 // stringstream class <code>ostringstream</code>:
 #include <sstream>
index 2352788fa025876b09bef52ae18a245ca11e12e5..de8e2f2ab6ef2943c79e702efc096e8192695d61 100644 (file)
 #include <deal.II/multigrid/mg_matrix.h>
 
 // This is C++:
+#include <iostream>
 #include <fstream>
 #include <sstream>
 
index 3af72e1dd8fb7be1bda20a39405fc085cf744e5e..646d49a1e5ec88ee1c9c9dadb88511424a91c02f 100644 (file)
@@ -79,6 +79,9 @@
 // the simulation.
 #include <deal.II/numerics/data_out_faces.h>
 
+#include <iostream>
+
+
 
 // We start by putting the class into its own namespace.
 namespace Step51
index 7bccfbb9010a2596a359e4c9754ac90763eb2e32..2e5822fae722336e3e92ba9b1516fb5167af4961 100644 (file)
@@ -1,6 +1,6 @@
 /* ---------------------------------------------------------------------
  *
- * Copyright (C) 2014 by the deal.II authors
+ * Copyright (C) 2014, 2015 by the deal.II authors
  *
  * This file is part of the deal.II library.
  *
@@ -46,6 +46,7 @@
 #include <boost/iostreams/filter/gzip.hpp>
 #include <boost/iostreams/device/file.hpp>
 
+#include <iostream>
 #include <fstream>
 
 

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.