Author Topic: Numpy in my Pythonic Fortran  (Read 3279 times)

axod

  • Don Well-Buttern' Cracker Crasher, Infernal Affairs
  • Outlandish
  • ***
  • Posts: 474
    • View Profile
Numpy in my Pythonic Fortran
« on: January 01, 2015, 11:39:33 pm »
I remember from my days of lurking, a thread on python's coding fury.
Now it seems that I am catching-up, though some dependencies stay blurry.
 Namely, if nested in the python, fortran lays, is anyone here versed'n it's ways?

Perhaps someone from the navy, would know a little Fortran(90) maybe?
just this

axod

  • Don Well-Buttern' Cracker Crasher, Infernal Affairs
  • Outlandish
  • ***
  • Posts: 474
    • View Profile
Re: Numpy in my Pythonic Fortran
« Reply #1 on: January 04, 2015, 11:54:29 pm »
Ftpy eventually did the trick.  Feels like cheating the fortran.  Works, tho back hurts from all the "hacking".  The whole venture is rather obsessive, strangely addictive and hypnotic.  Not to mention funny:  "not now, honey, I just have to finish compiling Mie scattering libraries before I'm done"
just this

Mesozoic Mister Nigel

  • v=1/3πr2h
  • Deserved It
  • ****
  • Posts: 77698
  • The sky tastes like red exuberance.
    • View Profile
Re: Numpy in my Pythonic Fortran
« Reply #2 on: January 06, 2015, 12:50:51 am »
I'll numpy in your pythonic fortran, all right. Just hold still a minute.
“I’m guessing it was January 2007, a meeting in Bethesda, we got a bag of bees and just started smashing them on the desk,” Charles Wick said. “It was very complicated.”


Mesozoic Mister Nigel

  • v=1/3πr2h
  • Deserved It
  • ****
  • Posts: 77698
  • The sky tastes like red exuberance.
    • View Profile
Re: Numpy in my Pythonic Fortran
« Reply #3 on: January 06, 2015, 12:51:23 am »
Seriously though Hirley0 probably knows what you're talking about.
“I’m guessing it was January 2007, a meeting in Bethesda, we got a bag of bees and just started smashing them on the desk,” Charles Wick said. “It was very complicated.”


axod

  • Don Well-Buttern' Cracker Crasher, Infernal Affairs
  • Outlandish
  • ***
  • Posts: 474
    • View Profile
Re: Numpy in my Pythonic Fortran
« Reply #4 on: January 08, 2015, 12:19:45 am »
Honestly, I would not be surprised if Hirle0 was responsible for getting me this far in the first place.
just this

rong

  • Deserved It
  • ****
  • Posts: 1961
    • View Profile
Re: Numpy in my Pythonic Fortran
« Reply #5 on: January 08, 2015, 12:29:34 am »
I took a Fortran class in college. 

I learned the Fortran is not very good for combinatorial algorithms
"he was a smart feller who felt smart"

axod

  • Don Well-Buttern' Cracker Crasher, Infernal Affairs
  • Outlandish
  • ***
  • Posts: 474
    • View Profile
Re: Numpy in my Pythonic Fortran
« Reply #6 on: January 08, 2015, 04:35:04 am »
The f90 is for numerical propagation/scattering algs, I think.  Compiled them separate and they used to work.  Now I think scipy plots are getting too big-  need too lean out all modules imported, I think.  Or get more memory.  :lulz:
just this

rong

  • Deserved It
  • ****
  • Posts: 1961
    • View Profile
Re: Numpy in my Pythonic Fortran
« Reply #7 on: January 08, 2015, 05:09:35 am »
I was using F77 - it worked but it was cumbersome
"he was a smart feller who felt smart"

axod

  • Don Well-Buttern' Cracker Crasher, Infernal Affairs
  • Outlandish
  • ***
  • Posts: 474
    • View Profile
Re: Numpy in my Pythonic Fortran
« Reply #8 on: January 09, 2015, 12:49:21 am »
Yea, I was using g77, gnu95, then gfortran - reading about the lang's development and was fascinated by the different demands made on it - like de fence dept.s stipulating the inclusion of Unicode parsers back in the 50's.  Fascinating.
just this

axod

  • Don Well-Buttern' Cracker Crasher, Infernal Affairs
  • Outlandish
  • ***
  • Posts: 474
    • View Profile
Re: Numpy in my Pythonic Fortran
« Reply #9 on: January 11, 2015, 08:27:15 pm »
So, hacking away, turns out my fortran bits may not have been properly compiled.  Although I cannot simply build and package the modules into python, seamlessly, with a little repetition I can force the calculations to work with python's "in-line" command prompt.  This is cool because python is flexible enough to bend over backwards, however, without a propper compile, it can take me hours of hacking and jerry-rigging just to do a single calculation.  Is there anyway to take a snap-shot of a working environment in python, I wonder, kind of like saving one's progress?  Will post If it occurs.
just this

axod

  • Don Well-Buttern' Cracker Crasher, Infernal Affairs
  • Outlandish
  • ***
  • Posts: 474
    • View Profile
Re: Numpy in my Pythonic Fortran
« Reply #10 on: January 12, 2015, 09:01:21 pm »
Aaand


just this