diff --git a/templates/real-from-d2-ana/prepare_lbc_remote.sh b/templates/real-from-d2-ana/prepare_lbc_remote.sh
index 9fa0ca12f6ec3cacac469ed7cf7cf4bcade6c2a1..965eb20a5a9e30f0c027b13e18132167fe91b421 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))