Skip to content

Type-bound procedures #41

@rhdtownsend

Description

@rhdtownsend

How can I document a type-bound procedure with sphinx-fortran? Suppose I had the code

module mymod

type foo
real :: a
contains
subroutine do_stuff
end type foo

contains

subroutine do_stuff(self)
class(foo) :: self
print *,self%a
end subroutine do_stuff

end module mymod

...then what syntax do I need to use with sphinx-fortran to indicate that the do_stuff subroutine is bound to the foo type?

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