Quantcast
Channel: Intel® Software - Intel® Visual Fortran Compiler for Windows*
Viewing all articles
Browse latest Browse all 5691

Module use another module?

$
0
0

I am consolidating parameter duplication in our code and have defined a parameter SDENW now in one module only, say module A.  However this variable exists in module B too (not just as a parameter definition, which I have removed, but also on the right hand side of other parameter definitions).

To prevent duplication, I tried to let Module B USE module A.  However the link fails as the compiler compiles file B.F90 before A.F90 and therefore cannot find A.MOD.  Of course I could just link twice, but I don't want to do that.  Is there a better way to do this?


Viewing all articles
Browse latest Browse all 5691

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>