-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgcc_ioapi_cluster.csh
executable file
·35 lines (34 loc) · 1.24 KB
/
gcc_ioapi_cluster.csh
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
#!/bin/csh -f
set echo
# --------------------------------------
# Add /usr/local/lib to the library path
# --------------------------------------
# if [ -z ${LD_LIBRARY_PATH} ]
# then
# export LD_LIBRARY_PATH=/usr/local/lib
# else
# export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib
# fi
# ----------------------
# Unpack and build IOAPI
# ----------------------
setenv DIR /shared/build
setenv PDIR /shared/cyclecloud-cmaq
cd $DIR
git clone https://github.com/cjcoats/ioapi-3.2 ioapi-3.2_branch_20200828
ln -s ioapi-3.2_branch_20200828 ioapi-3.2
cd ioapi-3.2_branch_20200828
git checkout -b 20200828
setenv BASEDIR $DIR/ioapi-3.2_branch_20200828
setenv BIN Linux2_x86_64gfort
mkdir $BASEDIR/$BIN
setenv CPLMODE nocpl
cd ioapi
# need to copy Makefile to fix BASEDIR setting from HOME to /shared/build/ioapi-3.2
cp $PDIR/Makefile.basedir_fix $BASEDIR/ioapi/Makefile
# need updated Makefile to include ‘-DIOAPI_NCF4=1’ to the MFLAGS make-variable to avoid multiple definition of `nf_get_vara_int64_’
cp $PDIR/Makeinclude.Linux2_x86_64gfort $BASEDIR/ioapi/
make HOME=$DIR |& tee make.log
cd $BASEDIR/m3tools
cp $PDIR/Makefile.fix_ioapi_lib_path Makefile
make HOME=$DIR