Jason Green
Jason Green

Reputation: 13

In fortran, in what scope should I place 'use [module]' statements for the best performance?

Say I have a subprogram in a Fortran program/module that uses another module. Will the performance of this subprogram be better if I place the 'use' statement within the subprogram or at the program/module scope?

Upvotes: 1

Views: 125

Answers (1)

IanH
IanH

Reputation: 21431

If, by "performance", you mean execution speed, then No.

Positioning of the statement will make no difference.

Upvotes: 2

Related Questions