From 18afba111e941a47d6e7e99899e951afd6f88232 Mon Sep 17 00:00:00 2001 From: Jean-Paul Pelteret Date: Fri, 2 Sep 2016 14:38:34 +0200 Subject: [PATCH] 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. --- source/grid/grid_in.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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. \ -- 2.39.5