]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Moved a small part of the code in hp::DoFHandler under if condition to AssertThrow...
authordenis.davydov <denis.davydov@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 8 Apr 2014 16:32:36 +0000 (16:32 +0000)
committerdenis.davydov <denis.davydov@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 8 Apr 2014 16:32:36 +0000 (16:32 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_sharedtria@32737 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/hp/dof_handler.cc

index d73508e06a4ab4f76f33ad543a0193f7755d79cc..88d6a4c2a72516f057c98a0a694ff41aa7b9aa07 100644 (file)
@@ -2697,15 +2697,16 @@ namespace hp
         = IndexSet (number_cache.n_global_dofs);
       number_cache.locally_owned_dofs.add_range (0,
                                                  number_cache.n_global_dofs);
+      Assert (number_cache.n_global_dofs < std::numeric_limits<unsigned int>::max (),
+              ExcMessage ("Global number of degrees of freedom is too large."));
+      number_cache.n_locally_owned_dofs_per_processor
+        = std::vector<types::global_dof_index> (1,
+                                                (types::global_dof_index) number_cache.n_global_dofs);
     } else {
-       Assert(false, ExcMessage("not implemented"));
+       AssertThrow(false, ExcNotImplemented() );
        //number_cache.locally_owned_dofs = dealii::DoFTools::locally_owned_dofs_with_subdomain(this,tria->locally_owned_subdomain() );
+       //TODO: update n_locally_owned_dofs_per_processor as well
     }
-    Assert (number_cache.n_global_dofs < std::numeric_limits<unsigned int>::max (),
-            ExcMessage ("Global number of degrees of freedom is too large."));
-    number_cache.n_locally_owned_dofs_per_processor
-      = std::vector<types::global_dof_index> (1,
-                                              (types::global_dof_index) number_cache.n_global_dofs);
 
     number_cache.locally_owned_dofs_per_processor
       = std::vector<IndexSet> (1,

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.