You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently only (single-line) elemental functions are supported.
Currently, this
elementalfunctionmultiply(a, b)
real(kind=real64) :: multiply
real(kind=real64), intent(in) :: a, b
multiply = a * b
endfunction multiply
can be inlined correctly. However, something like
elementalfunctionmultiply(a, b)
real(kind=real64) :: multiply
real(kind=real64), intent(in) :: a, b
real(kind=real64) :: temp
temp = a * b
multiply = temp
endfunction multiply
will be inlined but not correctly! (since only multiply = temp gets inlined).
Further, inlining of member functions is not supported as well as functions that have return value based on a conditional (assignment)
elementalfunctionmultiply_if(a, b)
real(kind=real64) :: multiply_if
real(kind=real64), intent(in) :: a, b
if (a .gt. b) then
multiply_if = a * b
else
multiply_if = a * a
endifendfunction multiply_if
The text was updated successfully, but these errors were encountered:
Currently only (single-line) elemental functions are supported.
Currently, this
can be inlined correctly. However, something like
will be inlined but not correctly! (since only
multiply = temp
gets inlined).Further, inlining of member functions is not supported as well as functions that have return value based on a conditional (assignment)
The text was updated successfully, but these errors were encountered: