forked from manmeet3591/python_class
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathration_script
More file actions
executable file
·38 lines (28 loc) · 773 Bytes
/
ration_script
File metadata and controls
executable file
·38 lines (28 loc) · 773 Bytes
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
#!/usr/bin/env bash
#
# template to activate the virtualenv, call post process program, deactivate virtualenv
#
#PBS -N ration
#PBS -q regular
#PBS -l select=1:ncpus=8:mpiprocs=8
#PBS -l walltime=00:00:02
#PBS -A P93300606
source /etc/profile.d/modules.sh
export MPI_UNBUFFERED_STDIO=true
export TMPDIR=$TMPDIR
module purge
## activate the virtualenv that contains all the non-bootstrapped dependencies
cd $POSTPROCESS_PATH/cesm-env2/bin
echo "Running from virtualenv directory:"
pwd
. activate
## load the boot-strap modules
module load gnu/8.3.0
module load ncarenv
module load ncarcompilers
module load mpt/2.19
mpiexec_mpt dplace -s 1 $POSTPROCESS_PATH/Tools/ration_test.py >> $POSTPROCESS_PATH/Tools/ration.log
status=$?
echo $status
deactivate
echo $status