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 11258 for NEMO/branches/2019/dev_r10984_HPC-13_IRRMANN_BDY_optimization/src/OCE/SBC/fldread.F90 – NEMO

Ignore:
Timestamp:
2019-07-11T18:21:02+02:00 (5 years ago)
Author:
smasson
Message:

dev_r10984_HPC-13 : minor bugfix and cleaning, see #2285

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/dev_r10984_HPC-13_IRRMANN_BDY_optimization/src/OCE/SBC/fldread.F90

    r11223 r11258  
    465465      ELSE                                      ;   it_offset = 0 
    466466      ENDIF 
    467       IF( PRESENT(kt_offset) )   it_offset = kt_offset 
     467      IF( PRESENT(kt_offset) )      it_offset = kt_offset 
    468468      IF( PRESENT(kit) ) THEN   ;   it_offset = ( kit + it_offset ) * NINT( rdt/REAL(nn_baro,wp) ) 
    469469      ELSE                      ;   it_offset =         it_offset   * NINT(       rdt            ) 
     
    486486            !       forcing record :    1  
    487487            !                             
    488             ztmp = REAL( nsec_year, wp ) / ( REAL( nyear_len(1), wp ) * rday ) + 0.5 & 
    489            &       + REAL( it_offset, wp ) / ( REAL( nyear_len(1), wp ) * rday ) 
     488            ztmp =  REAL( nsec_year, wp ) / ( REAL( nyear_len(1), wp ) * rday ) + 0.5 & 
     489               &  + REAL( it_offset, wp ) / ( REAL( nyear_len(1), wp ) * rday ) 
    490490            sdjf%nrec_a(1) = 1 + INT( ztmp ) - COUNT((/llbefore/)) 
    491491            ! swap at the middle of the year 
     
    517517            !       forcing record :  nmonth  
    518518            !                             
    519             ztmp = REAL( nsec_month, wp ) / ( REAL( nmonth_len(nmonth), wp ) * rday ) + 0.5 & 
    520            &       + REAL( it_offset, wp ) / ( REAL( nmonth_len(nmonth), wp ) * rday ) 
     519            ztmp =  REAL( nsec_month, wp ) / ( REAL( nmonth_len(nmonth), wp ) * rday ) + 0.5 & 
     520           &      + REAL( it_offset, wp ) / ( REAL( nmonth_len(nmonth), wp ) * rday ) 
    521521            imth = nmonth + INT( ztmp ) - COUNT((/llbefore/)) 
    522522            IF( sdjf%cltype == 'monthly' ) THEN   ;   sdjf%nrec_a(1) = 1 + INT( ztmp ) - COUNT((/llbefore/)) 
Note: See TracChangeset for help on using the changeset viewer.