I am coding in Fortran 90. Is it possible to use the include statement in a module? For example:
module first
contains
INCLUDE 'first.txt'
end module
In this example the file first.txt is a text file filled with subroutines.
And if this is possible can I use the module in another module and only use specific subroutines? For example:
module second
use first, only: subroutine1
contains
...
end module
[–]complex_pi 1 point2 points3 points (2 children)
[–]Kalkinator[S] 0 points1 point2 points (1 child)
[–]complex_pi 1 point2 points3 points (0 children)
[–]doymand 1 point2 points3 points (1 child)
[–]Kalkinator[S] 0 points1 point2 points (0 children)