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 GFDL_HPCS |
7 |
cd run |
#setenv COMP_PROF blackforest |
8 |
if ( -f Makefile ) then |
setenv COMP_PROF faulks |
9 |
make Clean |
source mytools/comp_profile.BASE |
10 |
endif |
source mytools/comp_profile.${COMP_PROF} |
11 |
|
setenv TCSH_PATH `which tcsh` |
12 |
# ESMF component build. Creates an ESMF component that can be coupled through |
setenv APPLIB_PATH ${BUILDROOT}/app/lib |
13 |
# the ESMF superstructure layer. |
setenv APPF90MOD_PATH ${BUILDROOT}/app/f90mod |
14 |
pwd |
setenv APPOBJ_PATH ${BUILDROOT}/app/obj |
15 |
../../../tools/genmake2 -mods=../code -optfile=../../../tools/build_options/sp4 |
setenv APPINC_PATH ${BUILDROOT}/app/inc |
16 |
make depend |
setenv APPEXE_PATH ${BUILDROOT}/app/exe |
17 |
make small_f |
|
18 |
ln -s ../mytools/* . |
# |
19 |
./mkmod.sh ocn |
# Build MITgcm OCN computational code |
20 |
|
setenv pesizelist "1 2 4 8 16 32" |
21 |
|
### setenv pesizelist "1 2 4 8 16 32" |
22 |
|
./build_mitgcm_org_ocn.sh |
23 |
|
cd ${BUILDROOT} |
24 |
|
|
25 |
|
# |
26 |
|
# Build combined CAM stub computational and ESMF component interface layer |
27 |
|
cd esmf_top/cam_stub |
28 |
|
./comp1.sh |
29 |
|
cd ${BUILDROOT} |
30 |
|
|
31 |
|
# |
32 |
|
# Build ESMF component interface layer for the MITgcm OCN ESMF component |
33 |
|
cd esmf_top/ocn_driver |
34 |
|
./comp1.sh |
35 |
|
cd ${BUILDROOT} |
36 |
|
|
37 |
|
# |
38 |
|
# Build combined CAM stub computational and ESMF component interface layer |
39 |
|
cd esmf_top/mitgcm_ocn2cam |
40 |
|
./comp1.sh |
41 |
|
cd ${BUILDROOT} |
42 |
|
|
43 |
|
# |
44 |
|
# Build the composition layer and executable for the ocean only ESMF application |
45 |
|
cd esmf_top/ocn_only_app |
46 |
|
./comp2.sh |
47 |
|
cd ${BUILDROOT} |
48 |
|
|
49 |
|
# |
50 |
|
# Build the composition layer and executable for the ocean+CAM ESMF application |
51 |
|
cd esmf_top/cam_stub-mitgcm_ocn_app |
52 |
|
./comp2.sh |
53 |
|
cd ${BUILDROOT} |