DATA statement to initialise arrays
  Home FAQ Contact Sign in
comp.lang.fortran only
 
Advanced search
POPULAR GROUPS

more...

 Up
DATA statement to initialise arrays         

Group: comp.lang.fortran · Group Profile
Author: bru
Date: Sep 19, 2008 06:18

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
8 Comments
diggit! del.icio.us! reddit!