]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Print out more info when TFI encounters errors. 5755/head
authorDavid Wells <wellsd2@rpi.edu>
Thu, 18 Jan 2018 17:02:22 +0000 (12:02 -0500)
committerDavid Wells <wellsd2@rpi.edu>
Thu, 18 Jan 2018 17:02:22 +0000 (12:02 -0500)
the upper loop bound, c, cannot be larger than the maximum valid index
into the relevant array: therefore we should use '<=' instead of '<' in
a loop bounded above by c.

source/grid/manifold_lib.cc

index 6840286dcd819a84f2f898970b7df58aed6bf73f..48f2878e12bab39cf35776549acb7aa59c317808 100644 (file)
@@ -1859,7 +1859,7 @@ TransfiniteInterpolationManifold<dim, spacedim>
           // generate additional information to help debugging why we did not
           // get a point
           std::ostringstream message;
-          for (unsigned int b=0; b<c; ++b)
+          for (unsigned int b=0; b<=c; ++b)
             {
               typename Triangulation<dim,spacedim>::cell_iterator cell(triangulation,
                                                                        level_coarse,

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.