Menu

fortran support

mirko
2008-02-19
2013-06-11
  • mirko

    mirko - 2008-02-19

    Hi,

    I am a bit puzzled with fortran support.  Doxygen documentation mentions it, but does not say how the comments need to be marked.

    I also found a patch for doxygen on http://dougdevel.org/index.php?page=doxygen.

    Thank you,

    Mirko

     
    • valeso

      valeso - 2008-03-05

      Hi,

      I want to comment my code in fortran 90 in order to use doxygen.
      I have downloaded the last version of doxygen (so I do not need to use your patch?).
      The result (the html page) is not very nice. Nothing is ordered.
      What can you advise me to do? Is there a file to include in each .f90 file?
      Thanks a lot

       
    • Marten Jan de Ruiter

      I got some parts working, using an out-of-the-box doxygen-1.5.4
      Hints can be obtained from the code snippets below.

      At the start I put:

      !>@file     test.f90
      !>@brief    main test program
      !>@author   that's me
      !>@date     2008

      Before a subroutine, I enter

      !       my_sub
      !
      !><summary>  This is one of my subroutines
      !></summary>
      !
      !><param name= 'foo'> First argument </param>
      !><param name= 'bar'> Second argument </param>
      !><remarks>  This subroutine should have a more
      !>           descriptive name
      !></remarks>
      subroutine my_sub(foo,bar)
        integer(4) foo,bar
        intent(in) foo,bar
        write(*,*)'foo + bar =',foo+bar
      end subroutine

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.