]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Work around a bug in some gcc versions.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 14 Sep 2005 14:32:17 +0000 (14:32 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 14 Sep 2005 14:32:17 +0000 (14:32 +0000)
git-svn-id: https://svn.dealii.org/trunk@11428 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 6aa6320d8b49b73e4283bcda5f5ca91ea8bb7fd5..b4be72ef018606c19c1f84865348861880c4802f 100644 (file)
@@ -184,8 +184,11 @@ SparseVanka<number>::compute_inverse (const unsigned int         row,
        const unsigned int global_entry =
          structure.operator()(local_indices[i], local_indices[j]);
        if (global_entry != SparsityPattern::invalid_entry)
-         this_inverse(i,j) = matrix->global_entry(global_entry);
-      };
+                                           // the explicit use of operator()
+                                           // works around a bug in some gcc
+                                           // versions (see PR 18803)
+         this_inverse.operator()(i,j) = matrix->global_entry(global_entry);
+      }
   
                                   // Compute inverse
   this_inverse.gauss_jordan();

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.