Skip to content

Commit

Permalink
Update test_hector.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
bpbond committed Dec 29, 2023
1 parent 5a30002 commit b9c5a4e
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions test_hector.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,6 @@ exit_loudly () {
echo "---------- Running: basic SSPs ----------"
find ./inst/input -name "*.ini" -print0 | xargs -0 -n1 $HECTOR

# Permafrost (off by default in v3) runs
echo "---------- Running: permafrost ----------"
sed 's/permafrost_c=0/permafrost_c=865/' $INPUT/hector_ssp245.ini > $INPUT/hector_ssp245_pf.ini
# Confirm that a change was made
if [[ $(diff -q $INPUT/hector_ssp245.ini $INPUT/hector_ssp245_pf.ini | wc -c) -eq 0 ]]; then exit_loudly "permafrost"; fi
# ...and run
$HECTOR $INPUT/hector_ssp245_pf.ini

# Make sure the model handles year changes
echo "---------- Running: year changes ----------"
sed 's/startDate=1745/startDate=1746/' $INPUT/hector_ssp245.ini > $INPUT/hector_ssp245_time.ini
Expand Down

0 comments on commit b9c5a4e

Please sign in to comment.