# ============================================================================
#  SHARED SETTINGS OF THE ROUND 4a RUNS.
#
#  Runs from the v6 gdirs (../lmr_gdirs_v6_202610): per-glacier dynamic
#  melt_f calibration, then a historical run from year 1. Sourced by
#  submit.sh and run_dyn_slurm.sh. The OGGM version, container and sample
#  data come from the v6 config, so that the runs always use exactly the
#  OGGM which built the gdirs they start from.
# ============================================================================

source /home/www/fmaussion/runs/lmr_2025/lmr_gdirs_v6_202610/common.sh

R4A_DIR=/home/www/fmaussion/runs/lmr_2025/round4a

# Per-glacier dynamic melt_f calibration, as round4's *_dyn runs: OGGM's
# run_dynamic_melt_f_calibration with the plain dynamic_melt_f_run (no
# dynamic spinup, so no temp_bias loop and no spinup cold bias). Each
# iteration runs DYN_YS -> end of the forcing and must match Hugonnet
# 2000-2020 within DYN_ERR_FACTOR x its error. Then a run from RUN_YS.
DYN_YS=1000
DYN_ERR_FACTOR=0.2
DYN_MAXITER=40
# The v6 OGGM commit fixes the max step formula (it now uses the farther
# melt_f bound: 12/40 = 0.3 from melt_f 5), so this is OGGM's default
# minimum again. In round4 (buggy formula) 0.3 was passed here instead.
DYN_STEP_MIN=0.1
RUN_YS=1
RUN_ID=lmr_mira_hist
RUN_CHUNK_SIZE=100
RUN_N_CHUNKS=40
RUN_CPUS=8 ; DYN_RUN_TIME=12:00:00

# The oggm_env python, for the merge job (outside the container)
LOCAL_PY=/home/users/fmaussion/.miniforge3/envs/oggm_env/bin/python
