Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type-bound procedures #41

Open
rhdtownsend opened this issue Feb 9, 2022 · 0 comments
Open

Type-bound procedures #41

rhdtownsend opened this issue Feb 9, 2022 · 0 comments

Comments

@rhdtownsend
Copy link
Contributor

rhdtownsend commented Feb 9, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant