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/dyn3dpar/leapfrog_p.F

    r1616 r1625  
    233233      dq(:,:,:)=0.
    234234      CALL pression ( ip1jmp1, ap, bp, ps, p       )
    235       if (disvert_type==1) then
     235      if (pressure_exner) then
    236236        CALL exner_hyb( ip1jmp1, ps, p,alpha,beta, pks, pk, pkf )
    237       else ! we assume that we are in the disvert_type==2 case
     237      else
    238238        CALL exner_milieu( ip1jmp1, ps, p, beta, pks, pk, pkf )
    239239      endif
     
    699699
    700700c$OMP BARRIER
    701          if (disvert_type==1) then
     701         if (pressure_exner) then
    702702           CALL exner_hyb_p(  ip1jmp1, ps, p,alpha,beta,pks, pk, pkf )
    703          else ! we assume that we are in the disvert_type==2 case
     703         else
    704704           CALL exner_milieu_p( ip1jmp1, ps, p, beta, pks, pk, pkf )
    705705         endif
     
    10481048        CALL pression_p ( ip1jmp1, ap, bp, ps, p                  )
    10491049c$OMP BARRIER
    1050         if (disvert_type==1) then
     1050        if (pressure_exner) then
    10511051          CALL exner_hyb_p( ip1jmp1, ps, p,alpha,beta, pks, pk, pkf )
    1052         else ! we assume that we are in the disvert_type==2 case
     1052        else
    10531053          CALL exner_milieu_p( ip1jmp1, ps, p, beta, pks, pk, pkf )
    10541054        endif
Note: See TracChangeset for help on using the changeset viewer.