Skip to content
Snippets Groups Projects
Commit d200c67f authored by Oriol Tintó Prims's avatar Oriol Tintó Prims
Browse files

Remove useless variables and rename grid files.

parent 71b7e141
No related branches found
No related tags found
2 merge requests!2Split prepare_rundir.sh into three different stages for the whole experiment,...,!1Cast checkpoint time to integer, add 10 minutes to the simulation to guarantee...
......@@ -2,13 +2,9 @@
# Get some variables provided by autosubmit.
WORKDIR=%HPCROOTDIR%
ICON_VERSION=%ICON_VERSION%
BGRID_GLOBAL=%simulation.BGRID_GLOBAL%
RGRID_GLOBAL=%simulation.RGRID_GLOBAL%
BGRID=%simulation.BGRID%
RGRID=%simulation.RGRID%
BEXTPAR=%simulation.BEXTPAR%
DYNAMICS_GRID_FILENAME=%simulation.dynamics_grid_filename%
RADIATION_GRID_FILE=%simulation.radiation_grid_filename%
EXTERNAL_PARAMETERS_FILE=%simulation.external_parameters_filename%
# Activate spack
......@@ -26,18 +22,18 @@ cd "${COMMON_INIDATA_FOLDER}" || exit
# Download or copy required input files
function download_file() {
URL=$1
FILE=${2:-$(basename $URL)}
if [ ! -e $FILE ]; then
FILE=${2:-$(basename "$URL")}
if [ ! -e "$FILE" ]; then
echo "Download $URL => $FILE"
wget -q $URL -O $FILE
wget -q "$URL" -O "$FILE"
fi
}
# Download grid files and external parameters
BASEURL=http://icon-downloads.mpimet.mpg.de/grids/public/edzw
download_file $BASEURL/$BGRID
download_file $BASEURL/$RGRID
download_file $BASEURL/$BEXTPAR
download_file $BASEURL/${DYNAMICS_GRID_FILENAME}
download_file $BASEURL/${RADIATION_GRID_FILE}
download_file $BASEURL/${EXTERNAL_PARAMETERS_FILE}
# Link input for radiation
ln -sf "${ICON_DATA_PATH}/rrtmg_lw.nc" .
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment