Grasshopper

algorithmic modeling for Rhino

Does anyone know how to call Fortran program from GHPython?

I've tried it for a couple of days though, I don't still have any idea.

I found someways on internet. One is to use F2py, other is that to call 

Shared library in which Fortran program is stored.
I think my way was something wrong so I couldn't do it

I know Fortran is old-fashioned language but I have to use.

if there is someone know how to deal with it, plz tell me!!!!

 

Views: 293

Replies to This Discussion

It's important to note that the version of Python used by Rhino (and the GHPython component) is the .NET version (known as IronPython). This means that there are several Python modules developed for use with CPython (the standard Python) that will not (easily) work with GHPython. This is especially true for modules which depend on C or Fortran for the heavy lifting (such as Numpy). So while I won't rule it out, I imagine you're going to have a hard time implementing Fortran and GHPython. That said, try Googling Fortran and IronPython (64 bit) and see if anything pops up.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service