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

Accessing model data from Fortran DLL

jdchambless
Beginner
564 Views
Hello All,

I am writing some simulation software that uses an Excel file as the user interface, which then loads a Fortran DLL that actually runs all the calculations. The DLL needs access to lots of different data files. Some of the files are only a couple KB, and others are around 4MB. So far, I've just been accessing the data files (.txt files) by using OPEN, WRITE, and READ. I'd like to have something a little more elegant that maybe uses a database or just incorporates all the data (or at least the smaller files) into the project itself (or any other idea you might have used before with success). Since this will eventually be distributed as a product, a smaller amount of files would be better. I'm using version 10.0 of IVF on a 32bit machine (Windows). Thank you for your suggestions, and let me know if any more details are required.

Jason C.
0 Kudos
2 Replies
jdchambless
Beginner
564 Views
Hello All,

Just wondering why this post got so little response? Was it something I said, or maybe it wasn't detailed enough?

Thanks,
Jason C.
0 Kudos
Steven_L_Intel1
Employee
564 Views
What do you want to accomplish? Is "elegance" the only thing wrong with the text files? Perhaps the old saying, "If it ain't broke, don't fix it" applies? Why make it more complicated?

If you want to use a single file but still have it human-readable, consider a NAMELIST-input file. Or if you'd rather it not be readable, write it out to an unformatted file then read it in unformatted.
0 Kudos
Reply