]> https://gitweb.dealii.org/ - dealii.git/commit
Fix unintended terminate in gmsh-API version of read_msh 16714/head
authorSimon Sticko <simon@sticko.se>
Mon, 4 Mar 2024 18:10:11 +0000 (19:10 +0100)
committerSimon Sticko <simon@sticko.se>
Mon, 11 Mar 2024 17:02:23 +0000 (18:02 +0100)
commit49ff9e4fc3253a039b5436ff463b29fc2705d64a
tree709d0422e8129be72d2c82bd70ca2e8c502e5285
parent3fc2fae7c3031c06a0c85923ffb446228ca032d6
Fix unintended terminate in gmsh-API version of read_msh

The gmsh-api version of GridIn::read_msh uses a throw statement without
specifing an exception. The intention is cleary to throw any exception
but the standard specifies that doing this outside of a catch block
should lead to std::terminate being called. Set the boundary_id directly,
without using throw, and add a test that covers this part of the function.
source/grid/grid_in.cc
tests/gmsh/gmsh_api_06.cc [new file with mode: 0644]
tests/gmsh/gmsh_api_06.with_gmsh_with_api=on.output [new file with mode: 0644]

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.