Ignore:
Timestamp:
Mar 21, 2011, 5:07:54 PM (14 years ago)
Author:
jghattas
Message:

Modifications for variable idissip :

  • Changed name of variable idissip to dissip_period everywhere to be compatible with old .def files.
  • This variable was before read from physiq.def but the value was overwritten by a calculation in inidissip. Now, if dissip_period=0 calculation is done as before(default). Else the value from physiq.def is used directly.
  • leapfrog : added "AND NOT forward" at line 284 (dyn3d) and line 363(dyn3dpar) necessare if dissip_period not a multiple by iperiod.
  • iniconst : removed calculation of dtdiss (calculation done in inidissip)

FC, JG

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/dyn3dpar/inidissip.F90

    r1492 r1502  
    1111  !   -------------
    1212
    13   USE control_mod, only : idissip,iperiod
     13  USE control_mod, only : dissip_period,iperiod
    1414
    1515  IMPLICIT NONE
     
    215215  ENDDO
    216216
    217   write(lunout,*)'inidissip: tetamin dtvr iperiod ',tetamin,dtvr,iperiod
    218   idissip = INT( tetamin/( 2.*dtvr*iperiod) ) * iperiod
    219   write(lunout,*)'inidissip: tetamin idissip ',tetamin,idissip
    220   idissip = MAX(iperiod,idissip)
    221   dtdiss  = idissip * dtvr
    222   write(lunout,*)'inidissip: idissip dtdiss ',idissip,dtdiss
     217  ! If dissip_period=0 calculate value for dissipation period, else keep value read from gcm.def
     218  IF (dissip_period == 0) THEN
     219     dissip_period = INT( tetamin/( 2.*dtvr*iperiod) ) * iperiod
     220     write(lunout,*)'inidissip: tetamin dtvr iperiod dissip_period(intermed) ',tetamin,dtvr,iperiod,dissip_period
     221     dissip_period = MAX(iperiod,dissip_period)
     222  END IF
     223
     224  dtdiss  = dissip_period * dtvr
     225  write(lunout,*)'inidissip: dissip_period=',dissip_period,' dtdiss=',dtdiss,' dtvr=',dtvr
    223226
    224227  DO l = 1,llm
Note: See TracChangeset for help on using the changeset viewer.