From 8014734e258a76afa07e8ab01c7314c960c53cfb Mon Sep 17 00:00:00 2001
From: Guilherme Calandrini <gupa977e@tu-dresden.de>
Date: Thu, 7 Mar 2024 15:20:03 +0100
Subject: [PATCH] fixes for COMSOL startup

---
 .../docs/software/fem_software.md             | 39 ++++++++++---------
 1 file changed, 21 insertions(+), 18 deletions(-)

diff --git a/doc.zih.tu-dresden.de/docs/software/fem_software.md b/doc.zih.tu-dresden.de/docs/software/fem_software.md
index a5f40cf23..d3bd0ce7a 100644
--- a/doc.zih.tu-dresden.de/docs/software/fem_software.md
+++ b/doc.zih.tu-dresden.de/docs/software/fem_software.md
@@ -324,24 +324,6 @@ firewall of ZIH. For further information, please refer to the COMSOL manual.
     Start the server process with 4 cores, 10 GB RAM and max. 8 hours running time using an
     interactive Slurm job like this:
 
-    ```console
-    marie@login$ module load COMSOL
-    marie@login$ srun --ntasks=1 --cpus-per-task=4 --mem-per-cpu=2500 --time=08:00:00 comsol -np 4 server
-    ```
-
-??? example "Interactive Job"
-
-    If you'd like to work interactively using COMSOL, you can request for an interactive job with,
-    e.g., 4 cores and 2500 MB RAM for 8 hours and X11 forwarding to open the COMSOL GUI:
-
-    ```console
-    marie@login$ module load COMSOL
-    marie@login$ srun --ntasks=1 --cpus-per-task=4 --mem-per-cpu=2500 --time=08:00:00 --pty --x11=first comsol -np 4
-    ```
-
-    Please make sure, that the option *Preferences* --> Graphics --> *Renedering* is set to *software
-    rendering*. Than, you can work from within the campus network.
-
 ??? example "Background Job"
 
     Interactive working is great for debugging and setting experiments up. But, if you have a huge
@@ -362,6 +344,27 @@ firewall of ZIH. For further information, please refer to the COMSOL manual.
     srun comsol -mpi=intel batch -inputfile ./MyInputFile.mph
     ```
 
+### Interactive X11 forward
+
+=== "starter script"
+
+    ```console
+    marie@login$ start_comsol.sh
+    ```
+
+=== "customized startup"
+
+    If you'd like to work interactively using COMSOL, you can request for an interactive job with,
+    e.g., 4 cores and 2500 MB RAM for 8 hours and X11 forwarding to open the COMSOL GUI:
+
+    ```console
+    marie@login$ module load COMSOL
+    marie@login$ srun --ntasks=1 --cpus-per-task=2 --mem-per-cpu=2500 --time=01:00:00 --pty --x11=first comsol -np 2
+    ```
+
+    Please make sure, that the option *Preferences* --> Graphics --> *Renedering* is set to *software
+    rendering*. Than, you can work from within the campus network.
+
 ## LS-DYNA
 
 [LS-DYNA](https://www.dynamore.de/de) is a general-purpose, implicit and explicit FEM software for
-- 
GitLab