]> https://gitweb.dealii.org/ - dealii.git/commitdiff
change 4 to this->n_lines() 11568/head
authorWenyu Lei <wlei@sissa.it>
Sat, 16 Jan 2021 15:10:23 +0000 (16:10 +0100)
committerWenyu Lei <wlei@sissa.it>
Sat, 16 Jan 2021 15:10:23 +0000 (16:10 +0100)
include/deal.II/grid/tria_accessor.templates.h

index 23939b0b502bc5b33a319e2150d8f79450542a96..055cb2b8917b5acb9cd4053760930be92701f786 100644 (file)
@@ -1959,8 +1959,8 @@ TriaAccessor<structdim, dim, spacedim>::set_all_manifold_ids(
         break;
 
       case 2:
-        // for quads also set manifold_id of bounding lines
-        for (unsigned int i = 0; i < 4; ++i)
+        // for quads/simplices also set manifold_id of bounding lines
+        for (unsigned int i = 0; i < this->n_lines(); ++i)
           this->line(i)->set_manifold_id(manifold_ind);
         break;
       default:

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.