]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Patch by Lukas Korous: Work around a compiler problem in Microsoft Visual Studio...
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 3 Dec 2014 13:09:35 +0000 (07:09 -0600)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 3 Dec 2014 13:09:35 +0000 (07:09 -0600)
source/grid/tria.cc

index 4dc52e2dc7edf9f2a3a3ea447c54c75c63320aeb..107b65eab21723ef439e313a5bf368bbe916b41a 100644 (file)
@@ -1911,7 +1911,13 @@ namespace internal
       };
 
 
-
+      /**
+      * Create a triangulation from
+      * given data. This function does
+      * this work for 3-dimensional
+      * triangulations independently
+      * of the actual space dimension.
+      */
       template <int spacedim>
       static
       void
@@ -1935,10 +1941,13 @@ namespace internal
         // and reorder_cells function of
         // GridReordering before creating
         // the triangulation
-        for (unsigned int cell_no=0; cell_no<cells.size(); ++cell_no)
-          AssertThrow (dealii::GridTools::cell_measure(triangulation.vertices,
-                                                       cells[cell_no].vertices) >= 0,
-                       ExcGridHasInvalidCell(cell_no));
+#ifndef _MSC_VER
+        //TODO: The following code does not compile with MSVC. Find a way around it
+        for (unsigned int cell_no = 0; cell_no<cells.size(); ++cell_no)
+          AssertThrow(dealii::GridTools::cell_measure(triangulation.vertices,
+                                                      cells[cell_no].vertices) >= 0,
+                      ExcGridHasInvalidCell(cell_no));
+#endif
 
         ///////////////////////////////////////
         // first set up some collections of data

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.