1 |
#!/bin/csh -f |
#!/bin/csh -f |
2 |
# |
# |
3 |
# Script to build ESMF component libraries for MITgcm ocean 15L. |
# Script to build ESMF driven stand alone MITgcm ocean 15L. |
4 |
# |
# |
5 |
setenv BUILDROOT `pwd` |
setenv BUILDROOT `pwd` |
6 |
setenv COMP_PROF blackforest |
#setenv COMP_PROF blackforest |
7 |
cd run |
setenv COMP_PROF faulks |
8 |
if ( -f Makefile ) then |
source mytools/comp_profile.BASE |
9 |
make Clean |
source mytools/comp_profile.${COMP_PROF} |
10 |
endif |
setenv TCSH_PATH `which tcsh` |
11 |
|
setenv APPLIB_PATH ${BUILDROOT}/app/lib |
12 |
|
setenv APPF90MOD_PATH ${BUILDROOT}/app/f90mod |
13 |
|
setenv APPOBJ_PATH ${BUILDROOT}/app/obj |
14 |
|
setenv APPINC_PATH ${BUILDROOT}/app/inc |
15 |
|
setenv APPEXE_PATH ${BUILDROOT}/app/exe |
16 |
|
|
17 |
# ESMF component build. Creates an ESMF component that can be coupled through |
# |
18 |
# the ESMF superstructure layer. |
# Build individual component core code |
19 |
pwd |
./build_mitgcm_org_ocn.sh |
|
../../../tools/genmake2 -mods=../code -optfile=../../../tools/build_options/sp4 |
|
|
make depend |
|
|
make small_f |
|
|
ln -s ../mytools/* . |
|
|
./mkmod.sh ocn |
|