Skip to content

Instantly share code, notes, and snippets.

@unterumarmung
Created April 14, 2022 11:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unterumarmung/a77730a3762009ee87968aa323b954fe to your computer and use it in GitHub Desktop.
Save unterumarmung/a77730a3762009ee87968aa323b954fe to your computer and use it in GitHub Desktop.
module a
contains
real(q) function foo(y, z)
use c
real(q) :: y
type(c_foo) :: z
foo = y
end function foo
end module a
module b
integer, parameter :: q = selected_real_kind(10)
end module b
module c
use b, only: q
type :: c_foo
real(q) :: foo
end type
end module c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment