Allocatable arrays as input and output arguments
Opened this issue · 5 comments
dkolom commented
Please revise the param_matrix subroutine to avoid using an allocatable array as output argument
real(kind=pr), allocatable, intent(out) :: matrix(:,:)
SX compiler does not handle that.
tommy-engels commented
ah, yes it seems this is a fortran2003 feature. it's a pity sx cannot do that (yet). I'll think about a way to avoid it
dkolom commented
Thanks! I actually compile with -f2003 option, so it may be even newer.
tommy-engels commented
could you please check if changing
intent(out)
to intent(inout) changes something? I don't have the sx compiler.
from the internet, it seems this is actually a fortran2003 feature
dkolom commented
Maybe we need an explicit interface for that? Simply intent(inout) did not work.
tommy-engels commented
the function is part of a module, therefore it shouldn't require an interface.
…________________________________________
Von: Dmitry Kolomenskiy [notifications@github.com]
Gesendet: Mittwoch, 24. Mai 2017 11:01
An: pseudospectators/FLUSI
Cc: Engels, Thomas Sebastian; Comment
Betreff: Re: [pseudospectators/FLUSI] Allocatable arrays as input and output arguments (#15)
Maybe we need an explicit interface for that?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#15 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ADn8gkz_Qmc-40orCqD2nOzn_3oWR5qEks5r8_IFgaJpZM4NkpzV>.