Changeset 1849


Ignore:
Timestamp:
Dec 12, 2017, 11:28:55 AM (7 years ago)
Author:
jvatant
Message:

Fixed (?) some weird dark magic incoherence
between dynetat0 and newstart ...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.TITAN/libf/dynphy_lonlat/phytitan/newstart.F

    r1815 r1849  
    368368c-----------------------------------------------------------------------
    369369
    370       kappa = tab_cntrl(9)
    371       etot0 = tab_cntrl(12)
    372       ptot0 = tab_cntrl(13)
    373       ztot0 = tab_cntrl(14)
    374       stot0 = tab_cntrl(15)
    375       ang0 = tab_cntrl(16)
     370      ! JVO 2017 :  For this part it seems to need a shift of 1 in the
     371      ! tab_cntrl indexes compared to dynetat0 ... I introduced it to have
     372      ! correct outputs of newstart but I don't really understand why ...
     373
     374      kappa = tab_cntrl(10)
     375      etot0 = tab_cntrl(13)
     376      ptot0 = tab_cntrl(14)
     377      ztot0 = tab_cntrl(15)
     378      stot0 = tab_cntrl(16)
     379      ang0 = tab_cntrl(17)
    376380      write(*,*) "Newstart: kappa,etot0,ptot0,ztot0,stot0,ang0"
    377381      write(*,*) kappa,etot0,ptot0,ztot0,stot0,ang0
    378382
    379383      ! for vertical coordinate
    380       preff=tab_cntrl(18) ! reference surface pressure
    381       pa=tab_cntrl(17)  ! reference pressure at which coord is purely pressure
     384      preff=tab_cntrl(19) ! reference surface pressure
     385      pa=tab_cntrl(18)  ! reference pressure at which coord is purely pressure
    382386      !NB: in start_archive files tab_cntrl(17)=tab_cntrl(18)=0
    383387      write(*,*) "Newstart: preff=",preff," pa=",pa
     
    389393      if (yes.eq.'y') then
    390394        write(*,*)"New value of reference surface pressure preff?"
    391         write(*,*)"   (for Mars, typically preff=610)"
     395        write(*,*)"   (for Titan, typically preff=140000)"
    392396        read(*,*) preff
    393397        write(*,*)"New value of reference pressure pa for purely"
    394398        write(*,*)"pressure levels (for hybrid coordinates)?"
    395         write(*,*)"   (for Mars, typically pa=20)"
     399        write(*,*)"   (for Titan, typically pa=10000)"
    396400        read(*,*) pa
    397401      endif
Note: See TracChangeset for help on using the changeset viewer.