| Re: DATA statement to initialise arrays |
|
 |
|
 |
|
 |
|
 |
Group: comp.lang.fortran · Group Profile
Author: Arjen MarkusArjen Markus Date: Sep 19, 2008 07:15
On 19 sep, 15:18, bru wrote:
> Hello,
>
> Â Â Â Â I'm using Sun f77 and pgf77 compiler and both the following sequences
> does not work!! Â (It comes from a legacy code)
>
> Â Â Â PARAMETER (NTRMAX=50)
> Â Â Â LOGICAL LOST(NTRMAX)
> Â Â Â DATA LOST / NTRMAX*(.FALSE.)
>
> Â Â Â PARAMETER(MXL= 10, MXD= 10)
> Â Â Â DIMENSION NEwVAL(MXL,MXD)
> / Â Â DATA NEWVAL / (MXL*MXD)*0/
>
> which is the standard writing for those DATA statements?
>
> Thanks in advance
This line:
/ DATA NEWVAL / (MXL*MXD)*0/
should read:
DATA NEWVAL / (MXL*MXD)*0/
(I am not sure the (MXL*MXD) will work though, you may
need to replace that by the result, 100)
Regards,
Arjen
|