-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlotus_bgcval2.sh
79 lines (62 loc) · 1.85 KB
/
lotus_bgcval2.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/bin/bash
#SBATCH --job-name=bgcval2
#SBATCH --partition=short-serial
#SBATCH --time 6:00:00
#SBATCH -o log_bgcval2_%J.out
#SBATCH -e log_bgcval3_%J.err
######################
# First make a copy of this file:
# rysnc -av lotus_bgcval2.sh lotus_bgcval2_$USER.sh
#
# Then edit your new copy (lotus_bgcval2_$USER.sh):
#
# 1. Check the name of your conda environment: CONDA_ENV
# "bgcval2" is the default, but may have a different one.
#
# 2. Check the path to your bgcval2 directory: BGCVAL2_PATH
#
# 3. Change the analyses to run: BGCVAL2_SUITE
# You can add several suites here if needed.
#
# 4. Submit this script with with:
# sbatch lotus_bgcval2_$USER.sh
#
# 5. Monitor progress with:
# squeue | grep $USER
#
#########################
#########################
# Edit these bits:
# Change this to your bgcval2 conda environment name
CONDA_ENV=bgcval2
# Change this to your bgcval2 directory - or wheever you wish to run.
BGCVAL2_PATH=/home/users/$USER/bgcval2
# Add one or more input_yml files here
BGCVAL2_SUITE2=input_yml/my_bgcval2_suite2.yml
##########################
# Source global definitions
if [ -f ~/.bashrc ]; then
echo 'source ~/.bashrc'
source ~/.bashrc
fi
##########################
# load your conda env:
#conda activate bgcval2
echo conda activate $CONDA_ENV
conda activate ${CONDA_ENV}
##########################
# Change directory to your bgcval2 directory:
echo cd $BGCVAL2_PATH
cd $BGCVAL2_PATH
pwd
#########################
# Add one or more input_yml files here
echo analysis_compare -y $BGCVAL2_SUITE
analysis_compare -y $BGCVAL2_SUITE
# analysis_compare -y input_yml/my_other_bgcval2_suite2.yml
#########################
# Rsync report to web facing directory:
# (shouldn't need to change this!)
OUTPATH=/gws/nopw/j04/esmeval/public/CompareReports/bgcval2/$USER
mkdir -p $OUTPATH
rsync -av CompareReports2/* $OUTPATH/.