pseudospectators / FLUSI

Fluid-Structure-Interaction / MHD Research Code. Relies on Fourier transforms for derivatives and the volume penalization method to include obstacles.
http://aifit.cfd.tu-berlin.de/
GNU General Public License v3.0
46 stars 29 forks source link

Allocatable arrays as input and output arguments #15

Open dkolom opened 7 years ago

dkolom commented 7 years ago

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 7 years ago

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 7 years ago

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

tommy-engels commented 7 years ago

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 7 years ago

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

tommy-engels commented 7 years ago

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 GitHubhttps://github.com/pseudospectators/FLUSI/issues/15#issuecomment-303663125, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADn8gkz_Qmc-40orCqD2nOzn_3oWR5qEks5r8_IFgaJpZM4NkpzV.