-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMake.csh
executable file
·49 lines (49 loc) · 1.25 KB
/
Make.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/csh
#
set echo
cd $cwd
#
# --- Usage: ./Make.com >& Make.log
#
# --- make hycom with TYPE from this directory's name (src_*_$TYPE).
# --- assumes dimensions.h is correct for $TYPE.
#
# --- set ARCH to the correct value for this machine.
# --- ARCH that start with A are for ARCTIC patch regions
#
#module swap compiler compiler/intel/12.1.3
#module swap mpi mpi/intel/ibmpe
#module list
#setenv ARCH Aintelsse-pe-sm-relo
#
#module swap compiler compiler/intel/12.1.3
#module swap mpi mpi/intel/impi/4.1.0
#module list
#setenv ARCH Aintelsse-impi-sm-relo
#
#module switch PrgEnv-cray PrgEnv-intel
module list
setenv ARCH Axc30-intel-relo
#
setenv TYPE `echo $cwd | awk -F"_" '{print $NF}'`
echo "ARCH = " $ARCH " TYPE = " $TYPE
#
if (! -e ../config/${ARCH}_${TYPE}) then
echo "ARCH = " $ARCH " TYPE = " $TYPE " is not supported"
exit 1
endif
#
# --- some machines require gmake
#
#gmake ARCH=$ARCH TYPE=$TYPE hycom
make hycom ARCH=$ARCH TYPE=$TYPE
#
if ( $ARCH == "Asp5" || $ARCH == "sp5") then
ldedit -bdatapsize=64K -bstackpsize=64K hycom
endif
if ( $ARCH == "Asp6" || $ARCH == "sp6") then
ldedit -bdatapsize=64K -bstackpsize=64K hycom
endif
if ( $ARCH == "Asp6-nofl" || $ARCH == "sp6-nofl") then
ldedit -bdatapsize=64K -bstackpsize=64K hycom
endif