Hello All:
Well, I recently managed to get some small FEM code to work using
NumPy and some .so modules I created from Fortran90 routines via f2py.
Anyways, my Prof was impressed with f2py but had a simple question
that I'm afriad I didn't precisely know the answer to.
The question is this:
Is
from Thompson for a tight wire problem
#
# Coded by Tyler Hayes March 1, 2007
#
#
# Load the pylab module for plotting (it also imports NumPy)
from pylab import *
# Load the sparse matrix solver symgauss created with f2py
import symgaus
Hi again Pearu:
As you suggested, the gnu95 option works fine on my desktop without
calling the other options, but I think I may have to reinstall
everything from scratch on my laptop as I keep getting that "'name'
must be a string" error message (which doesn't show up on my desktop).
Like I said
Well, I removed the f2py2e directory and reinstalled numpy as you
suggested. Now, I still use the -lgfortran option and the --f90exec
option, but am no longer getting the "NUMERIC" version.
Thank you for the help. You have been more than patient with me :-)
Now all I have to do is get my laptop t
Hi Pearu:
Well, the -l option worked!!! (May you live to be one thousand.)
To be honest though, I had thought I was using NumPy (I even purchased
the NumPy manual). How do I switch f2py to always use NumPy?
Either way, it now works
Cheers,
t.
On 28/02/07, [EMAIL PROTECTED] <[EMAIL PROTECT
Thanks for helping out Pearu,
But it won't even create the .so file using that command. Using what
you suggested, seems to work as it goes through many of the processes
but then f2py stops at:
error: don't know how to compile Fortran code on platform 'posix' with
'gnu95' compiler. Supported compi
Hello All:
I was suggested to post this question here with the f2py experts from
comp.lang.python.
I have been able to use the example F77 files suggested in the f2py
User Manual, but the problems happened when I tried my own F90 file
(attached below.
I am able to create a .so file using the fol