Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Data statement creation

gib
New Contributor II
156 Views

I would like to be able to create, at compile time, a big data statement using values stored in a file.  I want to do it this way rather than have the file read at run time.  Is it possible (on Windows)?

Thanks

Gib

0 Kudos
3 Replies
gib
New Contributor II
156 Views

I think I can now answer my own question - I can create the data statement in a file that is then #INCLUDEd.

Steve_Lionel
Black Belt Retired Employee
156 Views

I will caution you that very large DATA statements may cause compiles to be very slow. The data file read in during execution might be a better idea if this happens.

gib
New Contributor II
156 Views

Thanks Steve.  I've changed the formulation, and now it's feasible to compute the values on the fly as needed.

Reply