Ignore:
Timestamp:
Mar 2, 2012, 9:53:27 AM (13 years ago)
Author:
emillour
Message:

Mars GCM:

bug fix in "aeronomars/moldiff_red.F90" (wrong mmol array size in included

subroutine) + adapted extreme limit test for H to altitudes of ~4000km
(compatble with 50 layer model).

bug fix in "nirco2abs.F" index of "co2" and "o" tracers were hard coded as

1 and 3!

updates from FGG of euvheat.F, callkeys.h and inifis.F to have the

"euveff" parameter read from callphys.def

EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/tabfi.F

    r224 r552  
    8181c -----------------------
    8282      INTEGER setname, cluvdb, getdat
    83 
    84       INTEGER lnblnk
    8583
    8684c-----------------------------------------------------------------------
     
    296294 
    297295 
    298       do while(modif(1:1).ne.'hello')
     296      do ! neverending loop
    299297        write(*,*)
    300298        write(*,*)
     
    306304 
    307305        write(*,*)
    308         write(*,*) modif(1:lnblnk(modif)) , ' : '
    309 
    310         if (modif(1:lnblnk(modif)) .eq. 'day_ini') then
     306        write(*,*) trim(modif) , ' : '
     307
     308        if (trim(modif) .eq. 'day_ini') then
    311309          write(*,*) 'current value:',day_ini
    312310          write(*,*) 'enter new value:'
     
    316314          write(*,*) 'day_ini (new value):',day_ini
    317315
    318         else if (modif(1:lnblnk(modif)) .eq. 'z0') then
     316        else if (trim(modif) .eq. 'z0') then
    319317          write(*,*) 'current value (m):',z0_default
    320318          write(*,*) 'enter new value (m):'
     
    324322          write(*,*) ' z0 (new value):',z0_default
    325323
    326         else if (modif(1:lnblnk(modif)) .eq. 'emin_turb') then
     324        else if (trim(modif) .eq. 'emin_turb') then
    327325          write(*,*) 'current value:',emin_turb
    328326          write(*,*) 'enter new value:'
     
    332330          write(*,*) ' emin_turb (new value):',emin_turb
    333331
    334         else if (modif(1:lnblnk(modif)) .eq. 'lmixmin') then
     332        else if (trim(modif) .eq. 'lmixmin') then
    335333          write(*,*) 'current value:',lmixmin
    336334          write(*,*) 'enter new value:'
     
    340338          write(*,*) ' lmixmin (new value):',lmixmin
    341339
    342         else if (modif(1:lnblnk(modif)) .eq. 'emissiv') then
     340        else if (trim(modif) .eq. 'emissiv') then
    343341          write(*,*) 'current value:',emissiv
    344342          write(*,*) 'enter new value:'
     
    348346          write(*,*) ' emissiv (new value):',emissiv
    349347
    350         else if (modif(1:lnblnk(modif)) .eq. 'emisice') then
     348        else if (trim(modif) .eq. 'emisice') then
    351349          write(*,*) 'current value emisice(1) North:',emisice(1)
    352350          write(*,*) 'enter new value:'
     
    364362          write(*,*) ' emisice(2) (new value):',emisice(2)
    365363
    366         else if (modif(1:lnblnk(modif)) .eq. 'albedice') then
     364        else if (trim(modif) .eq. 'albedice') then
    367365          write(*,*) 'current value albedice(1) North:',albedice(1)
    368366          write(*,*) 'enter new value:'
     
    380378          write(*,*) ' albedice(2) (new value):',albedice(2)
    381379
    382         else if (modif(1:lnblnk(modif)) .eq. 'iceradius') then
     380        else if (trim(modif) .eq. 'iceradius') then
    383381          write(*,*) 'current value iceradius(1) North:',iceradius(1)
    384382          write(*,*) 'enter new value:'
     
    396394          write(*,*) ' iceradius(2) (new value):',iceradius(2)
    397395
    398         else if (modif(1:lnblnk(modif)) .eq. 'dtemisice') then
     396        else if (trim(modif) .eq. 'dtemisice') then
    399397          write(*,*) 'current value dtemisice(1) North:',dtemisice(1)
    400398          write(*,*) 'enter new value:'
     
    412410          write(*,*) ' dtemisice(2) (new value):',dtemisice(2)
    413411
    414         else if (modif(1:lnblnk(modif)) .eq. 'tauvis') then
     412        else if (trim(modif) .eq. 'tauvis') then
    415413          write(*,*) 'current value:',tauvis
    416414          write(*,*) 'enter new value:'
     
    420418          write(*,*) ' tauvis (new value):',tauvis
    421419
    422         else if (modif(1:lnblnk(modif)) .eq. 'obliquit') then
     420        else if (trim(modif) .eq. 'obliquit') then
    423421          write(*,*) 'current value:',obliquit
    424422          write(*,*) 'obliquit should be 25.19 on current Mars'
     
    429427          write(*,*) ' obliquit (new value):',obliquit
    430428
    431         else if (modif(1:lnblnk(modif)) .eq. 'peri_day') then
     429        else if (trim(modif) .eq. 'peri_day') then
    432430          write(*,*) 'current value:',peri_day
    433431          write(*,*) 'peri_day should be 485 on current Mars'
     
    438436          write(*,*) ' peri_day (new value):',peri_day
    439437
    440         else if (modif(1:lnblnk(modif)) .eq. 'periheli') then
     438        else if (trim(modif) .eq. 'periheli') then
    441439          write(*,*) 'current value:',periheli
    442440          write(*,*) 'perihelion should be 206.66 on current Mars'
     
    447445          write(*,*) ' periheli (new value):',periheli
    448446 
    449         else if (modif(1:lnblnk(modif)) .eq. 'aphelie') then
     447        else if (trim(modif) .eq. 'aphelie') then
    450448          write(*,*) 'current value:',aphelie
    451449          write(*,*) 'aphelion should be 249.22 on current Mars'
     
    456454          write(*,*) ' aphelie (new value):',aphelie
    457455 
    458         else if (modif(1:lnblnk(modif)) .eq. 'volcapa') then
     456        else if (trim(modif) .eq. 'volcapa') then
    459457          write(*,*) 'current value:',volcapa
    460458          write(*,*) 'enter new value:'
     
    465463 
    466464        endif
    467       enddo ! of do while(modif(1:1).ne.'hello')
     465      enddo ! of do ! neverending loop
    468466
    469467 999  continue
Note: See TracChangeset for help on using the changeset viewer.