]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
made function compilable; compute_projection_matrices was checked in by accident...
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 25 May 2005 09:06:06 +0000 (09:06 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 25 May 2005 09:06:06 +0000 (09:06 +0000)
git-svn-id: https://svn.dealii.org/trunk@10739 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/fe/fe_tools.cc

index 76cb76474603c046c24da5f9affc9b9300942cd9..3d0d6198a450c1036ace6ee899546bc824d69f08 100644 (file)
@@ -652,7 +652,7 @@ FETools::compute_projection_matrices(const FiniteElement<dim>& fe,
   coarse.reinit(dof_coarse);
   FullMatrix<number> A(n, n);
   for (unsigned int k=0;k<nq;++k)
-    for (unsigned int i=0;i<n;++j)
+    for (unsigned int i=0;i<n;++i)
       for (unsigned int j=0;j<n;++j)
        A(i,j) = coarse.JxW(k)
                 * coarse.shape_value(i,k)
@@ -676,10 +676,10 @@ FETools::compute_projection_matrices(const FiniteElement<dim>& fe,
       
                                       // Remove small entries from
                                       // the matrix
-      for (unsigned int i=0; i<matrix.m(); ++i)
-       for (unsigned int j=0; j<matrix.n(); ++j)
-         if (std::fabs(matrix(i,j)) < 1e-12)
-           matrix(i,j) = 0.;
+//       for (unsigned int i=0; i<matrix.m(); ++i)
+//     for (unsigned int j=0; j<matrix.n(); ++j)
+//       if (std::fabs(matrix(i,j)) < 1e-12)
+//         matrix(i,j) = 0.;
     }
 }
 

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.