From 590aaaad5e446536638a3b5a4ca943a574c49fc9 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 3 Dec 2014 07:09:35 -0600 Subject: [PATCH] Patch by Lukas Korous: Work around a compiler problem in Microsoft Visual Studio by disabling a safety check (for just this compiler) that should never trigger. --- source/grid/tria.cc | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/source/grid/tria.cc b/source/grid/tria.cc index 4dc52e2dc7..107b65eab2 100644 --- a/source/grid/tria.cc +++ b/source/grid/tria.cc @@ -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 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= 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= 0, + ExcGridHasInvalidCell(cell_no)); +#endif /////////////////////////////////////// // first set up some collections of data -- 2.39.5