]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Circumvent a compile problem with gcc4.0.2 by using operator () to access table data.
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 1 Nov 2010 12:43:19 +0000 (12:43 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 1 Nov 2010 12:43:19 +0000 (12:43 +0000)
git-svn-id: https://svn.dealii.org/trunk@22567 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/dofs/dof_tools.cc

index 20f7bb0f2a5a15f9337107ed53813bd02a021f5a..1d6f9cfd431fda614281862335a2dedda950b036 100644 (file)
@@ -142,7 +142,7 @@ DoFTools::make_sparsity_pattern (const DH                &dof,
   bool need_dof_mask = false;
   for (unsigned int i=0; i<couplings.n_rows(); ++i)
     for (unsigned int j=0; j<couplings.n_cols(); ++j)
-      if (couplings[i][j] == none)
+      if (couplings(i,j) == none)
        need_dof_mask = true;
 
   if (need_dof_mask == true)
@@ -156,7 +156,7 @@ DoFTools::make_sparsity_pattern (const DH                &dof,
          for (unsigned int j=0; j<dofs_per_cell; ++j)
            if (fe_collection[f].is_primitive(i) &&
                fe_collection[f].is_primitive(j))
-             dof_mask[f][i][j]
+             dof_mask[f](i,j)
                = (couplings(fe_collection[f].system_to_component_index(i).first,
                             fe_collection[f].system_to_component_index(j).first) != none);
            else
@@ -178,7 +178,7 @@ DoFTools::make_sparsity_pattern (const DH                &dof,
                Assert (first_nonzero_comp_j < fe_collection[f].n_components(),
                        ExcInternalError());
 
-               dof_mask[f][i][j]
+               dof_mask[f](i,j)
                  = (couplings(first_nonzero_comp_i,first_nonzero_comp_j) != none);
              }
       }

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.