From 27da6ea5d03489402bae75784dd50423cf89f8e9 Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Tue, 28 Nov 2023 10:32:02 +0100
Subject: [PATCH] [nb] Renamed and added to ctest.

---
 Applications/Utils/Tests.cmake                 |  2 ++
 ...ing.md => notebook-inclined_bhe_meshing.md} | 18 ++----------------
 2 files changed, 4 insertions(+), 16 deletions(-)
 rename web/content/docs/tutorials/Inclined_bhe_meshing/{Inclined_bhe_meshing.md => notebook-inclined_bhe_meshing.md} (97%)

diff --git a/Applications/Utils/Tests.cmake b/Applications/Utils/Tests.cmake
index f1811d0ca6e..286e29b2ee6 100644
--- a/Applications/Utils/Tests.cmake
+++ b/Applications/Utils/Tests.cmake
@@ -1421,6 +1421,8 @@ if(NOT OGS_USE_PETSC)
                  RUNTIME 10)
     NotebookTest(NOTEBOOKFILE ../../web/content/docs/tutorials/mesh_tutorial/notebook-mesh_tutorial.md
                  RUNTIME 10)
+    NotebookTest(NOTEBOOKFILE ../../web/content/docs/tutorials/Inclined_bhe_meshing/notebook-inclined_bhe_meshing.md
+                 RUNTIME 10)
 endif()
 
 AddTest(
diff --git a/web/content/docs/tutorials/Inclined_bhe_meshing/Inclined_bhe_meshing.md b/web/content/docs/tutorials/Inclined_bhe_meshing/notebook-inclined_bhe_meshing.md
similarity index 97%
rename from web/content/docs/tutorials/Inclined_bhe_meshing/Inclined_bhe_meshing.md
rename to web/content/docs/tutorials/Inclined_bhe_meshing/notebook-inclined_bhe_meshing.md
index 4c61d07016a..09d070c641f 100644
--- a/web/content/docs/tutorials/Inclined_bhe_meshing/Inclined_bhe_meshing.md
+++ b/web/content/docs/tutorials/Inclined_bhe_meshing/notebook-inclined_bhe_meshing.md
@@ -1,17 +1,3 @@
----
-jupyter:
-  jupytext:
-    text_representation:
-      extension: .md
-      format_name: markdown
-      format_version: '1.3'
-      jupytext_version: 1.15.2
-  kernelspec:
-    display_name: Python 3 (ipykernel)
-    language: python
-    name: python3
----
-
 +++
 title = "Creating OpenGeoSys Mesh with Inclined Borehole Heat Exchangers"
 date = "2023-11-27"
@@ -19,6 +5,7 @@ author = "Joy Brato Shil, Haibing Shao"
 image = "inclined2DBHE.png"
 +++
 
+
 This tutorial is made to illustrate the procedure of creating an OGS mesh file with inclined Borehole Heat Exchangers (BHEs) in it. Such mesh uses prism elements for the soil part, and line elements for the BHEs. However, in this tutorial of inclined BHEs, a layer of hexagonal shape prism mesh is created around each BHE for optimal accuracy (Diersch et al. 2011) and all other parts of the geometry consist of tetrahedron mesh element to avoid complexity in mesh creation. The produced mesh file is made explicitly for the HEAT_TRANSPORT_BHE module in OGS and will NOT work with other modules. For better understanding, an image of 1D inclined BHEs is presented.
 
 ![inclined_bhe_1D-2.png](./inclined_bhe_1D-2.png)
@@ -299,10 +286,9 @@ gmsh.write(f"{out_dir}/{bhe_mesh_file_name}.msh")
 Launch the GUI to see the results. Later `gmsh.finalize()` will be called when done using Gmsh Python API
 
 ```python
-if "-nopopup" not in sys.argv:
+if "CI" not in os.environ:
     gmsh.fltk.run()
 
-
 gmsh.finalize()
 ```
 
-- 
GitLab