gfortran - Is there any way to call Fortran subroutine from character variable (which holds name of subroutine) instead of name of actual subroutine -


i have fortran subroutine sample. call inside program. looking way call character variable, not call sample() following

program calculate   character(97) :: ii='sample'   call ii() ! call sample subroutine end program  subroutine sample   print 'something' end subroutine sample 


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -