Re: [f2py] output array error
Pearu Peterson <[email protected]> Fri, 25 Nov 2011 20:28:14 +0200
| Newsgroups | gmane.comp.python.f2py.user |
|---|---|
| Message-ID | <CAPpwKczKLv_1Rsdp30G4VYH62c8gOSjBMudM0D2Dp4VsTQVvDA@mail.gmail.com> |
Hi, You need to give more information about how you use f2py. For example, the relevant part of the Fortran code and pyf file would be helpful to diagnose the error. Regards, Pearu On Fri, Nov 25, 2011 at 7:36 PM, Salvatore De Astis < [email protected]> wrote: > Hi, > I have recently started using f2py to call Fortran from Python, but I > have a problem: > > when I call a subroutine that I own output values in python I get the following > error: > > this is my code : > > fullnm,problm,type_bn,neqn,ndisc,t,numjac,mljac,mujac,nummas,mlmas,mumas,ind > = vp.prob() > > > that produce the following errors: > > failed to create intent(cache|hide)|optional array-- must have defined > dimensions but got (-1,) > > _______________________________________________ > f2py-users mailing list > f2py-users-Y4l6ocDipWCuvFJfX82//[email protected] > http://cens.ioc.ee/mailman/listinfo/f2py-users > > _______________________________________________ f2py-users mailing list f2py-users-Y4l6ocDipWCuvFJfX82//[email protected] http://cens.ioc.ee/mailman/listinfo/f2py-users