]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
simplify logic
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 26 May 2013 09:37:10 +0000 (09:37 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 26 May 2013 09:37:10 +0000 (09:37 +0000)
git-svn-id: https://svn.dealii.org/trunk@29603 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/multigrid/mg_transfer_prebuilt.cc

index 17f69b58646cde7f72741371005b38b38bf1b7a4..85c5c74031711845fad299a81e6720e9327a489d 100644 (file)
@@ -273,15 +273,9 @@ void MGTransferPrebuilt<VECTOR>::build_matrices (
           level_cell->get_mg_dof_indices (level_dof_indices);
 
           for (unsigned int i=0; i<dofs_per_cell; ++i)
-            {
-              if (mg_constrained_dofs != 0)
-                {
-                  if (!mg_constrained_dofs->at_refinement_edge(level,level_dof_indices[i]))
-                    temp_copy_indices[level_dof_indices[i]] = global_dof_indices[i];
-                }
-              else
-                temp_copy_indices[level_dof_indices[i]] = global_dof_indices[i];
-            }
+           if (mg_constrained_dofs == 0
+               || !mg_constrained_dofs->at_refinement_edge(level,level_dof_indices[i]))
+             temp_copy_indices[level_dof_indices[i]] = global_dof_indices[i];
         }
 
       // now all the active dofs got a valid entry,

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.