This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Question anout intent(out)


Am 09.06.2014 19:41, schrieb Dominique Dhumieres:
>         CHARACTER(IOVLEN3), INTENT (OUT) :: READPOL( NDATPERLN )        
>                                                     1
> Error: Dummy argument 'ndatperln' at (1) cannot be INTENT(OUT)

This is correct, because the size of the array is not known
on subroutine entry.

If you want to determine the size of iovlen3 at runtime, make it
allocatable.

Regards

Thomas


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]