Modules
What is a module?
How to write a module
module mymodule
implicit none
real :: a
real :: b
a = 5
b = 6
contains
function functionInModule(x,y)
implicit none
real :: x, y, functionInModule
functionInModule = x-y
end function
end moduleLast updated