/[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.9 by cnh, Sun Mar 28 15:46:20 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  setenv pesizelist "1 2 4 8 16 32"
21  make small_f  ### setenv pesizelist "1 2 4 8 16 32"
22    ./build_mitgcm_org_ocn.sh
23  # Copy the scripts from the downloa directory making platform specific mods  cd ${BUILDROOT}
24  # along the way.  
25  foreach f ( ../mytools/* )  #
26   if ( -f $f ) then  # Build combined CAM stub computational and ESMF component interface layer
27    cp $f .  cd esmf_top/cam_stub
28    cat $f | sed s'|<TCSH_PATH>|'${TCSH_PATH}'|g' > temp.$$  ./comp1.sh
29    mv temp.$$ ${f:t}  cd ${BUILDROOT}
30    chmod +x ${f:t}  
31   endif  #
32  end  # Build ESMF component interface layer for the MITgcm OCN ESMF component
33  ./mkmod.sh ocn  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}

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

  ViewVC Help
Powered by ViewVC 1.1.22