| 1 |  | # $Header$ | 
| 2 |  | # $Name$ | 
| 3 |  |  | 
| 4 | # Code customization for MITgcm multi-component super-param runs with ESMF. | # Code customization for MITgcm multi-component super-param runs with ESMF. | 
| 5 | # ========================================================================= | # ========================================================================= | 
| 6 |  | #   works with ESMF version 3.0.0 | 
| 7 |  | #   works and has been tested with MITgcm checkpoint63m | 
| 8 |  |  | 
| 9 | # On aces compile on compute machine | # On aces compile on compute machine | 
| 10 | # e.g qsub -I -l walltime=08:00:00 -i nodes=1:ppn=2 -q long | # e.g qsub -I -l walltime=08:00:00 -i nodes=1:ppn=2 -q long | 
| 11 | # Check out latest MITgcm source code into directory MITgcm_HEAD_20061011 | # Check out latest MITgcm source code into directory MITgcm_HEAD | 
| 12 | cvs co -d MITgcm_HEAD_20061011 MITgcm | cvs co -P -d MITgcm_HEAD MITgcm | 
| 13 | # Add in prm stuff | # Add in prm stuff | 
| 14 | cd MITgcm_HEAD_20061011/verification | cd MITgcm_HEAD/verification | 
| 15 | cvs co -d prm MITgcm_contrib/PRM | cvs co -P -d prm MITgcm_contrib/PRM | 
|  | ## To check out from before I started playing with MAPL based components do |  | 
|  | # cvs co -r checkpoint58q_post -d MITgcm_checkpoint58q_post MITgcm |  | 
|  | # cd MITgcm_checkpoint58q_post/verification/ |  | 
|  | # cvs co -d prm MITgcm_contrib/PRM |  | 
|  | # cd prm |  | 
|  | # cvs update -A -D "2006-11-15" |  | 
| 16 |  |  | 
| 17 | # Setup makefiles etc... for prm | # Setup makefiles etc... for prm | 
| 18 | cd prm/multi_comp_setup/esmf_test/run | cd prm/multi_comp_setup/esmf_test/run | 
| 19 | # Make sure the following execute in bash shell and | # Make sure that mpich/compiler e.g. "module load mpich/intel" are set and | 
| 20 | # that mpich/compiler e.g. "module load mpich/intel" are | #   MITgcm optfile + ESMF path are set correctly in file "prm_site_config_file" | 
| 21 | # set | do_links | 
| 22 | source prm_site_config_file | do_genmake2 | 
| 23 | source do_links | # to generate MITgcm libs using "ieee" or "devel" optfile flags, | 
| 24 | source do_genmake2 | #    type instead: "do_genmake2 -ieee" or "do_genmake2 -devel" respectively. | 
| 25 |  |  | 
| 26 | # Build executables (still in directory prm/multi_comp_setup/esmf_test/run) | # Build executables (still in directory prm/multi_comp_setup/esmf_test/run) | 
| 27 | source do_make | do_make | 
| 28 |  | # note: options that are used to compile PRM F90 source files are hard-coded in: | 
| 29 |  | #    prm/build_scripts/makemake.sh through variable F90C_ARGS | 
| 30 |  |  | 
| 31 | # Run stuff (still in directory prm/multi_comp_setup/esmf_test/run) | # Run stuff (still in directory prm/multi_comp_setup/esmf_test/run) | 
| 32 | source mkpgfile > pgfile | mkpgfile | 
| 33 | source do_run | do_run | 
| 34 | # Tidy up (still in directory prm/multi_comp_setup/esmf_test/run) | # Tidy up (still in directory prm/multi_comp_setup/esmf_test/run) | 
| 35 | source do_clean | do_clean | 
| 36 |  |  | 
| 37 |  | #- Note(jmc): directories which are not used (just to keep development version): | 
| 38 |  | multi_comp_setup/comp_mitgcm/code_basic/hidden | 
| 39 |  | multi_comp_setup/comp_mitgcm/code_fancy | 
| 40 |  | multi_comp_setup/comp_mitgcm/build | 
| 41 |  | multi_comp_setup/multi_code | 
| 42 |  | multi_comp_setup/esmf_test/run/test_redist | 
| 43 |  |  | 
| 44 |  | #- Note(jmc): dir structure and source-code location: see file | 
| 45 |  | multi_comp_setup/doc/contents.txt | 
| 46 |  |  |