From 2699e947444737c30b85a4b9a8e65f9c02e334ea Mon Sep 17 00:00:00 2001
From: Martin Schupfner <k204212@levante6.lvt.dkrz.de>
Date: Fri, 10 Jan 2025 08:20:05 +0100
Subject: [PATCH] Fix in cmor_ctl scripts for
 transient-deglaication-interactive.

---
 .../transient-deglaciation-interactive_r1i1p1f1-CR.cmor_ctl     | 2 +-
 .../transient-deglaciation-interactive_r1i1p1f2-CR.cmor_ctl     | 2 +-
 .../transient-deglaciation-interactive_r1i1p2f1-CR.cmor_ctl     | 2 +-
 .../transient-deglaciation-interactive_r1i1p3f1-CR.cmor_ctl     | 2 +-
 .../transient-deglaciation-interactive_r1i1p4f2-CR.cmor_ctl     | 2 +-
 .../transient-deglaciation-interactive_r1i1p4f2-CR.runpp        | 1 +
 .../transient-deglaciation-interactive_r1i1p5f1-CR.cmor_ctl     | 2 +-
 .../transient-deglaciation-interactive_r1i1p6f1-CR.cmor_ctl     | 2 +-
 .../transient-deglaciation-interactive_r1i1p7f1-CR.cmor_ctl     | 2 +-
 9 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/cmor/mpiesm/scripts/transient-deglaciation-interactive_r1i1p1f1-CR.cmor_ctl b/cmor/mpiesm/scripts/transient-deglaciation-interactive_r1i1p1f1-CR.cmor_ctl
index 580dc8e..e848a50 100755
--- a/cmor/mpiesm/scripts/transient-deglaciation-interactive_r1i1p1f1-CR.cmor_ctl
+++ b/cmor/mpiesm/scripts/transient-deglaciation-interactive_r1i1p1f1-CR.cmor_ctl
@@ -13,7 +13,7 @@ spinup=1000
 iniyeararr=( $((4000+spinup)) 2000 2000 2000 )
 finyeararr=( 8999 8999 8999 8999 )
 iniyearoffset=0
-iniyear=$(( 1 + $iniyearoffset + $spinup ))
+iniyear=$(( 1 + $iniyearoffset ))
 finyear=$(( 26000 + $iniyearoffset - $spinup ))
 #offset compared to startyear
 inioffsetarr=( $(( -3999 + $iniyearoffset )) $(( 3001 + $iniyearoffset )) $(( 10001 + $iniyearoffset )) $(( 17001 + $iniyearoffset )) )
diff --git a/cmor/mpiesm/scripts/transient-deglaciation-interactive_r1i1p1f2-CR.cmor_ctl b/cmor/mpiesm/scripts/transient-deglaciation-interactive_r1i1p1f2-CR.cmor_ctl
index f7fe3b8..2f6a228 100755
--- a/cmor/mpiesm/scripts/transient-deglaciation-interactive_r1i1p1f2-CR.cmor_ctl
+++ b/cmor/mpiesm/scripts/transient-deglaciation-interactive_r1i1p1f2-CR.cmor_ctl
@@ -13,7 +13,7 @@ spinup=1000
 iniyeararr=( $((4000+spinup)) 2000 2000 2000 )
 finyeararr=( 8999 8999 8999 8949 )
 iniyearoffset=0
-iniyear=$(( 1 + $iniyearoffset + $spinup ))
+iniyear=$(( 1 + $iniyearoffset ))
 finyear=$(( 25950 + $iniyearoffset - $spinup ))
 #offset compared to startyear
 inioffsetarr=( $(( -3999 + $iniyearoffset )) $(( 3001 + $iniyearoffset )) $(( 10001 + $iniyearoffset )) $(( 17001 + $iniyearoffset )) )
