How to use procedure pointers for subroutines with different number of arguments
问题 I'm developing a Fortran program for scientific computing. I want to use procedure pointers to assign the boundary conditions in the problem, shown in the following main program program main use boundary implicit none bc1 => boundaryA bc2 => boundaryB bc3 => boundaryC call comp_boundary end program I define all the boundary operations "boundaryA/B/C" in a "boundary" module module boundary implicit none procedure(boundary_type), pointer :: bc1,bc2,bc3 abstract interface subroutine boundary