I'm learning Fortran and using the Intel compiler.
Here is some code that I wrote. I want to define the print_array interface in the arraytools module, and all the specific implementations (e.g. print_array_rp) should go into a seperate sub-module. The following works, but if I split the implementation into a submodule, I get a huge amount of compiler errors (I suppose it cant find the implementation anymore).
module arraytools
use precision
implicit none
interface print_array
module procedure print_array_rp
end interface
contains
subroutine print_array_rp(arr, fmt_in)
! ... Implementation not important
end subroutine
end module
How do I split print_array_rp off into a sub-module? I don't want to use #include instead.
error #7950: Procedure name in MODULE PROCEDURE statement must be the name of accessible module procedure. [PRINT_ARRAY_RP]