Suppose I have a module
module module_1
end module module_1
And another module which uses the first module.
- i wrote it in this way (use module in the main section)
module module_2
use module_1
contains
function func_1
end function func_1
subroutine sub_1
end subroutine sub_1
end module_2
- or should i write in this way (use module in every function and subroutine)
module module_2
contains
function func_1
use module_1
end function func_1
subroutine sub_1
use module_1
end subroutine sub_1
end module_2