]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
fix bug in distributed dofhandler renumber_component_wise(): n_dofs() was not getting...
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 16 Nov 2010 21:32:29 +0000 (21:32 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 16 Nov 2010 21:32:29 +0000 (21:32 +0000)
git-svn-id: https://svn.dealii.org/trunk@22775 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/dofs/dof_handler_policy.cc

index 9e151df8396d5daa346ad5c5d38ef7628fdec199..5e56150a946cff21f5fcd7b6cd8d937341f1545b 100644 (file)
@@ -1552,6 +1552,13 @@ namespace internal
                = number_cache.locally_owned_dofs_per_processor[i].n_elements();
            }
 
+         number_cache.n_global_dofs
+           = std::accumulate( &number_cache
+                              .n_locally_owned_dofs_per_processor[0],
+                              &number_cache
+                              .n_locally_owned_dofs_per_processor[n_cpus],
+                              0 );
+         
          tr->load_user_flags(user_flags);
        }
 #endif

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.