]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
When we forward declare the general Tensor template, also declare that it has a parti...
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 22 Mar 2002 17:34:02 +0000 (17:34 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 22 Mar 2002 17:34:02 +0000 (17:34 +0000)
git-svn-id: https://svn.dealii.org/trunk@5603 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/function.h
deal.II/base/include/base/tensor.h
deal.II/base/include/base/tensor_base.h
deal.II/doc/news/2002/c-3-3.html

index 7629da8da282b4317f11b4706bc40a74ca1b7f2a..882ff676584646e4a9d905f3abc594911f6b614f 100644 (file)
@@ -22,6 +22,7 @@
 
 template <int dim> class Point;
 template <int rank_, int dim> class Tensor;
+template <int dim> class Tensor<1,dim>;
 template<typename number> class Vector;
 
 /**
index 1714e2b979e203c723beae4df8b2246ada14e941..1a1e2cadb50625dcc894fab940e29574ec42e68a 100644 (file)
@@ -18,6 +18,7 @@
 #include <base/tensor_base.h>
 
 template <int rank_, int dim> class Tensor;
+template <int dim> class Tensor<1,dim>;
 
 /**
  * Provide a general tensor class with an arbitrary rank, i.e. with
index 158d6497cc584ecdde931f2d4f4ddc5c5043919c..59677b7b2bbbe81d9dfb2813a378f1e3f92905d4 100644 (file)
@@ -38,6 +38,7 @@ template <int dim> class Point;
 // general template; specialized for rank==1; the general template is in
 // tensor.h
 template <int rank, int dim> class Tensor;
+template <int dim> class Tensor<1,dim>;
 
 
 /**
index 4a0b50db91de3bd5b48b4911ee640cf94f90bc14..4bbaba98a8ec15a884ff1ac983f76df2f73157d9 100644 (file)
@@ -78,6 +78,15 @@ contributor's names are abbreviated by WB (Wolfgang Bangerth), GK
 <h3>base</h3>
 
 <ol>
+  <li> <p> 
+       Fixed: When forward declaring the <code
+       class="class">Tensor</code> class, we now also forward declare
+       its partial specialization for a rank one tensor. Not doing so
+       confused Sun's Forte compiler.
+       <br>
+       (WB 2002/03/22)
+       </p>
+
   <li> <p> 
        Fixed: The class <code class="class">TensorFunction</code>
        now uses local types <code class="class">value_type</code> and

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.