New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 3383 for branches/2012/dev_r3337_NOCS10_ICB/NEMOGCM/NEMO/OPA_SRC/ICB/icbstp.F90 – NEMO

Ignore:
Timestamp:
2012-05-04T16:06:37+02:00 (12 years ago)
Author:
sga
Message:

NEMO branch dev_r3337_NOCS10_ICB: rationalise date calculation (which also helps with key_agrif problems)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2012/dev_r3337_NOCS10_ICB/NEMOGCM/NEMO/OPA_SRC/ICB/icbstp.F90

    r3379 r3383  
    5959      INTEGER, INTENT(in) ::   kt   ! time step index 
    6060      ! 
    61       INTEGER ::   iyr, imon, iday, ihr, imin, isec        ! local integers 
    6261      LOGICAL ::   ll_sample_traj, ll_budget, ll_verbose   ! local logical 
    6362      !!---------------------------------------------------------------------- 
     
    7978      CALL icb_dia_step() 
    8079 
    81       ! Manage time 
    82       ! Convert nemo time variables from dom_oce into local versions 
    83       ! Note that yearday function assumes 365 day year!! 
    84       iyr = nyear 
    85       imon = nmonth 
    86       iday = nday 
    87       ihr = INT(nsec_day/3600) 
    88       imin = INT((nsec_day-ihr*3600)/60) 
    89       isec = nsec_day - ihr*3600 - imin*60 
    90       current_year    = iyr 
    91       current_yearday = icb_utl_yearday(imon, iday, ihr, imin, isec) 
    92  
    9380      ll_verbose = .FALSE. 
    9481      IF( nn_verbose_write > 0 .AND. & 
    9582          MOD(kt-1,nn_verbose_write ) == 0 )   ll_verbose = nn_verbose_level >= 0 
    96       IF( ll_verbose ) WRITE(numicb,9100) iyr, imon, iday, ihr, imin, isec, & 
    97                                         current_year, current_yearday 
    98  9100 FORMAT('y,m,d=',3i5,' h,m,s=',3i5,' yr,yrdy=',i5,f8.3) 
     83 
     84      ! write out time 
     85      IF( ll_verbose ) WRITE(numicb,9100) nktberg, ndastp, nsec_day 
     86 9100 FORMAT('kt= ',i8, ' day= ',i8,' secs=',i8) 
    9987 
    10088      ! copy nemo forcing arrays into iceberg versions with extra halo 
Note: See TracChangeset for help on using the changeset viewer.