]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove cross dependencies of include files where forward declarations could be used.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 28 Aug 1998 10:50:59 +0000 (10:50 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 28 Aug 1998 10:50:59 +0000 (10:50 +0000)
git-svn-id: https://svn.dealii.org/trunk@535 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/dfmatrix.h
deal.II/lac/include/lac/dsmatrix.h
deal.II/lac/include/lac/dvector.h
deal.II/lac/include/lac/ivector.h
deal.II/lac/source/dfmatrix.cc
deal.II/lac/source/dsmatrix.cc

index 5e4bc414a68d081863fbf648a2886bbaa962e874..418db1360cee9cd3df511f96162bc14cb1459eda 100644 (file)
 // Revised by Wolfgang Bangerth
 
 
-#include <lac/dvector.h>
-#include <lac/ivector.h>
 #include <base/exceptions.h>
-#include <cstdio>
+
+
+// forward declarations
+class dVector;
+class iVector;
 
 
 
index faf22d21241e1bc0a22e966c9fd53292aa4ff8e5..4de7d590d6f2c978e7411989df81965239f032d9 100644 (file)
 // Revised by Wolfgang Bangerth
 
 
-#ifndef __lac_dvector_h
-#include <lac/dvector.h>
-#endif
-#ifndef __lac_ivector_h
-#include <lac/ivector.h>
-#endif
-
 #include <base/exceptions.h>
 
 
-
+//forward declarations
+class dVector;
+class iVector;
 class ostream;
-template <int dim> class DoFHandler;
+
+
 
 /*
 CLASS
index b8f72558f40c7b9c2f3592ddc5dead8acb7b1133..7c72d92f19707f022d2ec334a5d293f5dde2ccb3 100644 (file)
@@ -9,8 +9,8 @@
 // Roland Becker, Guido Kanschat, Franz-Theo Suttmeier
 // Revised by Wolfgang Bangerth
 
-#include <cstdio>
 #include <base/exceptions.h>
+#include <cstdio>
 
 
 
index 8684a9e7e8451beca31f33b2b39f5a9b74b19d21..ce6ac8aa946ca320d565eb4329951587844ba2a3 100644 (file)
@@ -1,13 +1,14 @@
-// $Id$
+/*----------------------------   ivector.h     ---------------------------*/
+/*      $Id$                 */
+#ifndef __ivector_H
+#define __ivector_H
+/*----------------------------   ivector.h     ---------------------------*/
+
 
 // This file is part of the DEAL Library
 // DEAL is Copyright(1995) by
 // Roland Becker, Guido Kanschat, Franz-Theo Suttmeier
 
-
-#ifndef __lac_ivector_h
-#define __lac_ivector_h
-
 #include <base/exceptions.h>
 
 
@@ -187,4 +188,9 @@ inline int& iVector::operator() (unsigned int i)
 }
 
 
+
+
+/*----------------------------   ivector.h     ---------------------------*/
+/* end of #ifndef __ivector_H */
 #endif
+/*----------------------------   ivector.h     ---------------------------*/
index 35591495f3599683d89e5120e89fde68e166dd1c..b344c7e09548057b7199266d94a4e70540ece688 100644 (file)
@@ -1,9 +1,12 @@
 // $Id$
 
+#include <lac/dvector.h>
+#include <lac/ivector.h>
+#include <lac/dfmatrix.h>
+
 #include <cmath>
 #include <cstdlib>
 #include <cstdio>
-#include <lac/dfmatrix.h>
 #include <iomanip>
 
 
index d6dcce0e3dc50f8743543016780f4c9a52f0377a..7afbf58e29f8038cc58f05a8e2ee58d5d8e3ab25 100644 (file)
@@ -5,6 +5,9 @@
 // Roland Becker, Guido Kanschat, Franz-Theo Suttmeier
 
 #include <lac/dsmatrix.h>
+#include <lac/dvector.h>
+#include <lac/ivector.h>
+
 #include <iostream>
 #include <iomanip>
 #include <algorithm>

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.