Skip to content

Commit

Permalink
try with same job_id
Browse files Browse the repository at this point in the history
  • Loading branch information
juliasloan25 committed May 23, 2024
1 parent 4c69035 commit e21dad6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/mpi_tests/local_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,9 @@ export RESTART_T=400
export RESTART_CONFIG_FILE=${CONFIG_FILE::-4}_tmp.yml
cp $CONFIG_FILE $RESTART_CONFIG_FILE
sed -i 's/t_end: \"800secs\"/t_end: \"3600secs\"/g' $RESTART_CONFIG_FILE
export RESTART_JOB_ID=${JOB_ID}_restart

# rerun the model
srun -K julia --project=experiments/ClimaEarth/ experiments/ClimaEarth/run_amip.jl --config_file $RESTART_CONFIG_FILE --job_id $RESTART_JOB_ID --restart_dir $RESTART_DIR --restart_t $RESTART_T
srun -K julia --project=experiments/ClimaEarth/ experiments/ClimaEarth/run_amip.jl --config_file $RESTART_CONFIG_FILE --job_id $JOB_ID --restart_dir $RESTART_DIR --restart_t $RESTART_T

# throw an error if no restart checkpoint files are found
if [ $(ls -1 $RESTART_DIR/checkpoint | wc -l) -lt 5 ]; then
Expand Down

0 comments on commit e21dad6

Please sign in to comment.