/[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.4 by cnh, Sun Feb 22 19:29:35 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
7  #setenv COMP_PROF  faulks  setenv COMP_PROF  faulks
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 individual component core code
19  ${gm2command} ${gm2mods} ${gm2optfile} ${gm2adoptfile} ${gm2standarddirs}  ./build_mitgcm_org_ocn.sh
 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>|'${TCSH_PATH}'|g' > temp.$$  
   mv temp.$$ ${f:t}  
   chmod +x ${f:t}  
  endif  
 end  
 ./mkmod.sh ocn  

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

  ViewVC Help
Powered by ViewVC 1.1.22