From: denis.davydov Date: Tue, 8 Apr 2014 16:32:36 +0000 (+0000) Subject: Moved a small part of the code in hp::DoFHandler under if condition to AssertThrow... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78b781f395b24a52abc3401ca5c0569d4e289419;p=dealii-svn.git Moved a small part of the code in hp::DoFHandler under if condition to AssertThrow when parallel::shared::Triangulation is used git-svn-id: https://svn.dealii.org/branches/branch_sharedtria@32737 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/hp/dof_handler.cc b/deal.II/source/hp/dof_handler.cc index d73508e06a..88d6a4c2a7 100644 --- a/deal.II/source/hp/dof_handler.cc +++ b/deal.II/source/hp/dof_handler.cc @@ -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::max (), + ExcMessage ("Global number of degrees of freedom is too large.")); + number_cache.n_locally_owned_dofs_per_processor + = std::vector (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::max (), - ExcMessage ("Global number of degrees of freedom is too large.")); - number_cache.n_locally_owned_dofs_per_processor - = std::vector (1, - (types::global_dof_index) number_cache.n_global_dofs); number_cache.locally_owned_dofs_per_processor = std::vector (1,