Quantcast
Channel: Intel® Fortran Compiler
Viewing all articles
Browse latest Browse all 3270

Data in Array Constructor using multiplier has error

$
0
0

Can anyone help? I cannot get the array constructor data values to compile when using a multiplier on a constant.

This is an f77 conversion. Using MS VS 2003 and Intel V9.

The array used to look like:

      DATA ASTP1/0.,20.,40.,3*0.0/

I believed it should be like:

 Real, Parameter :: ASTP1(6) = (/0.,20.,40.,3*0.0/)

I also tried others  below that also did not work

 

 Real, Parameter :: ASTP1(6) = [0.,20.,40.,3*0.0]    

 Real, Parameter :: ASTP1(6) = [/0.,20.,40.,3*0.0/]

The issue is there are some arrays with 80*0..

That would be alot to do by hand.

Thanks Ken

 

 

 

 


Viewing all articles
Browse latest Browse all 3270


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>