Clicky
Showing changes from revision #0 to #1:
(追記) Added (追記ここまで) | (削除) Removed (削除ここまで) | (削除) Chan (削除ここまで)(追記) ged (追記ここまで)
A simple example of using internal procedures, which have explicit interfaces. See this thread on comp.lang.fortran for details.
! internalproc.f90 -- internal procedure example
program internalproc
implicit none
real :: y
real :: x = 100.0
y = functiontest(x)
contains
function functiontest(argument)
real :: functiontest
real, intent(in) :: argument
functiontest = argument * 2.0
end function functiontest
end program internalproc