diff --git a/cmor/mpiesm/scripts/transient-deglaciation-interactive_r1i1p2f1-CR.cmor_ctl b/cmor/mpiesm/scripts/transient-deglaciation-interactive_r1i1p2f1-CR.cmor_ctl
index b4b6776..bb72295 100755
--- a/cmor/mpiesm/scripts/transient-deglaciation-interactive_r1i1p2f1-CR.cmor_ctl
+++ b/cmor/mpiesm/scripts/transient-deglaciation-interactive_r1i1p2f1-CR.cmor_ctl
@@ -13,7 +13,7 @@ spinup=1000
 iniyeararr=( $((4000+spinup)) 2000 2000 2000 )
 finyeararr=( 8999 8999 8999 8999 )
 iniyearoffset=0
-iniyear=$(( 1 + $iniyearoffset + $spinup ))
+iniyear=$(( 1 + $iniyearoffset ))
 finyear=$(( 26000 + $iniyearoffset - $spinup ))
 #offset compared to startyear
 inioffsetarr=( $(( -3999 + $iniyearoffset )) $(( 3001 + $iniyearoffset )) $(( 10001 + $iniyearoffset )) $(( 17001 + $iniyearoffset )) )
diff --git a/cmor/mpiesm/scripts/transient-deglaciation-interactive_r1i1p3f1-CR.cmor_ctl b/cmor/mpiesm/scripts/transient-deglaciation-interactive_r1i1p3f1-CR.cmor_ctl
index 303c018..f53823d 100755
--- a/cmor/mpiesm/scripts/transient-deglaciation-interactive_r1i1p3f1-CR.cmor_ctl
+++ b/cmor/mpiesm/scripts/transient-deglaciation-interactive_r1i1p3f1-CR.cmor_ctl
@@ -13,7 +13,7 @@ spinup=1000
 iniyeararr=( $((4000+spinup)) 2000 2000 2000 )
 finyeararr=( 8999 8999 8999 8999 )
 iniyearoffset=0
-iniyear=$(( 1 + $iniyearoffset + $spinup ))
+iniyear=$(( 1 + $iniyearoffset ))
 finyear=$(( 26000 + $iniyearoffset - $spinup ))
 #offset compared to startyear
 inioffsetarr=( $(( -3999 + $iniyearoffset )) $(( 3001 + $iniyearoffset )) $(( 10001 + $iniyearoffset )) $(( 17001 + $iniyearoffset )) )
diff --git a/cmor/mpiesm/scripts/transient-deglaciation-interactive_r1i1p4f2-CR.cmor_ctl b/cmor/mpiesm/scripts/transient-deglaciation-interactive_r1i1p4f2-CR.cmor_ctl
index 8660427..da21b30 100755
--- a/cmor/mpiesm/scripts/transient-deglaciation-interactive_r1i1p4f2-CR.cmor_ctl
+++ b/cmor/mpiesm/scripts/transient-deglaciation-interactive_r1i1p4f2-CR.cmor_ctl
@@ -13,7 +13,7 @@ spinup=1000
 iniyeararr=( $((4000+spinup)) 2000 2000 2000 )
 finyeararr=( 8999 8999 8999 8999 )
 iniyearoffset=0
-iniyear=$(( 1 + $iniyearoffset + $spinup ))
+iniyear=$(( 1 + $iniyearoffset ))
 finyear=$(( 26000 + $iniyearoffset - $spinup ))
 #offset compared to startyear
 inioffsetarr=( $(( -3999 + $iniyearoffset )) $(( 3001 + $iniyearoffset )) $(( 10001 + $iniyearoffset )) $(( 17001 + $iniyearoffset )) )
diff --git a/cmor/mpiesm/scripts/transient-deglaciation-interactive_r1i1p4f2-CR.runpp b/cmor/mpiesm/scripts/transient-deglaciation-interactive_r1i1p4f2-CR.runpp
index c62b057..3af0bfd 100755
--- a/cmor/mpiesm/scripts/transient-deglaciation-interactive_r1i1p4f2-CR.runpp
+++ b/cmor/mpiesm/scripts/transient-deglaciation-interactive_r1i1p4f2-CR.runpp
@@ -52,6 +52,7 @@ INPUT_DIR_TRUNK=/work/bk1192/WP1.1/MPIM_transient_deglaciation_synchronous
 
 # RAW Data - path and sub-simulations
 RAW_EXP_DIR_TRUNK=/work/bk1192/WP1.1/MPIM_transient_deglaciation_synchronous
