From 87db8a8df88c4490fb2f2a3e874e55b068ae8ae1 Mon Sep 17 00:00:00 2001 From: Lars Bilke <lars.bilke@ufz.de> Date: Thu, 30 Nov 2023 08:34:25 +0100 Subject: [PATCH] [nb] Added exceptions for checks. See https://www.opengeosys.org/docs/devguide/documentation/jupyter-docs/#python-cells. --- .../Inclined_bhe_meshing/notebook-inclined_bhe_meshing.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/content/docs/tutorials/Inclined_bhe_meshing/notebook-inclined_bhe_meshing.md b/web/content/docs/tutorials/Inclined_bhe_meshing/notebook-inclined_bhe_meshing.md index f1410833db0..2cb59f20e45 100644 --- a/web/content/docs/tutorials/Inclined_bhe_meshing/notebook-inclined_bhe_meshing.md +++ b/web/content/docs/tutorials/Inclined_bhe_meshing/notebook-inclined_bhe_meshing.md @@ -307,6 +307,7 @@ if check_file: print("Creation of BHE mesh in Gmsh format was successful.") else: print("Error! Gmsh file is not properly created in the BHE meshing tutorial.") + raise SystemExit() ``` Finally, the mesh file which has been created using the python interface of Gmsh, will be converted to OGS mesh, in particular to VTU file format. Please, add ogs.exe to the directory of this example file to run GMSH2OGS or give the full path of your ogs executable. Here, option -v (--validation) validate the mesh and shows crucial information of mesh. Option -i takes Gmsh input file name as string and -o is output file name as string as well. @@ -325,4 +326,5 @@ else: print( "Error! Gmsh file is not properly converted to VTU format in the BHE meshing tutorial." ) + raise SystemExit() ``` -- GitLab