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
267 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
267 Views

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

0 Kudos
Steve_Lionel
Black Belt
267 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.

0 Kudos
gib
New Contributor II
267 Views

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

0 Kudos
Reply