From 035738e9d7e23ebaed00de99db32abd0672dc315 Mon Sep 17 00:00:00 2001
From: "Takumi.Matsunobu" <Takumi.Matsunobu@physik.uni-muenchen.de>
Date: Wed, 14 Jun 2023 16:24:20 +0200
Subject: [PATCH] add "ulimit -s unlimited"

---
 templates/real-from-d2-ana/prepare_lbc_remote.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/templates/real-from-d2-ana/prepare_lbc_remote.sh b/templates/real-from-d2-ana/prepare_lbc_remote.sh
index 9fa0ca1..965eb20 100644
--- a/templates/real-from-d2-ana/prepare_lbc_remote.sh
+++ b/templates/real-from-d2-ana/prepare_lbc_remote.sh
@@ -58,6 +58,9 @@ if [ "${LBC_DATA_IS_LOCAL}" != "True" ]; then
   BOUNDARY_GRID_FILE=%simulation.lateral_boundary_grid_filename%
   PARENT_GRID_FILE=%simulation.parent_grid_filename%
 
+  # necessary for running fortran 
+  ulimit -s unlimited
+
   # Loop through hours
   for ((tt=3; tt<=$((3 + %EXPERIMENT.CHUNKSIZE%)); tt++)) ; do
     th=$((tt % 24))
-- 
GitLab