Thursday, June 5, 2014

Run GSI tag version on badger

Here is how to run a GSI tag version on badger:

Part 1: how to compile GSI
1. Make a branch out of GSI tag version REL-5.0.0
$ svn copy https://svnemc.ncep.noaa.gov/projects/gsi/tags/REL-5.0.0   https://svnemc.ncep.noaa.gov/projects/gsi/branches/NESDIS-JCSDA/users/dxu/gsi_tag_rel-5.0.0   -m "branch from tag version REL-5.0.0"

2. Check out my own tag version. Remember to use flag "--ignore-externals" to NOT check out CRTM, which has its own trunk and is just a link within GSI trunk.
$ cd /data/dxu
$ svn co --ignore-externals https://svnemc.ncep.noaa.gov/projects/gsi/branches/NESDIS-JCSDA/users/dxu/gsi_tag_rel-5.0.0

3. Copy Makefile.conf from Krishna's version of gsi(modified for s4).
  (Krishna checked out https://svnemc.ncep.noaa.gov/projects/gsi/tags/REL-5.0.0 )
 This Makefile.conf includes information about CRTM and libraries setting.
$ cp  /data/kkumar/nwprod_v2014/REL-5.0.0/src/Makefile.conf .

4. Compile my own tag GSI version to create the only one executable file: global_gsi (32M bytes)
$ cd /data/dxu/gsi_tag_rel-5.0.0
$ cd src
$ make -f Makefile


It should create an executable file global_gsi under "src" directory.
-rwxrwxr-x 1 dxu domain users 32M Jun  5 15:19 global_gsi


Part 2: how to run GSI
1. Copy a sample script from Krishna $  cd /data/dxu/iat/gsi
$ cp /data/kkumar/for_deyong/standalone_gsi62_test.sh  . 
2. Save it locally.
$ cp standalone_gsi62_test.sh   standalone_gsi62_test_using_my_gsi.sh 
3. Modify file to customize (only two places need to be changed). 
$ vi   standalone_gsi62_test_using_my_gsi.sh 
   #  Create working directory /scratch5/dxu/tmp62/test_gsi62_standalone1.0.2_06052014 

   exp=test_gsi62_standalone1.0.2_06052014    
   # Point to GSI executable created in part 1. 
   gsipath=/data/dxu/gsi_tag_rel-5.0.0

4. Submit a job to run GSI
$  qsub standalone_gsi62_test_using_my_gsi.sh > running_gsi_0605.log 2> running_gsi_0605_err.log &

5. Check the job status
$ qstat 
6. Check GSI output 
$ cd /scratch5/dxu/tmp62/test_gsi62_standalone1.0.2_06052014
$ tf  stdout

 
 

No comments:

Post a Comment