Changeset 3075


Ignore:
Timestamp:
Oct 6, 2023, 4:48:17 PM (14 months ago)
Author:
jnaar
Message:

Added coefficient in improvedclouds (adapt_ts subroutine) to ensure that the computed number of subtimestep, as a integer subdivision of ptimestep, is properly scaled to the chosen timestep (scaled from standard iphysiq=5)

Location:
trunk/LMDZ.MARS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/changelog.txt

    r3074 r3075  
    42454245== 06/10/2023 == JBC
    42464246Transformation of 'writerestart1D' into module.
     4247
     4248== 06/10/2023 == JN
     4249Bugfix : adaptative timestep now is insensitive to ptimestep
  • trunk/LMDZ.MARS/libf/phymars/improvedclouds_mod.F

    r3061 r3075  
    738738      real,intent(in) :: potcond ! condensible vapor / sublimable ice(kg/kg)
    739739      real :: alpha, beta ! Coefficients for power law
     740      real :: defstep,coef ! Default ptimestep of 7.5 mins (iphysiq=5)
    740741      integer,intent(out) :: zimicro ! number of ptimestep division
    741742
     743c      Default ptimestep : defstep (7.5 mins)
     744       defstep=88775.*5./960.
     745       coef=ptimestep/defstep
    742746c      Conservative coefficients :
    743747       alpha=1.81846504e+11
    744748       beta=1.54550140e+00
    745        zimicro=ceiling(min(max(alpha*abs(potcond)**beta,5.),7000.))
     749       zimicro=ceiling(min(max(coef*alpha*abs(potcond)**beta,5.),7000.))
    746750
    747751      END SUBROUTINE adapt_imicro
Note: See TracChangeset for help on using the changeset viewer.