Re: [f2py] f2py-users Digest, Vol 81, Issue 11
Salvatore De Astis <[email protected]> Mon, 5 Dec 2011 17:16:44 +0100
| Newsgroups | gmane.comp.python.f2py.user |
|---|---|
| Message-ID | <CANEycycSa6KT7r+c3juqBgTU13b86KT5K2AN8RnapjzZdAy2AA@mail.gmail.com> |
--===============5388546545470387151== Content-Type: multipart/alternative; boundary=000e0ce03d920a4d9a04b35aa590 --000e0ce03d920a4d9a04b35aa590 Content-Type: text/plain; charset=ISO-8859-1 Thanks for the reply, however I have solved the problem. I had to set the length of the strings. PS you know any site that better explains the form scipy.integrate.ode? Thank you again! Salvatore 2011/11/26 <f2py-users-request-Y4l6ocDipWCuvFJfX82//[email protected]> > Send f2py-users mailing list submissions to > f2py-users-Y4l6ocDipWCuvFJfX82//[email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://cens.ioc.ee/mailman/listinfo/f2py-users > or, via email, send a message with subject or body 'help' to > f2py-users-request-Y4l6ocDipWCuvFJfX82//[email protected] > > You can reach the person managing the list at > f2py-users-owner-Y4l6ocDipWCuvFJfX82//[email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of f2py-users digest..." > > > Today's Topics: > > 1. output array error (Salvatore De Astis) > 2. Re: output array error (Pearu Peterson) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 25 Nov 2011 18:36:26 +0100 > From: Salvatore De Astis <[email protected]> > Subject: [f2py] output array error > To: f2py-users-Y4l6ocDipWCuvFJfX82//[email protected] > Message-ID: > <CANEycyeQDg1zORfyGZfz1U6zBKvr6FPYhGDpJZLF47jZ46s_HQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org > > > Content-Type: text/plain; charset="utf-8" > > 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,) > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://cens.ioc.ee/pipermail/f2py-users/attachments/20111125/fc89338f/attachment.html > > ------------------------------ > > Message: 2 > Date: Fri, 25 Nov 2011 20:28:14 +0200 > From: Pearu Peterson <[email protected]> > Subject: Re: [f2py] output array error > To: For users of the f2py program <f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]> > Message-ID: > <CAPpwKczKLv_1Rsdp30G4VYH62c8gOSjBMudM0D2Dp4VsTQVvDA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org > > > Content-Type: text/plain; charset="utf-8" > > 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 > > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://cens.ioc.ee/pipermail/f2py-users/attachments/20111125/a552f084/attachment-0001.htm > > ------------------------------ > > _______________________________________________ > f2py-users mailing list > f2py-users-Y4l6ocDipWCuvFJfX82//[email protected] > http://cens.ioc.ee/mailman/listinfo/f2py-users > > > End of f2py-users Digest, Vol 81, Issue 11 > ****************************************** > --000e0ce03d920a4d9a04b35aa590 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <span id=3D"result_box" class=3D"long_text" lang=3D"en"><span class=3D"hps"= >Thanks for</span> <span class=3D"hps">the reply</span><span>,</span> <span= class=3D"hps">however I have</span> <span class=3D"hps">solved the</span> = <span class=3D"hps">problem.</span> <span class=3D"hps">I had to set</span>= <span class=3D"hps">the length</span> <span class=3D"hps">of the strings</= span><span>.</span><br> <br> <span class=3D"hps"></span><span class=3D"hps">PS</span> <span class= =3D"hps">you know any</span> <span class=3D"hps">site that</span> <span cla= ss=3D"hps">better explains</span> <span class=3D"hps">the form</span> <span= class=3D"hps">scipy.integrate.ode</span><span>?</span><br> <span class=3D"hps">Thank you again</span><span class=3D"">!</span></span>= <br>Salvatore<br><br><div class=3D"gmail_quote">2011/11/26 <span dir=3D"lt= r"><<a href=3D"mailto:f2py-users-request-Y4l6ocDipWCuvFJfX82//[email protected]">f2py-users-request= @cens.ioc.ee</a>></span><br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex;">Send f2py-users mailing list submissions to= <br> =A0 =A0 =A0 =A0<a href=3D"mailto:f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]">[email protected]= oc.ee</a><br> <br> To subscribe or unsubscribe via the World Wide Web, visit<br> =A0 =A0 =A0 =A0<a href=3D"http://cens.ioc.ee/mailman/listinfo/f2py-users" = target=3D"_blank">http://cens.ioc.ee/mailman/listinfo/f2py-users</a><br> or, via email, send a message with subject or body 'help' to<br> =A0 =A0 =A0 =A0<a href=3D"mailto:f2py-users-request-Y4l6ocDipWCuvFJfX82//[email protected]">f2py-user= s-request-Y4l6ocDipWCuvFJfX82//[email protected]</a><br> <br> You can reach the person managing the list at<br> =A0 =A0 =A0 =A0<a href=3D"mailto:f2py-users-owner-Y4l6ocDipWCuvFJfX82//[email protected]">f2py-users-= owner-Y4l6ocDipWCuvFJfX82//[email protected]</a><br> <br> When replying, please edit your Subject line so it is more specific<br> than "Re: Contents of f2py-users digest..."<br> <br> <br> Today's Topics:<br> <br> =A0 1. =A0output array error (Salvatore De Astis)<br> =A0 2. Re: output array error (Pearu Peterson)<br> <br> <br> ----------------------------------------------------------------------<br> <br> Message: 1<br> Date: Fri, 25 Nov 2011 18:36:26 +0100<br> From: Salvatore De Astis <<a href=3D"mailto:[email protected]"= >[email protected]</a>><br> Subject: [f2py] =A0output array error<br> To: <a href=3D"mailto:f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]">f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]</a><br= > Message-ID:<br> =A0 =A0 =A0 =A0<<a href=3D"mailto:CANEycyeQDg1zORfyGZfz1U6zBKvr6FPYhGDp= [email protected]">CANEycyeQDg1zORfyGZfz1U6zBKvr6FPYhGDpJZLF47j= [email protected]</a>><br> Content-Type: text/plain; charset=3D"utf-8"<br> <br> Hi,<br> I =A0have recently started using f2py to call Fortran from Python, but I ha= ve<br> a problem:<br> <br> when I call a subroutine that I own output values ??in python I get<br> the following<br> error:<br> <br> this is my code :<br> <br> fullnm,problm,type_bn,neqn,ndisc,t,numjac,mljac,mujac,nummas,mlmas,mumas,in= d<br> =3D vp.prob()<br> <br> <br> that produce the following errors:<br> <br> =A0failed to create intent(cache|hide)|optional array-- must have defined<b= r> dimensions but got (-1,)<br> -------------- next part --------------<br> An HTML attachment was scrubbed...<br> URL: <a href=3D"http://cens.ioc.ee/pipermail/f2py-users/attachments/2011112= 5/fc89338f/attachment.html" target=3D"_blank">http://cens.ioc.ee/pipermail/= f2py-users/attachments/20111125/fc89338f/attachment.html</a><br> <br> ------------------------------<br> <br> Message: 2<br> Date: Fri, 25 Nov 2011 20:28:14 +0200<br> From: Pearu Peterson <<a href=3D"mailto:[email protected]">[email protected]</= a>><br> Subject: Re: [f2py] output array error<br> To: For users of the f2py program <<a href=3D"mailto:[email protected]= .ee">f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]</a>><br> Message-ID:<br> =A0 =A0 =A0 =A0<<a href=3D"mailto:CAPpwKczKLv_1Rsdp30G4VYH62c8gOSjBMudM= [email protected]">CAPpwKczKLv_1Rsdp30G4VYH62c8gOSjBMudM0D2Dp4V= [email protected]</a>><br> Content-Type: text/plain; charset=3D"utf-8"<br> <br> Hi,<br> You need to give more information about how you use f2py.<br> For example, the relevant part of the Fortran code and pyf file<br> would be helpful to diagnose the error.<br> Regards,<br> Pearu<br> <br> On Fri, Nov 25, 2011 at 7:36 PM, Salvatore De Astis <<br> <a href=3D"mailto:[email protected]">[email protected]<= /a>> wrote:<br> <br> > Hi,<br> > I =A0have recently started using f2py to call Fortran from Python, but= I<br> > have a problem:<br> ><br> > when I call a subroutine that I own output values ??in python I get th= e following<br> > error:<br> ><br> > this is my code :<br> ><br> > fullnm,problm,type_bn,neqn,ndisc,t,numjac,mljac,mujac,nummas,mlmas,mum= as,ind<br> > =3D vp.prob()<br> ><br> ><br> > that produce the following errors:<br> ><br> > =A0failed to create intent(cache|hide)|optional array-- must have defi= ned<br> > dimensions but got (-1,)<br> ><br> > _______________________________________________<br> > f2py-users mailing list<br> > <a href=3D"mailto:f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]">f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]</a><b= r> > <a href=3D"http://cens.ioc.ee/mailman/listinfo/f2py-users" target=3D"_= blank">http://cens.ioc.ee/mailman/listinfo/f2py-users</a><br> ><br> ><br> -------------- next part --------------<br> An HTML attachment was scrubbed...<br> URL: <a href=3D"http://cens.ioc.ee/pipermail/f2py-users/attachments/2011112= 5/a552f084/attachment-0001.htm" target=3D"_blank">http://cens.ioc.ee/piperm= ail/f2py-users/attachments/20111125/a552f084/attachment-0001.htm</a><br> <br> ------------------------------<br> <br> _______________________________________________<br> f2py-users mailing list<br> <a href=3D"mailto:f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]">f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]</a><br> <a href=3D"http://cens.ioc.ee/mailman/listinfo/f2py-users" target=3D"_blank= ">http://cens.ioc.ee/mailman/listinfo/f2py-users</a><br> <br> <br> End of f2py-users Digest, Vol 81, Issue 11<br> ******************************************<br> </blockquote></div><br> --000e0ce03d920a4d9a04b35aa590-- --===============5388546545470387151== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ f2py-users mailing list f2py-users-Y4l6ocDipWCuvFJfX82//[email protected] http://cens.ioc.ee/mailman/listinfo/f2py-users --===============5388546545470387151==--