This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Question anout intent(out)
- From: Thomas Koenig <tkoenig at netcologne dot de>
- To: Dominique Dhumieres <dominiq at lps dot ens dot fr>, fortran at gcc dot gnu dot org
- Date: Mon, 09 Jun 2014 20:34:35 +0200
- Subject: Re: Question anout intent(out)
- Authentication-results: sourceware.org; auth=none
- References: <20140609174118 dot 2D049105 at mailhost dot lps dot ens dot fr>
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