-
Notifications
You must be signed in to change notification settings - Fork 0
/
benthisworkflow2020_addon.sh
41 lines (27 loc) · 1.2 KB
/
benthisworkflow2020_addon.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
#!/bin/bash
# embedded options to bsub - start with #BSUB # -- our name ---
#BSUB -J loglike_process_outputs
#BSUB -q hpc
#BSUB -W 16:00
#BSUB -R "rusage[mem=30GB]"
# -- Allocate 1 node, 1 core
#BSUB -n 1
#BSUB -u [email protected]
#BSUB -B
#BSUB -N
#BSUB -o Output_benthwkf2_%J.out
#BSUB -e Error_benthwkf2_%J.err
#R_exe=/appl/R/bin/R-3.4.1
#R_exe=/appl/R/3.6.3-mk12020/bin/R
R_exe=/appl/R/bin/R-3.6.3-mkl
$R_exe R CMD BATCH '--args year1=2012 year2=2019' couplingInterpolatedVmsToLandings2020.r wk201219addon.R.out &
# need to install first the R libraries for vmstools on the 'linuxsh' node
# e.g. first look after the R packages online on cran
# then cd to /appl/R/bin
# and then doing R-3.4.1 CMD INSTALL ~/benthis/doBy.tar.gz (install.packages() in R console does not work with hpc)
# problem is we have sometimes to install by hand all the dependent packages......
# Alternatively, maybe it works to do
# install vmstools locally with e.g. 1- be in the right folder, 2- launch R and 3- type:
# install.packages("vmstools_70.tar.gz", repos = NULL, type="source")
#Take care of changing the CRLF (i.e. \r\n) if Windows to LF (\n) only to Unix
# then run this shell with bsub < BenthisWorkflow2020.sh