Re: [f2py] fortran runtime error

Pearu Peterson <[email protected]> Wed, 19 Oct 2011 09:45:21 +0300
Newsgroups gmane.comp.python.f2py.user
Message-ID <[email protected]>

On 10/19/2011 06:20 AM, Youngung Jeong wrote:
> Hi,
>
> When I debug the source Fortran code, I often come across runtime error.
> Whenever I have such an occasion, it just gets to the cmd prompt.
> Is there any way to stay on the Python shell even if the fortran code
> gives the runtime error
> either Fortran or python (f2py) wise?

I am not sure it is possible. Even when overriding gfortran exit 
function (that presumably is responsible for exiting to cmd prompt
on error), continuing executing Fortran code probably will lead
to some more serious errors and segfaults.

However, you could run python via some debugger program. It will
not probably stay in Python shell but gives you execution stacks to 
study when runtime error occurs.

HTH,
Pearu

> I use gfortran (and/or g95).
>
> Young
>
>
>
> _______________________________________________
> f2py-users mailing list
> f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]
> http://cens.ioc.ee/mailman/listinfo/f2py-users