Changeset 2618


Ignore:
Timestamp:
Jan 19, 2022, 2:52:13 PM (3 years ago)
Author:
bclmd
Message:

options to fix the temperature or to accelerate the convergence

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phystd/dyn1d/rcm1d.F

    r2542 r2618  
    137137      real pctsrf_sic(1)
    138138
    139 
     139      logical fixed_temperature, accelerate_temperature
    140140
    141141!     added by AS to avoid the use of adv trac common
     
    590590      write(*,*)" specOLR = ",specOLR
    591591
     592c option for temperature evolution?
     593      write(*,*)"accelerate temperature?"
     594      accelerate_temperature=.false.
     595      call getin("accelerate_temperature",accelerate_temperature)
     596      write(*,*)" accelerate_temperature = ",accelerate_temperature
     597
     598      write(*,*)"no thermal evolution?"
     599      fixed_temperature=.false.
     600      call getin("fixed_temperature",fixed_temperature)
     601      write(*,*)" fixed_temperature = ",fixed_temperature
     602
    592603c
    593604c  pour le schema d'ondes de gravite
     
    10171028           v(ilayer)=v(ilayer)+dtphys*dv(ilayer)
    10181029           temp(ilayer)=temp(ilayer)+dtphys*dtemp(ilayer)
     1030           if(fixed_temperature) then
     1031             temp(ilayer)=temp(ilayer)
     1032           elseif(accelerate_temperature) then
     1033             temp(ilayer)=temp(ilayer)+
     1034     &              dtphys*dtemp(ilayer)*max(1.0,play(ilayer)*1e-5)**1.8
     1035           else
     1036             temp(ilayer)=temp(ilayer)+dtphys*dtemp(ilayer)
     1037           endif
    10191038        ENDDO
    10201039
Note: See TracChangeset for help on using the changeset viewer.