/[MITgcm]/MITgcm_contrib/ESMF/interface_test/build.sh
ViewVC logotype

Diff of /MITgcm_contrib/ESMF/interface_test/build.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.6 by cnh, Sun Feb 22 01:13:32 2004 UTC revision 1.7 by cnh, Fri Feb 27 02:36:42 2004 UTC
# Line 1  Line 1 
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
# Line 8  setenv COMP_PROF  blackforest Line 8  setenv COMP_PROF  blackforest
8  source mytools/comp_profile.BASE  source mytools/comp_profile.BASE
9  source mytools/comp_profile.${COMP_PROF}  source mytools/comp_profile.${COMP_PROF}
10  setenv TCSH_PATH  `which tcsh`  setenv TCSH_PATH  `which tcsh`
11  cd run  setenv APPLIB_PATH    ${BUILDROOT}/app/lib
12  if ( -f Makefile ) then  setenv APPF90MOD_PATH ${BUILDROOT}/app/f90mod
13   make Clean  setenv APPOBJ_PATH    ${BUILDROOT}/app/obj
14  endif  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 MITgcm ocean component core code
19  ${gm2command} ${gm2mods} ${gm2optfile} ${gm2adoptfile} ${gm2standarddirs}  ./build_mitgcm_org_ocn.sh
20  make depend  cd ${BUILDROOT}
21  make small_f  
22    # Build ESMF component driver
23    cd esmf_top/ocn_driver
24    ./comp1.sh
25    cd ${BUILDROOT}
26    
27  # Copy the scripts from the downloa directory making platform specific mods  # Build ocean only ESMF application
28  # along the way.  cd esmf_top/ocn_only_app
29  foreach f ( ../mytools/* )  ./comp2.sh
30   if ( -f $f ) then  cd ${BUILDROOT}
   cp $f .  
   cat $f | sed s'|<TCSH_PATH>|'${TCSH_PATH}'|g' > temp.$$  
   mv temp.$$ ${f:t}  
   chmod +x ${f:t}  
  endif  
 end  
 ./mkmod.sh ocn  

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.22