From: Jean-Paul Pelteret Date: Fri, 2 Sep 2016 12:38:34 +0000 (+0200) Subject: Improve error message for GridIn::read_abaqus X-Git-Tag: v8.5.0-rc1~712^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3054%2Fhead;p=dealii.git Improve error message for GridIn::read_abaqus To assist debugging, where possible the error thrown internally when the UCD grid is created is now displayed before the terminal error message is given. --- diff --git a/source/grid/grid_in.cc b/source/grid/grid_in.cc index 95d71d46c0..87a35b7b35 100644 --- a/source/grid/grid_in.cc +++ b/source/grid/grid_in.cc @@ -867,6 +867,18 @@ void GridIn::read_abaqus (std::istream { read_ucd(in_ucd, apply_all_indicators_to_manifolds); } + catch (std::exception &exc) + { + std::cerr + << "Exception on processing internal UCD data: " << std::endl + << exc.what() + << std::endl; + + AssertThrow(false, ExcMessage("Internal conversion from ABAQUS file to UCD format was unsuccessful. \ + More information is provided in an error message printed above. \ + Are you sure that your ABAQUS mesh file conforms with the requirements \ + listed in the documentation?")); + } catch (...) { AssertThrow(false, ExcMessage("Internal conversion from ABAQUS file to UCD format was unsuccessful. \