Changeset 2621


Ignore:
Timestamp:
Jan 19, 2022, 6:12:03 PM (3 years ago)
Author:
bclmd
Message:

add aceleration factor and remove the option for fixed temperature (not fully correct)

File:
1 edited

Legend:

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

    r2618 r2621  
    137137      real pctsrf_sic(1)
    138138
    139       logical fixed_temperature, accelerate_temperature
     139!     added by BC to accelerate convergence
     140      logical accelerate_temperature
     141      real factor_acceleration
    140142
    141143!     added by AS to avoid the use of adv trac common
     
    596598      write(*,*)" accelerate_temperature = ",accelerate_temperature
    597599
    598       write(*,*)"no thermal evolution?"
    599       fixed_temperature=.false.
    600       call getin("fixed_temperature",fixed_temperature)
    601       write(*,*)" fixed_temperature = ",fixed_temperature
     600      write(*,*)"factor for temperature acceleration"
     601      factor_acceleration=1.0
     602      call getin("factor_acceleration",factor_acceleration)
     603      write(*,*)" factor_acceleration = ",factor_acceleration
     604
     605
    602606
    603607c
     
    10271031           u(ilayer)=u(ilayer)+dtphys*du(ilayer)
    10281032           v(ilayer)=v(ilayer)+dtphys*dv(ilayer)
    1029            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
     1033           if(accelerate_temperature) then
     1034             temp(ilayer)=temp(ilayer)+dtphys*dtemp(ilayer) *
     1035     &         max(1.0,play(ilayer)*1e-5)**factor_acceleration
    10351036           else
    10361037             temp(ilayer)=temp(ilayer)+dtphys*dtemp(ilayer)
Note: See TracChangeset for help on using the changeset viewer.