Ignore:
Timestamp:
2019-01-16T08:58:14+01:00 (2 years ago)
Author:
smasson
Message:

trunk: bugfix for compilation with (at least) gcc, see #2201

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/OCE/IOM/iom_nf90.F90

    r10425 r10521  
    572572         ENDIF 
    573573         ! define the dimension variables if it is not already done 
    574          cltmp = (/ 'nav_lon', 'nav_lat', 'nav_lev', 'time_counter', 'numcat' /) 
     574         ! Warning: we must use the same character length in an array constructor (at least for gcc compiler) 
     575         cltmp = (/ 'nav_lon     ', 'nav_lat     ', 'nav_lev     ', 'time_counter', 'numcat      ' /)    
    575576         CALL iom_nf90_check(NF90_DEF_VAR( if90id, TRIM(cltmp(1)), NF90_FLOAT , (/ 1, 2 /), iom_file(kiomid)%nvid(1) ), clinfo) 
    576577         CALL iom_nf90_check(NF90_DEF_VAR( if90id, TRIM(cltmp(2)), NF90_FLOAT , (/ 1, 2 /), iom_file(kiomid)%nvid(2) ), clinfo) 
Note: See TracChangeset for help on using the changeset viewer.