Re: [f2py] line length
Al Niessner <[email protected]> Tue, 10 Aug 2010 14:48:28 -0700
| Newsgroups | gmane.comp.python.f2py.user |
|---|---|
| Message-ID | <[email protected]> |
rng is defined as 'REAL(pr) FUNCTION RNG(nts_in)' in mathsub.f. So, in the process of debugging this, I created another small test with RNG in checks.f90 that you already have. I could not get it to compile -- yes I did a 'use kinds' in the checks module -- until I mad it REAL(8) FUNCTION RNG(nts_in)'. I can send you the example if you want, but I am pretty sure this is an f2py thing. However, I made the maintainer of mathsub.f change it from F77 to F90 and now it just works. I am happy to keep on with debugging this problem if you want to continue with it. Let me work on a more realistic example and see if it fails the same way. On Tue, 2010-08-10 at 12:37 -0700, Pearu Peterson wrote: > On Tue, Aug 10, 2010 at 2:12 AM, Al Niessner <[email protected]> wrote: > > > > I may not care about the long lines, but I do care about this: > > n [1]: import mathsub > > --------------------------------------------------------------------------- > > ImportError Traceback (most recent call > > last) > > > > /home/niessner/Projects/MACOS/Test/<ipython console> in <module>() > > > > ImportError: ./mathsub.so: undefined symbol: rng_ > > > > In [2]: > > > > > > > > Here is my make command: > > > > $(F2PY) -c $^ -m $@ --f77flags=-ffixed-line-length-none skip: > > printmsg_on printmsg_level prtfmtarray_dbl prtfmtarray_int > > > > It shows the flags and stuff that I am using. I attached the output from > > the make process. I cannot find anything wrong looking in the output > > except these strange get parameter messages. If you can give me a clue I > > would appreciate it. > > I noticed also a block mismatch message in the log file. I have to see > the code to find out what could be wrong. Try to find out what > defines mg and make sure that its source or the containing library > is used in the f2py command line. > > Pearu > > _______________________________________________ > f2py-users mailing list > f2py-users-Y4l6ocDipWCuvFJfX82//[email protected] > http://cens.ioc.ee/mailman/listinfo/f2py-users -- Al Niessner 818.354.0859 -------- | dS | >= 0 --------