I have a Fortran subroutine Sample
. I call it inside another program. I am looking for a way to call it with a character variable, not like call sample()
but like the following
Program calculate
character(97) :: ii='Sample'
call ii() ! So it call Sample subroutine
End program
Subroutine Sample
print 'something'
End Subroutine Sample
call test1(5,test2) end program test_func_ptrs` – Shahbaz Ahmed Jul 25 '17 at 21:10