Ignore:
Timestamp:
May 9, 2012, 3:14:48 PM (12 years ago)
Author:
lguez
Message:

Created logical variable "pressure_exner". "pressure_exner" replaces
"disvert_type" to choose between calls to "exner_hyb" and
"exner_milieu". If "pressure_exner" is true, pressure inside layers is
computed from Exner function ("exner_hyb"), else it is the mean of
pressure values at interfaces ("exner_milieu"). "disvert_type" now
only chooses between "disvert" and "disvert_noterre". Default value
for "pressure_exner" is true if "disvert_type" equals 1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/dyn3d/leapfrog.F

    r1616 r1625  
    212212      dq(:,:,:)=0.
    213213      CALL pression ( ip1jmp1, ap, bp, ps, p       )
    214       if (disvert_type==1) then
     214      if (pressure_exner) then
    215215        CALL exner_hyb( ip1jmp1, ps, p,alpha,beta, pks, pk, pkf )
    216       else ! we assume that we are in the disvert_type==2 case
     216      else
    217217        CALL exner_milieu( ip1jmp1, ps, p, beta, pks, pk, pkf )
    218218      endif
     
    369369
    370370         CALL pression (  ip1jmp1, ap, bp, ps,  p      )
    371          if (disvert_type==1) then
     371         if (pressure_exner) then
    372372           CALL exner_hyb(  ip1jmp1, ps, p,alpha,beta,pks, pk, pkf )
    373          else ! we assume that we are in the disvert_type==2 case
     373         else
    374374           CALL exner_milieu( ip1jmp1, ps, p, beta, pks, pk, pkf )
    375375         endif
     
    485485
    486486        CALL pression ( ip1jmp1, ap, bp, ps, p                  )
    487         if (disvert_type==1) then
     487        if (pressure_exner) then
    488488          CALL exner_hyb( ip1jmp1, ps, p,alpha,beta, pks, pk, pkf )
    489         else ! we assume that we are in the disvert_type==2 case
     489        else
    490490          CALL exner_milieu( ip1jmp1, ps, p, beta, pks, pk, pkf )
    491491        endif
Note: See TracChangeset for help on using the changeset viewer.