How to pass allocatable arrays to subroutines in Fortran
If a procedure has a dummy argument that is an allocatable, then an explicit interface is required in any calling scope. (There are numerous things that require an explicit interface, an allocatable dummy is but one.) You can provide that explicit interface yourself by putting an interface block for your subroutine inside the main program. … Read more