Changeset 795 for trunk/LMDZ.MARS/libf


Ignore:
Timestamp:
Sep 25, 2012, 10:33:38 AM (12 years ago)
Author:
emillour
Message:

Mars GCM:

Minor improvement for running fractions of sols; enforce some rounding of

'Time' (ie: fraction of day) read from the start.nc file in order to limit
the accumultation of roundoffs from multiple runs.

EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/dyn3d/gcm.F

    r791 r795  
    149149
    150150      CALL defrun_new( 99, .TRUE. )
     151      ! in case time_0 (because of roundoffs) is close to zero,
     152      ! set it to zero to avoid roundoff propagation issues
     153      if ((time_0.gt.0.).and.(time_0.lt.(1./day_step))) then
     154        write(*,*)"GCM: In start.nc, time=",time_0
     155        write(*,*)"     but day_step=",day_step
     156        write(*,*)"     and 1./day_step=",1./day_step
     157        write(*,*)"     fix this drift by setting time=0"
     158        time_0=0.
     159      endif
    151160
    152161
Note: See TracChangeset for help on using the changeset viewer.