]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Be more conservative with respect to the MSH file format version 7414/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 5 Nov 2018 09:40:01 +0000 (10:40 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 5 Nov 2018 09:40:01 +0000 (10:40 +0100)
source/grid/grid_in.cc

index a7026884276fcb4adf57654b02ddf836e6d15408..37ba68e4ac3d5ec1b9226208a8e761b34415b4de 100644 (file)
@@ -1360,7 +1360,7 @@ GridIn<dim, spacedim>::read_msh(std::istream &in)
 
       in >> version >> file_type >> data_size;
 
-      Assert(version >= 2.0, ExcNotImplemented());
+      Assert((version >= 2.0) && (version <= 4.0), ExcNotImplemented());
       gmsh_file_format = version;
       Assert(file_type == 0, ExcNotImplemented());
       Assert(data_size == sizeof(double), ExcNotImplemented());

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.