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 15190 for NEMO/trunk/src/OCE – NEMO

Changeset 15190 for NEMO/trunk/src/OCE


Ignore:
Timestamp:
2021-08-13T14:52:50+02:00 (3 years ago)
Author:
gsamson
Message:

correct year (4 digits) & month (2 digits) formats for non-climatological runoff files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/OCE/SBC/sbcrnf.F90

    r15062 r15190  
    519519      ! 
    520520      cl_rnfile = TRIM( cn_dir )//TRIM( sn_cnf%clname ) 
    521       IF( .NOT. sn_cnf%ln_clim ) THEN   ;   WRITE(cl_rnfile, '(a,"_y",i4)' ) TRIM( cl_rnfile ), nyear    ! add year 
    522          IF( sn_cnf%clftyp == 'monthly' )   WRITE(cl_rnfile, '(a,"m",i2)' ) TRIM( cl_rnfile ), nmonth   ! add month 
     521      IF( .NOT. sn_cnf%ln_clim ) THEN   ;   WRITE(cl_rnfile, '(a,"_y",i4.4)' ) TRIM( cl_rnfile ), nyear    ! add year 
     522         IF( sn_cnf%clftyp == 'monthly' )   WRITE(cl_rnfile, '(a,"m" ,i2.2)' ) TRIM( cl_rnfile ), nmonth   ! add month 
    523523      ENDIF 
    524524      ! 
Note: See TracChangeset for help on using the changeset viewer.