From: bangerth Date: Thu, 8 Dec 2011 07:29:21 +0000 (+0000) Subject: Add vtu to list of recognized file formats. Also avoid using a temporary X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f983cdc75fbfea575165d45009cc29ebb9bf079;p=dealii-svn.git Add vtu to list of recognized file formats. Also avoid using a temporary 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 --- diff --git a/deal.II/source/base/data_out_base.cc b/deal.II/source/base/data_out_base.cc index b7f4f2e248..a1f08292b8 100644 --- a/deal.II/source/base/data_out_base.cc +++ b/deal.II/source/base/data_out_base.cc @@ -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);