]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add vtu to list of recognized file formats. Also avoid using a temporary
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 8 Dec 2011 07:29:21 +0000 (07:29 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 8 Dec 2011 07:29:21 +0000 (07:29 +0000)
string to generate error messages -- this only produces an access to corrupted
memory.

git-svn-id: https://svn.dealii.org/trunk@24802 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/base/data_out_base.cc

index b7f4f2e248f3d86a1aaea3c29f7966d716b63df9..a1f08292b8cf6117839d1a3871000a86061df69e 100644 (file)
@@ -2145,12 +2145,14 @@ parse_output_format (const std::string &format_name)
   if (format_name == "vtk")
     return vtk;
 
+  if (format_name == "vtu")
+    return vtu;
+
   if (format_name == "deal.II intermediate")
     return deal_II_intermediate;
 
   AssertThrow (false,
-               ExcMessage ((std::string("The format <") + format_name +
-                            std::string("> is not recognized")).c_str()));
+               ExcMessage ("The given file format name is not recognized."));
 
                                   // return something invalid
   return OutputFormat(-1);

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.