Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29285 Discussions

Doxygen support with Fortran - call-graphs

Debanjan_Mukherjee
2,337 Views
This is probably not the best forum to place this question - however,I have been trying hard to get this thing to work for a while now, and maybe some advice will help me at least look at the right places from here-on.
I am creating a couple of simulation applications in FORTRAN spanning multiple modules and files. I read and learnt using Doxygen for documenting my code-base and using it for creating the complete reference manual for the sake of creating and running test-cases. The html and latex files get generated more or less all correct - except for the call graphs. None of them get generated, and I am not sure why this is happening. Here are my version details:
Doxygen 1.8.0 with GraphViz 2.14.1.
I specify the DOT_PATH myself
and the rest of the graph options are as follows (in the doxygen configuration file):
CLASS_DIAGRAMS = NO
MSCGEN_PATH =
HIDE_UNDOC_RELATIONS = YES
HAVE_DOT = YES
DOT_NUM_THREADS = 0
DOT_FONTNAME = Helvetica
DOT_FONTSIZE = 10
DOT_FONTPATH =
CLASS_GRAPH = YES
COLLABORATION_GRAPH = YES
GROUP_GRAPHS = YES
UML_LOOK = NO
TEMPLATE_RELATIONS = NO
INCLUDE_GRAPH = NO
INCLUDED_BY_GRAPH = NO
CALL_GRAPH = YES
CALLER_GRAPH = NO
GRAPHICAL_HIERARCHY = YES
DIRECTORY_GRAPH = YES
DOT_IMAGE_FORMAT = png
INTERACTIVE_SVG = NO
DOT_PATH = /usr/local/graphviz-2.14/bin
DOTFILE_DIRS =
MSCFILE_DIRS =
DOT_GRAPH_MAX_NODES = 50
MAX_DOT_GRAPH_DEPTH = 0
DOT_TRANSPARENT = NO
DOT_MULTI_TARGETS = NO
GENERATE_LEGEND =YES
DOT_CLEANUP = YES
I can add further details about my files and my doxygen configuration file if needed. Is there anyone else who has ever faced similar problems with Doxygen-FORTRAN combination ? The funny thing is for an older version of Doxygen running on Linux (Ubuntu) I had all graphs working just fine and generated correctly. But now I have switched to a Mac, and a newer version of both softwares above, and it does not work.
Any advice/tips/pointers anything will work at this point. I have been stuck at this for a while - and maybe I am doing a simple mistake somewhere that I have missed completely.
Thanks a lot.
0 Kudos
3 Replies
sfranzen
Beginner
2,337 Views
It's not your mistake. The issue appeared with version 1.7.5, when Doxygen started treating Fortran modules as classes instead of the previously used, and more appropriate, namespace concept, with side effects including the absence of call/caller graphs. This was communicated to developers on the Doxygen forums, and someone has proposed a patch by including a new configuration parameter for the old behaviour, but AFAIK the issue has not been fixed yet in the official version. You could try the suggested patch yourself, or downgrade to version 1.7.4 (which is what I did) until this is fixed.
0 Kudos
Debanjan_Mukherjee
2,337 Views
Hello,
The tip on using an older version of Doxygen was great !! I used version 1.7.4 and got it to work.
Thanks a lot !!.
I also just checked that version 1.8.0 has been released, but couldn't ascertain whether they have fixed this issue or not. I however could not get the patch to work that you had mentioned in the previous post.
However, thanks for the older version tip.
0 Kudos
Alexis_R_
New Contributor I
2,337 Views
This doxygen bug was reported as fixed here.
I have tested doxygen 1.8.1 and can confirm that the call & caller graphs are now generated as expected again.
0 Kudos
Reply