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 12127 for NEMO/branches/2019/dev_r12114_ticket_2263/src/OCE/SBC/fldread.F90 – NEMO

Ignore:
Timestamp:
2019-12-09T18:42:54+01:00 (4 years ago)
Author:
smasson
Message:

dev_r12114_ticket_2263: replace integer kt_offset by real pt_offset, see #2263

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/dev_r12114_ticket_2263/src/OCE/SBC/fldread.F90

    r12116 r12127  
    132132CONTAINS 
    133133 
    134    SUBROUTINE fld_read( kt, kn_fsbc, sd, kit, kt_offset ) 
     134   SUBROUTINE fld_read( kt, kn_fsbc, sd, kit, pt_offset ) 
    135135      !!--------------------------------------------------------------------- 
    136136      !!                    ***  ROUTINE fld_read  *** 
     
    148148      TYPE(FLD), INTENT(inout), DIMENSION(:) ::   sd        ! input field related variables 
    149149      INTEGER  , INTENT(in   ), OPTIONAL     ::   kit       ! subcycle timestep for timesplitting option 
    150       INTEGER  , INTENT(in   ), OPTIONAL     ::   kt_offset ! provide fields at time other than "now" 
    151       !                                                     !   kt_offset = -1 => fields at "before" time level 
    152       !                                                     !   kt_offset = +1 => fields at "after"  time level 
    153       !                                                     !   etc. 
     150      REAL(wp) , INTENT(in   ), OPTIONAL     ::   pt_offset ! provide fields at time other than "now" 
    154151      !! 
    155152      INTEGER  ::   imf          ! size of the structure sd 
     
    168165      ELSE                                      ;   zt_offset = 0. 
    169166      ENDIF 
    170       IF( PRESENT(kt_offset) )   zt_offset = REAL( kt_offset, wp ) 
     167      IF( PRESENT(pt_offset) )   zt_offset = pt_offset 
    171168 
    172169      ! Note that all varibles starting by nsec_* are shifted time by +1/2 time step to be centrered 
Note: See TracChangeset for help on using the changeset viewer.