--- MITgcm_contrib/ESMF/global_ocean.128x64x15/build.sh 2004/02/16 03:41:55 1.1 +++ MITgcm_contrib/ESMF/global_ocean.128x64x15/build.sh 2004/03/29 17:16:33 1.11 @@ -1,19 +1,62 @@ #!/bin/csh -f # -# Script to build ESMF component libraries for MITgcm ocean 15L. +# Script to build ESMF driven stand alone MITgcm ocean 15L. # setenv BUILDROOT `pwd` -setenv COMP_PROF blackforest -cd run -if ( -f Makefile ) then - make Clean -endif - -# ESMF component build. Creates an ESMF component that can be coupled through -# the ESMF superstructure layer. -pwd -../../../tools/genmake2 -mods=../code -optfile=../../../tools/build_options/sp4 -make depend -make small_f -ln -s ../mytools/* . -./mkmod.sh ocn +#setenv COMP_PROF GFDL_HPCS +setenv COMP_PROF blackforest_withcam +#setenv COMP_PROF faulks +source mytools/comp_profile.BASE +source mytools/comp_profile.${COMP_PROF} +setenv TCSH_PATH `which tcsh` +setenv APPLIB_PATH ${BUILDROOT}/app/lib +setenv APPF90MOD_PATH ${BUILDROOT}/app/f90mod +setenv APPOBJ_PATH ${BUILDROOT}/app/obj +setenv APPINC_PATH ${BUILDROOT}/app/inc +setenv APPEXE_PATH ${BUILDROOT}/app/exe + +# +# Build MITgcm OCN computational code +setenv pesizelist_top "1 2 4 8 16 32" +setenv pesizelist_top "16" +foreach pe ( $pesizelist_top ) +setenv pesizelist $pe +./build_mitgcm_org_ocn.sh +cd ${BUILDROOT} + +# +# Build combined CAM stub computational and ESMF component interface layer +###cd esmf_top/cam_stub +###./comp1.sh +###cd ${BUILDROOT} + +# +# Build internal component interface layer for the MITgcm OCN ESMF component +###cd esmf_top/ocn_internal_comp_interface +###./comp1.sh +###cd ${BUILDROOT} + +# +# Build ESMF component interface layer for the MITgcm OCN ESMF component +cd esmf_top/ocn_driver +./comp1.sh +cd ${BUILDROOT} + +# +# Build combined CAM stub computational and ESMF component interface layer +###cd esmf_top/mitgcm_ocn2cam +###./comp1.sh +###cd ${BUILDROOT} + +# +# Build the composition layer and executable for the ocean only ESMF application +###cd esmf_top/ocn_only_app +###./comp2.sh +###cd ${BUILDROOT} + +# +# Build the composition layer and executable for the ocean+CAM ESMF application +###cd esmf_top/cam_stub-mitgcm_ocn_app +###./comp2.sh +###cd ${BUILDROOT} +end