Preparing the model

1.) Decide which routine for the Fast-Fourier-Transform (FFT) shall be used, i.e., go to dclib and copy appropriate routine to intend.f. (This step can be skipped if intend.f contains already the appropriate FFT routine.)

at the moment the following options are available:
cp intend_*.f intend.f where

* = std         for runs with ordinary Fourier-Transform
* = 2d          for runs with zonally symmetric atmospheres
* = hp          for runs on hp-platforms
* = nag        for runs on platforms where the NAG library is available

2.) Set the appropriate record length depending on the platform, i.e. change nrec in the routines Main.f, Main_ex and Main_std in dclib as well as in the routines inidc.f (to produce new initial conditions) and zobu.f (for zonally averaged diagnostics). (This step can be skipped if the appropriate nrec has been chosen for the previous run.)

3.) Choose resolution of the horizontal grid and the number of vertical levels, i.e., go to dclib and edit the file RESOLUTION. (This step can be skipped if appropriate resolution has been already chosen for the previous run.)

change the parameters defined by parameter(nt=31,levels=30,irie=96,kgau=48)

nt : maximum total wave number
levels : number of vertical levels
irie : dimension of the zonal grid
kgau : number of Gaussian latitudes

Comments:
- for runs with zonally symmetric atmospheres choose irie = 1
- irie and kgau should be preferably multiples of small prime numbers, i.e. multiples of 2 (Fast-Fourier-Transform)
- irie and nt should be typically irie >= 3*nt+1
- irie and kgau should be typically related via kgau = irie/2 in 3d- simulations

4.) Compile and execute the routine gau3cal.f in dclib
(This step can be skipped if apropriate resolution has been already
choosen for the previous run.)

e.g. f90 gau3cal.f ; a.out

(produce make option: make -newgausslat which compiles and executes gau3cal.f and cleans)

5.) Produce the executable kmcm.exe by calling make in the project directory

 Seitenanfang