]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make it compile.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 13 Jul 2014 18:34:51 +0000 (18:34 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 13 Jul 2014 18:34:51 +0000 (18:34 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_manifold_id_intermediate@33151 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/grid/tria_accessor.templates.h

index 1e6ff54a0bfb1bcff937e0fe5dc5b44344fc850e..c75d0f5c540b17b9a23ce23e1aa7d926cd103bc6 100644 (file)
@@ -1930,14 +1930,13 @@ TriaAccessor<structdim, dim, spacedim>::get_manifold () const
                                   // the boundary id, after having
                                   // casted it to a manifold id
   if(mi == numbers::invalid_manifold_id) 
-    mi = static_cast<types::manifold_id>
-        (structdim < dim ?
-         this->objects().boundary_or_material_id[this->present_index].boundary_id:
-         dim < spacedim ? 
-         this->objects().boundary_or_material_id[this->present_index].material_id:
-         numbers::invalid_manifold_id);
-  
-  return this->tria->get_manifold(mi);
+    return this->tria->get_manifold(structdim < dim ?
+                                   this->objects().boundary_or_material_id[this->present_index].boundary_id:
+                                   dim < spacedim ? 
+                                   this->objects().boundary_or_material_id[this->present_index].material_id:
+                                   numbers::invalid_manifold_id);
+  else
+    this->tria->get_manifold(mi);
 }
 
 

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.