RE: [f2py] Segmentation fault for format write
Torppa Johanna <[email protected]>
| Newsgroups | gmane.comp.python.f2py.user |
|---|---|
| Message-ID | <CDC71670B5C4D842B22F4C56819D4D8CB8EC3E27C1@EXVS05.postipalvelut.lounet> |
Formatted output with the 'write' command should work. With both strings and numbers. Try to define the number of string digits, e.g., A20. bw, Johanna Torppa -----Original Message----- From: f2py-users-bounces-Y4l6ocDipWCuvFJfX82//[email protected] [mailto:f2py-users-bounces-Y4l6ocDipWCuvFJfX82//[email protected]] On Behalf Of Shang-Jun Ye Sent: 16. syyskuuta 2009 13:52 To: f2py-users-Y4l6ocDipWCuvFJfX82//[email protected] Subject: [f2py] Segmentation fault for format write Hi, I try to integrate a Fortran output subroutine by Python, the f2py runs successfully, however, when I run the script, I have got a Segmentation fault without any more infomation. does f2py support format write? here is my Fortran subroutine : ! output.f95 subroutine output implicit none write(*,'(1x,a)') 'write something' !write(*,*)'write something' !works well end subroutine output the corresponding python script is import output output.output() ! >>>Segmentation fault _______________________________________________ f2py-users mailing list f2py-users-Y4l6ocDipWCuvFJfX82//[email protected] http://cens.ioc.ee/mailman/listinfo/f2py-users