Fortran: Calling a function in a module from a procedure in another module
问题 I admit the title might be a bit obscure, so let me give an example of what I want to do and what doesn't work. I have a main program which calls a subroutine which is in a module: Program Test_program Use module_A Implicit none Integer :: i i = 1 call subroutine_A(i) End program Test_program this subroutine_A is in module A, and in turns calls a function_B which is in module_B: module module_A use module_B implicit none contains subroutine subroutine_A(i) implicit none integer, intent(in) ::