/[MITgcm]/MITgcm_contrib/ESMF/global_ocean.128x64x15/build.sh
ViewVC logotype

Diff of /MITgcm_contrib/ESMF/global_ocean.128x64x15/build.sh

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

revision 1.3 by cnh, Sun Feb 22 02:56:19 2004 UTC revision 1.7 by cnh, Sun Feb 29 17:04:37 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  GFDL_HPCS
7  #setenv COMP_PROF  faulks  #setenv COMP_PROF  blackforest
8    setenv COMP_PROF  faulks
9  source mytools/comp_profile.BASE  source mytools/comp_profile.BASE
10  source mytools/comp_profile.${COMP_PROF}  source mytools/comp_profile.${COMP_PROF}
11  setenv TCSH_PATH  `which tcsh`  setenv TCSH_PATH  `which tcsh`
12  cd run  setenv APPLIB_PATH    ${BUILDROOT}/app/lib
13  if ( -f Makefile ) then  setenv APPF90MOD_PATH ${BUILDROOT}/app/f90mod
14   make Clean  setenv APPOBJ_PATH    ${BUILDROOT}/app/obj
15  endif  setenv APPINC_PATH    ${BUILDROOT}/app/inc
16    setenv APPEXE_PATH    ${BUILDROOT}/app/exe
17  # ESMF component build. Creates an ESMF component that can be coupled through  
18  # the ESMF superstructure layer.  #
19  ${gm2command} ${gm2mods} ${gm2optfile} ${gm2adoptfile} ${gm2standarddirs}  # Build MITgcm OCN computational code
20  make depend  ##./build_mitgcm_org_ocn.sh
21  make small_f  ##cd ${BUILDROOT}
22    
23  # Copy the scripts from the downloa directory making platform specific mods  #
24  # along the way.  # Build combined CAM stub computational and ESMF component interface layer
25  foreach f ( ../mytools/* )  cd esmf_top/cam_stub
26   if ( -f $f ) then  ./comp1.sh
27    cp $f .  cd ${BUILDROOT}
28    cat $f | sed s'|<TCSH_PATH>|'${TCSH_PATH}'|g' > temp.$$  
29    mv temp.$$ ${f:t}  #
30    chmod +x ${f:t}  # Build ESMF component interface layer for the MITgcm OCN ESMF component
31   endif  cd esmf_top/ocn_driver
32  end  ./comp1.sh
33  ./mkmod.sh ocn  cd ${BUILDROOT}
34    
35    #
36    # Build combined CAM stub computational and ESMF component interface layer
37    cd esmf_top/mitgcm_ocn2cam
38    ./comp1.sh
39    cd ${BUILDROOT}
40    
41    #
42    # Build the composition layer and executable for the ocean only ESMF application
43    cd esmf_top/ocn_only_app
44    ./comp2.sh
45    cd ${BUILDROOT}
46    
47    #
48    # Build the composition layer and executable for the ocean+CAM ESMF application
49    cd esmf_top/cam_stub-mitgcm_ocn_app
50    ./comp2.sh
51    cd ${BUILDROOT}

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

  ViewVC Help
Powered by ViewVC 1.1.22