ich habe ein kleines problem im zusammenspiel zwischen wxPython und f2py. Habe nicht die leiseste Ahnung, woran es liegen könnte und bin deshalb auch nicht sicher, ob ich hier im wxPython Bereich richtig bin. Also, mal von vorn:
Ich konnte das Problem schon ziemlich weit runterbrechen. Ich habe eine fortran subroutine, die namelist input lesen soll und erstelle mittels f2py ein python modul.
Fortran Code:
Code: Alles auswählen
subroutine simple()
implicit none
real :: a,b
NAMELIST /test/ a, b
READ(*,test)
WRITE(*,test)
end subroutine simple
Code: Alles auswählen
import wx
from test import simple
class app(wx.App):
def OnInit(self):
simple()
self.frame = frame()
self.frame.Show(True)
return True
class frame(wx.Frame):
def __init__(self,parent=None):
wx.Frame.__init__(self,parent,-1)
simple()
app1=app()
app1.MainLoop()
Code: Alles auswählen
&test a=1.123 b=0.123/
&TEST
A= 1.12300003 ,
B= 0.123000003 ,
/
&test a=1.123 b=0.123/
&TEST
A= 1.00000000 ,
B= 0.00000000 ,
/
Danke!