]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Compress index sets for locally_owned_dofs: We need to make sure that queries to...
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 21 Dec 2010 15:30:55 +0000 (15:30 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 21 Dec 2010 15:30:55 +0000 (15:30 +0000)
git-svn-id: https://svn.dealii.org/trunk@23058 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/dofs/dof_handler_policy.cc

index 8f2e46db9a2fd6403a108676440e34baa44f8496..845eda1fe95a423ff30ce81ba3d742c311c800bd 100644 (file)
@@ -510,6 +510,7 @@ namespace internal
          = IndexSet (number_cache.n_global_dofs);
        number_cache.locally_owned_dofs.add_range (0,
                                                   number_cache.n_global_dofs);
+       number_cache.locally_owned_dofs.compress();
 
        number_cache.n_locally_owned_dofs_per_processor
          = std::vector<unsigned int> (1,
@@ -546,6 +547,7 @@ namespace internal
          = IndexSet (number_cache.n_global_dofs);
        number_cache.locally_owned_dofs.add_range (0,
                                                   number_cache.n_global_dofs);
+       number_cache.locally_owned_dofs.compress();
 
        number_cache.n_locally_owned_dofs_per_processor
          = std::vector<unsigned int> (1,
@@ -1163,6 +1165,7 @@ namespace internal
        number_cache.locally_owned_dofs
          .add_range(shift,
                     shift+number_cache.n_locally_owned_dofs);
+       number_cache.locally_owned_dofs.compress();
 
                                         // fill global_dof_indexsets
        number_cache.locally_owned_dofs_per_processor.resize(n_cpus);

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.