]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Use the new scalar_product function in base/.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 20 Aug 2008 12:52:50 +0000 (12:52 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 20 Aug 2008 12:52:50 +0000 (12:52 +0000)
git-svn-id: https://svn.dealii.org/trunk@16606 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-31/step-31.cc

index abd377d268216756c924aa9ac44191cffc33694b..712d6d7b8b2d359cb00495f3e3018aed21a9771a 100644 (file)
@@ -1145,18 +1145,6 @@ void BoussinesqFlowProblem<dim>::setup_dofs ()
 
 
 
-template <int dim>
-double scalar_product (const Tensor<2,dim> &t1,
-                      const Tensor<2,dim> &t2)
-{
-  double s = 0;
-  for (unsigned int i=0; i<dim; ++i)
-    for (unsigned int j=0; j<dim; ++j)
-      s += t1[i][j] * t2[i][j];
-  return s;
-}
-
-
 template <int dim>
 void
 BoussinesqFlowProblem<dim>::assemble_stokes_preconditioner ()

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.