/[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.11 by cnh, Mon Mar 29 17:16:33 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  blackforest_withcam
8  #setenv COMP_PROF  faulks  #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_top  "1 2 4 8 16 32"
21  make small_f  setenv pesizelist_top  "16"
22    foreach pe ( $pesizelist_top )
23  # Copy the scripts from the downloa directory making platform specific mods  setenv pesizelist $pe
24  # along the way.  ./build_mitgcm_org_ocn.sh
25  foreach f ( ../mytools/* )  cd ${BUILDROOT}
26   if ( -f $f ) then  
27    cp $f .  #
28    cat $f | sed s'|<TCSH_PATH>|'${TCSH_PATH}'|g' > temp.$$  # Build combined CAM stub computational and ESMF component interface layer
29    mv temp.$$ ${f:t}  ###cd esmf_top/cam_stub
30    chmod +x ${f:t}  ###./comp1.sh
31   endif  ###cd ${BUILDROOT}
32    
33    #
34    # Build internal component interface layer for the MITgcm OCN ESMF component
35    ###cd esmf_top/ocn_internal_comp_interface
36    ###./comp1.sh
37    ###cd ${BUILDROOT}
38    
39    #
40    # Build ESMF component interface layer for the MITgcm OCN ESMF component
41    cd esmf_top/ocn_driver
42    ./comp1.sh
43    cd ${BUILDROOT}
44    
45    #
46    # Build combined CAM stub computational and ESMF component interface layer
47    ###cd esmf_top/mitgcm_ocn2cam
48    ###./comp1.sh
49    ###cd ${BUILDROOT}
50    
51    #
52    # Build the composition layer and executable for the ocean only ESMF application
53    ###cd esmf_top/ocn_only_app
54    ###./comp2.sh
55    ###cd ${BUILDROOT}
56    
57    #
58    # Build the composition layer and executable for the ocean+CAM ESMF application
59    ###cd esmf_top/cam_stub-mitgcm_ocn_app
60    ###./comp2.sh
61    ###cd ${BUILDROOT}
62  end  end
 ./mkmod.sh ocn  

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

  ViewVC Help
Powered by ViewVC 1.1.22