Changes between Initial Version and Version 1 of Ticket #2201


Ignore:
Timestamp:
2019-01-08T11:48:23+01:00 (15 months ago)
Author:
rblod
Comment:

Replying to rblod:

Context

Compilation fails with gfortran 4.8 and key_mpp_mpi activated with message: CHARACTER(len=*), DIMENSION(nbdelay), PUBLIC :: c_delaylist = (/ 'cflice', 'fwb'/)

1

Error: Different CHARACTER lengths (6/3) in array constructor at (1)

Same error in iom_nf90.f90 and may other places with same initialisation using character array constructor

Analysis

my guess, It's not allowed by fortran standard (just an intel extension)

Recommendation

Not sure, this syntax makes it but is f2003

CHARACTER(len=32), DIMENSION(nbdelay), PUBLIC
c_delaylist = (/character(32):: 'cflice', 'fwb' /)

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2201 – Description

    initial v1  
    1 ==== Context 
     1==== Context  
    22Compilation fails with gfortran 4.8 and key_mpp_mpi activated with message: 
    33CHARACTER(len=*), DIMENSION(nbdelay), PUBLIC ::   c_delaylist = (/ 'cflice', 'fwb'/) 
     
    1111 
    1212==== Recommendation 
    13 Not sure, this syntax makes it but is f2003 
    14  CHARACTER(len=32), DIMENSION(nbdelay), PUBLIC ::   c_delaylist = (/character(32):: 'cflice', 'fwb' /)  
     13Not sure, this syntax makes it but is f2003 : CHARACTER(len=*), DIMENSION(nbdelay), PUBLIC ::   c_delaylist = (/ character(32):: 'cflice', 'fwb'/)