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.

Using Interface in Fortran

astroengineer
Beginner
508 Views
Hi,

I am planning to modularize my existing project. I know Interface is the best option for increased scalability of application in .NET & JAVA. Did intel fortran support Interface, if so how to implement that?

Any help would be greatly appreciated
0 Kudos
1 Reply
Steven_L_Intel1
Employee
508 Views
It is not completely clear to me that what "interface" means in Fortran is what you are asking about, but the simple answer is that Fortran allows you to put procedures in modules, which then requires that the caller of the procedures add a USE statement for the module. This provides an "explicit interface" (Fortran term) that supplies details about the procedure's arguments to the caller. Grouping related procedures and other declarations in modules is the recommended practice in Fortran - it makes the program easier to maintain and allows the compiler to better check for errors. Explicit interfaces are also required to make use of newer language features such as assumed-shape arrays.
0 Kudos
Reply