pseudospectators/FLUSI

Allocatable arrays as input and output arguments

Opened this issue · 5 comments

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.

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

Thanks! I actually compile with -f2003 option, so it may be even newer.

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

Maybe we need an explicit interface for that? Simply intent(inout) did not work.