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

Contents of /MITgcm_contrib/ESMF/global_ocean.128x64x15/build_mitgcm_org_ocn.sh

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


Revision 1.3 - (show annotations) (download) (as text)
Sat Mar 27 22:50:10 2004 UTC (21 years, 4 months ago) by cnh
Branch: MAIN
CVS Tags: adoption_1_0_pre_A, HEAD
Changes since 1.2: +20 -16 lines
File MIME type: application/x-sh
Fixes to do build of a variety of PE sizes

1 #!/bin/csh -f
2 #
3 # Script to build ESMF component libraries for MITgcm ocean 15L.
4 #
5 source mytools/comp_profile.BASE
6 source mytools/comp_profile.${COMP_PROF}
7
8 #
9 # Build individual component core code
10 #
11 # MITgcm ocn
12 # ==========
13 foreach PE ( $pesizelist )
14 cp code/SIZE.h.${PE}pe code/SIZE.h
15 cd run
16 if ( -f Makefile ) then
17 make Clean
18 endif
19
20 # ESMF component build. Creates an ESMF component that can be coupled through
21 # the ESMF superstructure layer.
22 ${gm2command} ${gm2mods} ${gm2optfile} ${gm2adoptfile}
23 make depend
24 make small_f
25
26 # Copy the scripts from the download directory making platform specific mods
27 # along the way.
28 foreach f ( ../mytools/* )
29 if ( -f $f ) then
30 cp $f .
31 cat $f | sed s'|<TCSH_PATH>|'${TCSH_PATH}'|g' > temp.$$
32 mv temp.$$ ${f:t}
33 chmod +x ${f:t}
34 endif
35 end
36 ./mkmod.sh ocn
37
38 # Copy products to application build library and include directories
39 if ( ! -d ${APPLIB_PATH}${PE}pe ) then
40 mkdir -p ${APPLIB_PATH}/${PE}pe
41 endif
42 if ( ! -d ${APPF90MOD_PATH}${PE}pe ) then
43 mkdir -p ${APPF90MOD_PATH}/${PE}pe
44 endif
45 if ( ! -d ${APPOBJ_PATH}${PE}pe ) then
46 mkdir -p ${APPOBJ_PATH}/${PE}pe
47 endif
48 if ( ! -d ${APPINC_PATH}${PE}pe ) then
49 mkdir -p ${APPINC_PATH}/${PE}pe
50 endif
51 if ( ! -d ${APPEXE_PATH}${PE}pe ) then
52 mkdir -p ${APPEXE_PATH}/${PE}pe
53 endif
54 cp mmout/*.a ${APPLIB_PATH}/${PE}pe
55 cp mmout/*.mod ${APPF90MOD_PATH}/${PE}pe
56 cp mmout/*.o ${APPOBJ_PATH}/${PE}pe
57 cp mmout/*.h ${APPINC_PATH}/${PE}pe
58 cd ..
59 end

  ViewVC Help
Powered by ViewVC 1.1.22