Your Federal Quarterly Tax Payments are due April 15th Get Help Now >>

Understand for Fortran by bzs12927

VIEWS: 46 PAGES: 5

									    CSE   Computational Science &
          Engineering Department
                                                                                The Software
                                                                           Engineering Group




                            Understand for Fortran


                        Chris Greenough and David J Worth
                                    Software Engineering Group
                          Computational Science & Engineering Department
                                 Rutherford Appleton Laboratory

                                      c.greenough@rl.ac.uk




1
    CSE         Computational Science &
                Engineering Department
                                                                       The Software
                                                                  Engineering Group


    What is Understand for FORTRAN?

     Understand for FORTRAN is a source code analyzer; it helps
        programmers understand their FORTRAN software projects.
       Understand for FORTRAN analyzes your FORTRAN software to create
        a repository of the relations and structures contained within it. The
        repository is then used to learn about the source code.
       Understand for FORTRAN helps you quickly answer questions such
        as:
            What is this entity?
            Where is it changed?
            Where is it referenced?
            Who depends on it?
            What does it depend on?
     Understand for FORTRAN answers these questions through
        interactive entity specific cross reference reports and graphical
        diagrams quickly showing the relevant information about a given
        entity

2
    CSE       Computational Science &
              Engineering Department
                                                        The Software
                                                   Engineering Group


    f90tohtml - http://mensch.org/f90tohtml

     Converts source to html
          PERL script
          syntax highlighted source
          split pane
          forward and backward subprogram calls
          clickable call tree
          subject index from user supplied hash




3
    CSE         Computational Science &
                Engineering Department
                                                                                       The Software
                                                                                  Engineering Group


    Running f90tohtml

     2 files
         script to make list of source files
         input file
            • location of source file list
            • destination for html


     Script - prog_prepare.pl
           set $the_path                 absolute path to head of source directories
           set $outdir                   relative path to output directory
           set $the_dirs                 relative paths to source directories
           set $the_files                regex for source files


     Possible to have > 1 source list


4
    CSE       Computational Science &
              Engineering Department
                                                                          The Software
                                                                     Engineering Group


    Running f90tohtml cont.

     Input file - prog.f2h
           set $file_array             List of source file lists
           set $dir_html               Output directory for html
           set $contents_title         Title of web pages
           set $default_index          Which set of files to view by default
           set $default_prog           Which program/subroutine to view by default


     Run
         ./prog_prepare.pl
         f90tohtml prog.f2h




5

								
To top