]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix a hardcoded number of lines. 11870/head
authorDavid Wells <drwells@email.unc.edu>
Mon, 8 Mar 2021 19:59:33 +0000 (14:59 -0500)
committerDavid Wells <drwells@email.unc.edu>
Mon, 8 Mar 2021 19:59:33 +0000 (14:59 -0500)
include/deal.II/grid/tria_accessor.templates.h

index 467241a4a39d423be24647b0ba17960c266c8635..ed0e211ca3a80586009b7e3c11b1607b28bfa205 100644 (file)
@@ -1879,7 +1879,7 @@ TriaAccessor<structdim, dim, spacedim>::set_all_boundary_ids(
       case 2:
         // for boundary quads also set
         // boundary_id of bounding lines
-        for (unsigned int i = 0; i < 4; ++i)
+        for (unsigned int i = 0; i < this->n_lines(); ++i)
           this->line(i)->set_boundary_id(boundary_ind);
         break;
 

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.