/[MITgcm]/MITgcm_contrib/gael/verification/setup_these_exps.csh
ViewVC logotype

Diff of /MITgcm_contrib/gael/verification/setup_these_exps.csh

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

revision 1.1 by gforget, Fri Aug 24 16:44:29 2012 UTC revision 1.3 by gforget, Thu Oct 4 02:33:57 2012 UTC
# Line 1  Line 1 
1  #!/bin/csh -f  #!/bin/csh -f
2  #  #
3  #to setup the experiments (cs32 and llc90 core run) you want to follow these steps :  
4  #  mkdir global_oce_tmp_download
5    cd global_oce_tmp_download
6    
7  #1) from MITgcm/verification, get global_oce_cs32 and  #1) from MITgcm/verification, get global_oce_cs32 and
8  #     global_oce_llc90 using cvs checkout, as  #     global_oce_llc90 using cvs checkout, as
9  #       cvs co -d global_oce_cs32 MITgcm_contrib/gael/verification/global_oce_cs32  cvs co MITgcm_contrib/gael/verification/global_oce_cs32
10  #       cvs co -d global_oce_llc90 MITgcm_contrib/gael/verification/global_oce_llc90  cvs co MITgcm_contrib/gael/verification/global_oce_llc90
 #     and the present script, as  
 #       cvs co -d . MITgcm_contrib/gael/verification/setup_these_exps.csh  
 #2) still in MITgcm/verification, execute the present shell  
 #     script to get input binaries and link code directories  
 #       source ./setup_these_exps.csh  
 #3) exectute MITgcm with testreport. Two examples.  
 #     To run the cs32 test on one cpu :  
 #       ./testreport -t global_oce_cs32  
 #     And to run the llc90 test on 12 cpus, using mpi  
 #       ./testreport -of=../tools/build_options/linux_amd64_gfortran -MPI 12 -command 'mpirun -np TR_NPROC ./mitgcmuv' -t global_oce_llc90  
 #4) if you have access to taf then you can run the adjoints as e.g.  
 #       ./testreport -ad -t global_oce_cs32  
 #       ./testreport -of=../tools/build_options/linux_amd64_gfortran -MPI 12 -command 'mpirun -np TR_NPROC ./mitgcmuv_ad' -ad -t global_oce_llc90  
 #5) you will need to provide the content of global_oce_llc90/input_fields/core2  
 #     and ecmwf, ecco_v4 for those global_oce_llc90 sub-experiments to also run  
11    
12    mv MITgcm_contrib/gael/verification/global_oce_cs32 .
13    mv MITgcm_contrib/gael/verification/global_oce_llc90 .
14    
15    #2) get the input binary files for cs32
16    wget http://mitgcm.org/~gforget/global_oce_input_fields.tar.gz
17    gunzip global_oce_input_fields.tar.gz
18    tar xf global_oce_input_fields.tar
19    \rm -f global_oce_input_fields.tar
20    
21    #3) link code to code_ad (as testreport expects code_ad to exist)
22    cd global_oce_llc90
23    ln -s code code_ad
24    cd ..
25  cd global_oce_cs32  cd global_oce_cs32
 wget http://mitgcm.org/~gforget/input_fields_cs32.tar  
 tar xf input_fields_cs32.tar  
 \rm -f input_fields_cs32.tar  
26  ln -s code code_ad  ln -s code code_ad
27  cd ..  cd ..
28    
29  cd global_oce_llc90  cd ..
 wget http://mitgcm.org/~gforget/input_fields_llc90.tar  
 tar xf input_fields_llc90.tar  
 \rm -f input_fields_llc90.tar  
 ln -s code code_ad  
 cd code  
 ln -s ../../global_oce_cs32/code/* .  
 cd ../..  
30    

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

  ViewVC Help
Powered by ViewVC 1.1.22