Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Compiling Fortran 90 modules

Henry_G_Intel
Employee
397 Views
Hello Fortran 90 programmers,
I have a module with the following structure:
module test
contains
#include "source1.f90"
#include "source2.f90"
#include "source3.f90"
end module test
The entire module must be recompiled whenever one of the included source files is modified. The real module has a lot more include statements so compilation is slowing development.
Is there some way to compile onlythe modified source file but still use a module? In other words, is there a way to treat a Fortran 90 module like a library?
Thanks,
Henry
0 Kudos
1 Reply
Steven_L_Intel1
Employee
397 Views
Use real Fortran INCLUDE statements, not cpp #include. It should do what you want then.
0 Kudos
Reply