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/dyn3d/leapfrog.F

    r1454 r1502  
    275275      ! Purely Matsuno time stepping
    276276         IF( MOD(itau,iconser) .EQ.0.AND.  forward    ) conser = .TRUE.
    277          IF( MOD(itau,idissip ).EQ.0.AND..NOT.forward ) apdiss = .TRUE.
     277         IF( MOD(itau,dissip_period ).EQ.0.AND..NOT.forward )
     278     s        apdiss = .TRUE.
    278279         IF( MOD(itau,iphysiq ).EQ.0.AND..NOT.forward
    279280     s          .and. iflag_phys.EQ.1                 ) apphys = .TRUE.
     
    281282      ! Leapfrog/Matsuno time stepping
    282283         IF( MOD(itau   ,iconser) .EQ. 0              ) conser = .TRUE.
    283          IF( MOD(itau+1,idissip)  .EQ. 0              ) apdiss = .TRUE.
     284         IF( MOD(itau+1,dissip_period).EQ.0 .AND. .NOT. forward )
     285     s        apdiss = .TRUE.
    284286         IF( MOD(itau+1,iphysiq).EQ.0.AND.iflag_phys.EQ.1) apphys=.TRUE.
    285287      END IF
Note: See TracChangeset for help on using the changeset viewer.