Ignore:
Timestamp:
2020-06-03T10:44:33+02:00 (5 months ago)
Author:
smasson
Message:

Clem's branch: merge with r4.0-HEAD@13013

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2020/r4.0-HEAD_r12713_clem_dan_fixcpl/src/OCE/stpctl.F90

    r12955 r13014  
    240240      !!! WRITE(clsum, '(i'//clfmt//')') ksum                   ! this is creating a compilation error with AGRIF 
    241241      cl4 = '(i'//clfmt//')'   ;   WRITE(clsum, cl4) ksum 
    242       WRITE(clfmt, '(i1)') INT(LOG10(REAL(jpnij-1,wp))) + 1     ! how many digits to we need to write ? (we decide max = 9) 
     242      WRITE(clfmt, '(i1)') INT(LOG10(REAL(MAX(1,jpnij-1),wp))) + 1    ! how many digits to we need to write ? (we decide max = 9) 
    243243      cl4 = '(i'//clfmt//')'   ;   WRITE(clmin, cl4) kmin-1 
    244244                                   WRITE(clmax, cl4) kmax-1 
Note: See TracChangeset for help on using the changeset viewer.