1 |
cnh |
1.1 |
#!/bin/csh -f |
2 |
|
|
# |
3 |
|
|
# Script to build ESMF component libraries for MITgcm ocean 15L. |
4 |
|
|
# |
5 |
|
|
setenv BUILDROOT `pwd` |
6 |
|
|
setenv COMP_PROF blackforest |
7 |
cnh |
1.6 |
#setenv COMP_PROF faulks |
8 |
cnh |
1.5 |
source mytools/comp_profile.BASE |
9 |
|
|
source mytools/comp_profile.${COMP_PROF} |
10 |
cnh |
1.3 |
setenv TCSH_PATH `which tcsh` |
11 |
cnh |
1.1 |
cd run |
12 |
|
|
if ( -f Makefile ) then |
13 |
|
|
make Clean |
14 |
|
|
endif |
15 |
|
|
|
16 |
|
|
# ESMF component build. Creates an ESMF component that can be coupled through |
17 |
|
|
# the ESMF superstructure layer. |
18 |
cnh |
1.5 |
${gm2command} ${gm2mods} ${gm2optfile} ${gm2adoptfile} ${gm2standarddirs} |
19 |
cnh |
1.1 |
make depend |
20 |
|
|
make small_f |
21 |
cnh |
1.3 |
|
22 |
|
|
# Copy the scripts from the downloa directory making platform specific mods |
23 |
|
|
# along the way. |
24 |
|
|
foreach f ( ../mytools/* ) |
25 |
|
|
if ( -f $f ) then |
26 |
|
|
cp $f . |
27 |
|
|
cat $f | sed s'|<TCSH_PATH>|'${TCSH_PATH}'|g' > temp.$$ |
28 |
|
|
mv temp.$$ ${f:t} |
29 |
|
|
chmod +x ${f:t} |
30 |
|
|
endif |
31 |
|
|
end |
32 |
cnh |
1.1 |
./mkmod.sh ocn |