Skip to content

fortran_domain doesn't handle arguments declared as "double precision" correctly. #38

@sradanov

Description

@sradanov

An argument of a subroutine declared as
DOUBLE PRECISION,DIMENSION(:,:),INTENT(IN):: MYVAR
appears as

  • precision [double]
    in the documentation, instead of something like
  • myvar(,)[double precision, in]
    I suppose something is going wrong around this line:
    re_fieldname_match = re.compile( r'(?P<type>\b\w+\b(?P<kind>\s*\(.*\))?)?\s*(?P<name>\b\w+\b)\s*(?P<shape>\(.*\))?\s*(?P<sattrs>\[.+\])?').match
    since everything seems to be fine until the scan_fieldarg method of the FortranDocFieldTransformer class
    where
    print(fieldname)
    gives
    double precision myvar(,) [in]
    but the method returns
    precision None double None
    instead of
    myvar (,) double precision in

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions