Przeglądaj źródła

restart legs must be integer # of months

Charles Pelletier 2 lat temu
rodzic
commit
4d5eec44c2
1 zmienionych plików z 5 dodań i 0 usunięć
  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