+RAW_EXP_DIR_TRUNK=/work/ba0989/m300792/ArchRetrieval/coupled_paper/pmo0016
 # As usually the Experiment is composed of several sub-simulations, define them as array
 RAW_EXP_IDS=( pmo0016a pmo0016b pmo0016c pmo0016d )
 # Parent experiment that the first RAW_EXP_ID branched from
diff --git a/cmor/mpiesm/scripts/transient-deglaciation-interactive_r1i1p5f1-CR.cmor_ctl b/cmor/mpiesm/scripts/transient-deglaciation-interactive_r1i1p5f1-CR.cmor_ctl
index c4048c4..9219e11 100755
--- a/cmor/mpiesm/scripts/transient-deglaciation-interactive_r1i1p5f1-CR.cmor_ctl
+++ b/cmor/mpiesm/scripts/transient-deglaciation-interactive_r1i1p5f1-CR.cmor_ctl
@@ -13,7 +13,7 @@ spinup=1000
 iniyeararr=( $((4000+spinup)) 2000 2000 2000 )
 finyeararr=( 8999 8999 8999 8999 )
 iniyearoffset=0
-iniyear=$(( 1 + $iniyearoffset + $spinup ))
+iniyear=$(( 1 + $iniyearoffset ))
 finyear=$(( 26000 + $iniyearoffset - $spinup ))
 #offset compared to startyear
 inioffsetarr=( $(( -3999 + $iniyearoffset )) $(( 3001 + $iniyearoffset )) $(( 10001 + $iniyearoffset )) $(( 17001 + $iniyearoffset )) )
diff --git a/cmor/mpiesm/scripts/transient-deglaciation-interactive_r1i1p6f1-CR.cmor_ctl b/cmor/mpiesm/scripts/transient-deglaciation-interactive_r1i1p6f1-CR.cmor_ctl
index 5287681..edaf15a 100755
--- a/cmor/mpiesm/scripts/transient-deglaciation-interactive_r1i1p6f1-CR.cmor_ctl
+++ b/cmor/mpiesm/scripts/transient-deglaciation-interactive_r1i1p6f1-CR.cmor_ctl
@@ -13,7 +13,7 @@ spinup=1000
 iniyeararr=( $((4000+spinup)) 2000 2000 2000 )
 finyeararr=( 8999 8999 8999 8999 )
 iniyearoffset=0
-iniyear=$(( 1 + $iniyearoffset + $spinup ))
+iniyear=$(( 1 + $iniyearoffset ))
 finyear=$(( 26000 + $iniyearoffset - $spinup ))
 #offset compared to startyear
 inioffsetarr=( $(( -3999 + $iniyearoffset )) $(( 3001 + $iniyearoffset )) $(( 10001 + $iniyearoffset )) $(( 17001 + $iniyearoffset )) )
diff --git a/cmor/mpiesm/scripts/transient-deglaciation-interactive_r1i1p7f1-CR.cmor_ctl b/cmor/mpiesm/scripts/transient-deglaciation-interactive_r1i1p7f1-CR.cmor_ctl
index aca47a5..5dcb81d 100755
--- a/cmor/mpiesm/scripts/transient-deglaciation-interactive_r1i1p7f1-CR.cmor_ctl
+++ b/cmor/mpiesm/scripts/transient-deglaciation-interactive_r1i1p7f1-CR.cmor_ctl
@@ -13,7 +13,7 @@ spinup=1000
 iniyeararr=( $((4000+spinup)) 2000 2000 2000 )
 finyeararr=( 8999 8999 8999 8999 )
 iniyearoffset=0
-iniyear=$(( 1 + $iniyearoffset + $spinup ))
+iniyear=$(( 1 + $iniyearoffset ))
 finyear=$(( 26000 + $iniyearoffset - $spinup ))
 #offset compared to startyear
 inioffsetarr=( $(( -3999 + $iniyearoffset )) $(( 3001 + $iniyearoffset )) $(( 10001 + $iniyearoffset )) $(( 17001 + $iniyearoffset )) )
-- 
GitLab