]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
I should be more concise.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 21 Dec 1999 14:30:34 +0000 (14:30 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 21 Dec 1999 14:30:34 +0000 (14:30 +0000)
git-svn-id: https://svn.dealii.org/trunk@2105 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/full_matrix.templates.h

index 4d51ee77571b6f9a1b46caf11e42d39568b35a6c..51c9d001a60e33ec2646b3fe8f39cdae37c14bac 100644 (file)
@@ -1266,8 +1266,8 @@ FullMatrix<number>::gauss_jordan()
   for (unsigned int j=0; j<n(); ++j)
     {
                                       // pivotsearch
-      double max = fabs(el(j,j));
-      double r = j;
+      number       max = fabs(el(j,j));
+      unsigned int r   = j;
       for (unsigned int i=j+1; i<n(); ++i)
        {
          if (fabs(el(i,j)) > max)
@@ -1287,7 +1287,7 @@ FullMatrix<number>::gauss_jordan()
        }
 
                                       // transformation
-      const double hr = 1./el(j,j);
+      const number hr = 1./el(j,j);
       el(j,j) = hr;
       for (unsigned int k=0; k<n(); ++k)
        {

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.