Author Topic: link a function to its source definition  (Read 4644 times)

Nish

  • Full Member
  • ***
  • Posts: 90
link a function to its source definition
« on: October 16, 2019, 12:16:04 AM »
Hello
I work with FEAP in visual sudio. When I am in a subroutine and a function is called, I would like to click on the function and view its source file which defines it. Now I have to look for the function file in the library..
Is there any way for this?
Regards

K.Li

  • Full Member
  • ***
  • Posts: 191
Re: link a function to its source definition
« Reply #1 on: October 17, 2019, 01:06:09 AM »
Sometimes, you can right-click on the name of the function or subroutine in your code and choose "Go To Definition", it will open the source code. But if your function name is declared as an external function, it may not work. It does work if you declare your function in the interface block.

Nish

  • Full Member
  • ***
  • Posts: 90
Re: link a function to its source definition
« Reply #2 on: October 17, 2019, 02:09:07 AM »
Thank you for your reply,
however mine doesn't work in this way.

Prof. S. Govindjee

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 1160
Re: link a function to its source definition
« Reply #3 on: October 17, 2019, 07:12:34 AM »
Try building your code as described in this post

http://feap.berkeley.edu/forum/index.php?topic=2124.0

and use the right-click method.