2013年11月5日火曜日

Getting there... progress in gotm-git set-up (90% done)

So basically, the namelist files from gotm-4.0.0 test cases cannot be used in the developer's version, which is 4.1.0 currently, because they've added extra parameters in namelist. For example, you can compare the airsea.F90 file between the two versions:

gotm-4.0.0/src/airsea/airsea.F90

! !LOCAL VARIABLES:
   namelist /airsea/ calc_fluxes, &
                     meteo_file, &
                     wet_mode, &
                     heat_method, &
                     const_swr,const_heat, &
                     heatflux_file, &
                     momentum_method, &
                     const_tx,const_ty, &
                     momentumflux_file, &
                     p_e_method,const_p_e,p_e_flux_file, &
                     sst_method, sst_file, &
                     sss_method, sss_file

GOTM/gotm-git/src/airsea/airsea.F90

! !LOCAL VARIABLES:
   namelist /airsea/ calc_fluxes, &
                     fluxes_method, &
                     back_radiation_method, &
                     meteo_file, &
                     wind_factor, &
                     hum_method, &
                     heat_method, &
                     rain_impact, &
                     calc_evaporation, &
                     swr_method,const_swr,swr_file,swr_factor, &
                     const_heat, &
                     heatflux_file, &
                     momentum_method, &
                     const_tx,const_ty, &
                     momentumflux_file, &
                     precip_method,const_precip,precip_file,precip_factor,&
                     sst_method, sst_file, &
                     sss_method, sss_file, &
                     ssuv_method

Clearly, more parameters are added in the latter file. Therefore, I cannot copy and paste the namelist files from gotm-4.0.0 to gotm-git.

I found the thread that had the same problem as mine: https://groups.google.com/d/msg/gotm-users/upXzPAq0S8A/MSFggrFvaGwJ

The tricky part was to understand that, in the newer version (4.1.0), namelist files are generated using 'make' command within the specific test case of interest according to: https://groups.google.com/d/msg/gotm-users/2DeMk6R38uo/sHqA1URVmcoJ

By following this instruction, I get the following error after executing:

make run_all

Generating input files for: kepsilon

ln -sf kepsilon.xml channel.xml && make namelist && make run && mv channel.nc kepsilon.nc && mv log.channel log.kepsilon.channel
make[1]: Entering directory `/HOME/hakase/GOTM/gotm-git/gotm-cases/channel'
editscenario.py --skipvalidation -e nml --schemadir=/HOME/hakase/GOTM/gotm-git/gui.py/schemas/scenario/ channel.xml . --targetversion=gotm-4.1.0
make[1]: editscenario.py: Command not found
make[1]: *** [namelist] Error 127
make[1]: Leaving directory `/HOME/hakase/GOTM/gotm-git/gotm-cases/channel'
make: *** [kepsilon] Error 2

The error first tells me that my computer does not recognize "editscenario.py" command. In the later post of the same thread (https://groups.google.com/d/msg/gotm-users/2DeMk6R38uo/nCQjB-tHAcYJ), I 'git clone' the command (or the python file), then got the following error:

~$ git clone git://bbh.homelinux.net/editscenario
Cloning into 'editscenario'...
fatal: unable to connect to bbh.homelinux.net:
bbh.homelinux.net: Name or service not known

According to this thread, the location of 'editscenario' has been moved: https://groups.google.com/d/msg/getm-users/QB5vUPR6kYA/Rd7w9yjXKeYJ

~$ git clone git://git.bolding-burchard.com/editscenario editscenario
Cloning into 'editscenario'...
remote: Counting objects: 8, done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 8 (delta 2), reused 0 (delta 0)
Receiving objects: 100% (8/8), 5.42 KiB, done.
Resolving deltas: 100% (2/2), done.

Alright, it works. I downloaded 'editscenario'.

Make a symbolic link to 'editscenario.py' in bin file, following: https://groups.google.com/d/msg/gotm-users/2DeMk6R38uo/nCQjB-tHAcYJ

This is where I stopped for today.

0 件のコメント:

コメントを投稿