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

Interaction between "Generate Interface" and user specified ones

WSinc
New Contributor I
335 Views
I don't think this has been addressed before.

I know you can specify your own interface by using MODULE and USE statements. In fact this is recommended by Dr. Fortran as the best way to go.

However, what if I specify "Generate interfaces?" Does that negate whatever interface definitions that are already present?

In other words, can I have a MIXTURE of the two, or are they NOT allowed to co-exist?
If they can, Which would have priority?

I might do some experimentation on this, unless there is an article somewhere about it.
0 Kudos
1 Reply
Lorri_M_Intel
Employee
335 Views
Quoting - billsincl
I don't think this has been addressed before.

I know you can specify your own interface by using MODULE and USE statements. In fact this is recommended by Dr. Fortran as the best way to go.

However, what if I specify "Generate interfaces?" Does that negate whatever interface definitions that are already present?

In other words, can I have a MIXTURE of the two, or are they NOT allowed to co-exist?
If they can, Which would have priority?

I might do some experimentation on this, unless there is an article somewhere about it.

You can certainly have a mixture. The underlying code that does "generate interfaces" only works its magic if there isn't an explicit interface already available.

So, I guess to answer your question, the explicit interface would have priority.

- Lorri
0 Kudos
Reply