#! /bin/bash

PATH=${PATH}:/home/evan/bin
export PATH

# base folder where everything is stored. Change this!
current_folder=/home/evan/experiments/naice_setup 

# you need to put merge_ice_models into somewhere where ${PATH} can find it

shear_stress_model=$1
margin_model=$2
iteration_number=$3
earth_model=$4



title=${iteration_number}_${earth_model}_${shear_stress_model}_${margin_model}
ice_file="naice_${title}"



merge_ice_models ${ice_file} ${current_folder}/run/${shear_stress_model}_${margin_model}_${iteration_number}

icemoddir="${current_folder}/imodels"

mv -f ${ice_file} ${icemoddir}
