浏览代码

restart legs must be integer # of months

Charles Pelletier 2 年之前
父节点
当前提交
4d5eec44c2
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      templates/scripts/skeleton_isfcpl.sh

+ 5 - 0
templates/scripts/skeleton_isfcpl.sh

@@ -313,6 +313,11 @@ do
 
                 n_month_full_run=$(( $(( 12 * $(( ${run_end_date_yyyymmdd::4} - ${run_start_date_yyyymmdd::4} )) )) + $(( ${run_end_date_yyyymmdd:4:2} - ${run_start_date_yyyymmdd:4:2} )) ))
 
+                if (( n_month_isfcpl == 0 )); then
+                    echo "Error. With isfcpl == 1 (ice-shelf coupling activated), the restart length must be an integer number of months.  Here rst_freq=\"${rst_freq}\" "
+                    exit 2
+                fi
+
                 if (( $(( ${n_month_full_run} % ${n_month_isfcpl} )) != 0 )); then
                     echo "n_month_full_run=${n_month_full_run} is not a multiple of n_month_isfcpl=${n_month_isfcpl}."
                     exit 2