]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
TensorFunction works in principle
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 11 Feb 1999 17:50:13 +0000 (17:50 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 11 Feb 1999 17:50:13 +0000 (17:50 +0000)
git-svn-id: https://svn.dealii.org/trunk@784 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/tensor_function.h
deal.II/base/source/tensor_function.cc

index b69eb82e1eb33306f37747e6a05ab5777b21a74c..a2e5ae8772751ca0c83a16370d924b25650306a2 100644 (file)
@@ -71,10 +71,10 @@ class TensorFunction :
     virtual void value_list (const vector<Point<dim> > &points,
                             vector<Tensor<rank_,dim> > &values) const;
 
-                                  /**
-                                   * Return one component of the value.
-                                   */
-  virtual double operator() (TensorIndex<rank_> i, const Point<dim>& p) const;
+//                                /**
+//                                 * Return one component of the value.
+//                                 */
+//  virtual double operator() (TensorIndex<rank_> i, const Point<dim>& p) const;
   
 
                                     /**
index 253f0406ff713f5ed60147a5c0d4bc2e19e162f6..f3106ff4a542d45a1747d65584cfe4f94887dfc5 100644 (file)
@@ -19,20 +19,28 @@ TensorFunction<rank_, dim>::~TensorFunction ()
 
 
 
+// template <int rank_, int dim>
+// double
+// TensorFunction<rank_, dim>::operator () (TensorIndex<rank_> i,
+//                                      const Point<dim> &) const
+// {
+//   int k=i(0);
+//   k++;
+  
+//   Assert (false, ExcPureFunctionCalled());
+//   return 0;
+// };
+
+
 template <int rank_, int dim>
-double
-TensorFunction<rank_, dim>::operator () (TensorIndex<rank_> i,
-                                        const Point<dim> &) const
+Tensor<rank_,dim>
+TensorFunction<rank_, dim>::operator() (const Point<dim> &) const
 {
-  int k=i(0);
-  k++;
-  
   Assert (false, ExcPureFunctionCalled());
-  return 0;
+  return Tensor<rank_,dim>();
 };
 
 
-
 template <int rank_, int dim>
 void
 TensorFunction<rank_, dim>::value_list (const vector<Point<dim> > &points,

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.