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

Placement of "INCLUDE" statements in project

bradmull
Beginner
450 Views

Hello Dr. Fortran ;

I am new to Intel Fortran. I was asked to build a scientific application using Fortran 90,coming froma much older version.

I have a bunch of INCLUDE statements, and there is some question as to how they should be added to my project. There are three possible places:

(1) Along with all the F90 modules

(2) In the Header folder of the project

(3) In the Resources folder

Some of them are common blocks, while some are parameter blocks. I guess it makes sense to put the PARAMETER statements in with the arrays of the COMMON block items they refer to. But there are other parameters, such as physical and math constants which are in use all through the source code, so it makes sense to put those in INCLUDE blocks also.

However, I am not sure where would be the most appropriate place to insert those . I have not been able to find documentationabout this particular topic.

Perhaps if you know where this is discussed, you could point the way . . .

Thanks; Brad

0 Kudos
2 Replies
Steven_L_Intel1
Employee
450 Views
The actual include files should be in the same folder as the main source files. They don't have to be visible in the project, but you can add them under Header Files if you want.

If you put the actual files somewhere other than where the source files are, you'll need to specify that location under "Additional Include Directories" in the project Fortran properties.
0 Kudos
bradmull
Beginner
450 Views

Thanks a lot ! ! !

0 Kudos
Reply