Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28543 Discussions

To get the name of the current function

Yaqi_Wang
Beginner
335 Views
How can I get the name of the current function? Is there something similar as __func__?
0 Kudos
3 Replies
anthonyrichards
New Contributor III
335 Views
Define what you mean by 'current'; define what you mean by 'function'.
Then things chould be clearer to us.
0 Kudos
Yaqi_Wang
Beginner
335 Views
ok, let me be more specific:

-------------------------------------
program main

call sub1()

stop

end program main

subroutine sub1()

print *, 'My name is sub1.'
! here can we get the sub1 through preprocessing but not type it manually?

end subroutine sub1
0 Kudos
Steven_L_Intel1
Employee
335 Views
The compiler does not offer what you are looking for.
0 Kudos
Reply