Changeset 795 for trunk


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

Location:
trunk/LMDZ.MARS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/README

    r791 r795  
    18061806  dynamics/physics cycles. The fraction of the sol that a (re)start.nc
    18071807  file corresponds to is (read)written as 'Time' in the file.
     1808
     1809== 25/09/2012 == EM
     1810>> Minor improvement for running fractions of sols; enforce some rounding of
     1811   'Time' (ie: fraction of day) read from the start.nc file in order to limit
     1812   the accumultation of roundoffs from multiple runs.
  • 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.