Changeset bd2278d for utilities.f


Ignore:
Timestamp:
09/05/08 11:49:42 (16 years ago)
Author:
baerbaer <baerbaer@…>
Branches:
master
Children:
fafe4d6
Parents:
2ebb8b6
Message:

Reformatting comments and continuation marks.

Fortran 90 and higher use ! to mark comments no matter where they are in the
code. The only valid continuation marker is &.
I also added the SMMP.kdevelop.filelist to the repository to make it easier
to use kdevelop.

git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/smmp/trunk@12 26dc1dd8-5c4e-0410-9ffe-d298b4865968

File:
1 edited

Legend:

Unmodified
Added
Removed
  • utilities.f

    r2ebb8b6 rbd2278d  
    114114      end subroutine distributeWorkLoad
    115115     
    116 c-----------------------------------------------------------------------
    117 c     The function fileNameMP takes a template of a file name in the
    118 c     variable base. The position of the first and last character that
    119 c     may be replaced by rank in the string are given in i1 (first) and
    120 c     i2 (last).
    121 c     The function returns an empty string if the rank would need more
    122 c     characters than is allowed by the template.
    123 c     For example,
    124 c     \code
    125 c     rank = 11
    126 c     fileName = fileNameMP('base_0000.dat', 6, 9, rank)
    127 c     write (*,*), fileName
    128 c     \endcode
    129 c     will output base_0011.dat.
    130 c     
    131 c     @param base the base file name, e.g., base_0000.dat.
    132 c     @param i1 index of the first character that may be replaced
    133 c     @param i2 index of the last character that may be replaced
    134 c     @param rank the number that should be inserted into the file name.
    135 c     
    136 c     @return file name for rank
    137 c-----------------------------------------------------------------------
     116!-----------------------------------------------------------------------
     117!     The function fileNameMP takes a template of a file name in the
     118!     variable base. The position of the first and last character that
     119!     may be replaced by rank in the string are given in i1 (first) and
     120!     i2 (last).
     121!     The function returns an empty string if the rank would need more
     122!     characters than is allowed by the template.
     123!     For example,
     124!     \code
     125!     rank = 11
     126!     fileName = fileNameMP('base_0000.dat', 6, 9, rank)
     127!     write (*,*), fileName
     128!     \endcode
     129!     will output base_0011.dat.
     130!     
     131!     @param base the base file name, e.g., base_0000.dat.
     132!     @param i1 index of the first character that may be replaced
     133!     @param i2 index of the last character that may be replaced
     134!     @param rank the number that should be inserted into the file name.
     135!     
     136!     @return file name for rank
     137!-----------------------------------------------------------------------
    138138      character*80 function fileNameMP(base, i1, i2, rank)
    139139
    140140      character*(*) base
    141 c     i1, i2: Index of first and last character that can be replaced
    142 c     rank: rank of node
     141!     i1, i2: Index of first and last character that can be replaced
     142!     rank: rank of node
    143143      integer i1, i2, rank
    144144
     
    150150      endif
    151151
    152 c     TODO: Allow arbitrary rank
     152!     TODO: Allow arbitrary rank
    153153
    154154      if (rank.lt.10) then
     
    166166      endif
    167167      end function fileNameMP
    168 c     End fileNameMP
     168!     End fileNameMP
    169169
Note: See TracChangeset for help on using the changeset viewer.