diff --git a/web/content/docs/tutorials/bhe_meshing/notebook-bhe_meshing.md b/web/content/docs/tutorials/bhe_meshing/notebook-bhe_meshing.md index b2dfb3f35db900af9435b730ea9ac911af1d1f94..6bcd356bb6f76bcd8fa36c07989a11ddd3c92b9c 100644 --- a/web/content/docs/tutorials/bhe_meshing/notebook-bhe_meshing.md +++ b/web/content/docs/tutorials/bhe_meshing/notebook-bhe_meshing.md @@ -246,7 +246,8 @@ check_file = os.path.isfile(f"{out_dir}/{bhe_mesh_file_name}.msh") if check_file: print("Creation of BHE mesh in Gmsh format was successful.") else: - raise Exception("Error! Gmsh file is not properly created in the BHE meshing tutorial.") + msg = "Error! Gmsh file is not properly created in the BHE meshing tutorial." + raise Exception(msg) ``` In this step, we will investigate the number of nodes, lines, prisms, and Material ID of the created mesh file, to validate if it is created properly for simulation. @@ -287,5 +288,6 @@ check_file = os.path.isfile(f"{out_dir}/{bhe_mesh_file_name}.vtu") if check_file: print("Conversion of mesh file from Gmsh to VTU format was successful.") else: - raise Exception("Error! Gmsh file is not properly converted to VTU format in the BHE meshing tutorial.") + msg = "Error! Gmsh file is not properly converted to VTU format in the BHE meshing tutorial." + raise Exception(msg) ```