开发者

Fortran compilers/viewers that let you see the dependencies of a given module [duplicate]

This question already has answers here: How can I visualize Fortran (90 or later) source code, e.g. using Graphviz? [closed] 开发者_如何学Python (3 answers) Closed 7 years ago.

I'm using PowerGREP to find all the dependencies of a module and of module variables of a Fortran code, but it's not an interface that's idealized for this. Can anyone suggest any other tools for this?

For example, I'd like to see every .f90 file where the type with the day label is used (see code below).

I use Windows 7, but feel free to mention anything that works on Linux too.

! $Id: ESMF_DateMod.F,v 1.1.6.1 2002/04/24 03:25:46 erik Exp $
module ESMF_DateMod
!===============================================================================
!BOP
! !MODULE: ESMF_DateMod
!
! !USES:
use ESMF_TODMod
use ESMF_CalendarMod
use ESMF_TimeMod
!
! !PUBLIC TYPES:
type ESMF_Date
private
sequence
type(ESMF_Calendar) calendar
integer(8) year
integer(8) month
integer(8) day
type(ESMF_TOD) tod
integer(8) julianDay
integer(8) dayOfYear
end type ESMF_Date


Not a compiler, but there is SciTools Understand, which supports several languages, Fortran included (they also keep up with the times in respect to the latest Standards). If I'm understanding your question right, it is a specialized tool for precisely that kind of analysis.


A UNIX and Linux Forums post suggests ftnchek, which may not be the most user-friendly way to accomplish this task but has the advantage of being free.


I'm a bit late to this, but I would recommend doxygen, which automatically generates documentation from source code. See the doxygen documentation for graphs and diagrams for more information and this example class documentation for a example of the output generated (note this example demonstrates the relationship between some C++ classes, but the same diagrams can be drawn for functions and subroutines in Fortran programs).

Note that time answer is similar to a previous answer of mine, which can be found here: How can I visualize Fortran (90 or later) source code, e.g. using Graphviz? This answer contains a bit more information on configuring doxygen.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