--- MITgcm_contrib/ESMF/global_ocean.128x64x15/build.sh 2004/02/22 02:56:19 1.3 +++ MITgcm_contrib/ESMF/global_ocean.128x64x15/build.sh 2004/02/22 19:29:35 1.4 @@ -1,32 +1,19 @@ #!/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 -#setenv COMP_PROF faulks +#setenv COMP_PROF blackforest +setenv COMP_PROF faulks source mytools/comp_profile.BASE source mytools/comp_profile.${COMP_PROF} setenv TCSH_PATH `which tcsh` -cd run -if ( -f Makefile ) then - make Clean -endif +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 -# ESMF component build. Creates an ESMF component that can be coupled through -# the ESMF superstructure layer. -${gm2command} ${gm2mods} ${gm2optfile} ${gm2adoptfile} ${gm2standarddirs} -make depend -make small_f - -# Copy the scripts from the downloa directory making platform specific mods -# along the way. -foreach f ( ../mytools/* ) - if ( -f $f ) then - cp $f . - cat $f | sed s'||'${TCSH_PATH}'|g' > temp.$$ - mv temp.$$ ${f:t} - chmod +x ${f:t} - endif -end -./mkmod.sh ocn +# +# Build individual component core code +./build_mitgcm_org_ocn.sh