Skip to content

Commit

Permalink
Add more configurable options
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Goldhaber committed Nov 29, 2023
1 parent 16e33f9 commit f3af236
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions share/ReproExperimentScript.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#! /bin/bash
## Run an out-of-the-box N2000 experiment for 13 months
## Run an out-of-the-box N2000 experiment
## but with reduced output.

## Experiment basics, modify these for your experiment
Expand All @@ -10,6 +10,8 @@ SRCROOT=${SRCROOT:-"/cluster/projects/nn1001k/xxUSERxx/NorESM"}
CASEDIR=${CASEDIR:-"/cluster/work/users/xxUSERxx/cases"}
REPO=${REPO:-"https://github.com/NorESMhub/NorESM"}
PROJECT=${PROJECT:-"nn9039k"}
STOP_OPTION=${STOP_OPTION:-"ndays"}
STOP_N=${STOP_N:-"5"}

perror() {
## Print an error message and exit if a non-zero error code is passed
Expand Down Expand Up @@ -73,9 +75,9 @@ fi
# Testing a short run first with DEBUG=TRUE is valuable
# Comment out change for longer runs
#./xmlchange DEBUG=TRUE
#perror $? "trying ''"
./xmlchange STOP_OPTION=nmonths,STOP_N=13
perror $? "trying './xmlchange STOP_OPTION=nmonths,STOP_N=13'"
#perror $? "trying './xmlchange DEBUG=TRUE'"
./xmlchange STOP_OPTION=${STOP_OPTION},STOP_N=${STOP_N}
perror $? "trying './xmlchange STOP_OPTION=${STOP_OPTION},STOP_N=${STOP_N}'"

## Build the model
./case.build
Expand Down

0 comments on commit f3af236

Please sign in to comment.