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