Re: [f2py] mixed f77/f90 code

jaspeR <[email protected]> Wed, 24 Nov 2010 06:59:34 +0000 (UTC)
Newsgroups gmane.comp.python.f2py.user
Message-ID <[email protected]>
Pearu Peterson <pearu.peterson@...> writes:

> 
> Hi,
> 
> Could you send a more complete example demonstrating the problem?
> The failure may not be related to f77 and f90 cooperation...
> 
> Pearu

Hi Pearu!

thanks for replying so fast once more... can i mail it to you? i will include a 
makefile. the code dependencies are structured in the following way:

Morse_mod.f90 contains the function subroutine required for the fit, as well as 
all the functions necessary (that is, the function, and its partial derivatives 
after the constants i am optimizing). The main program for the standalone 
fortran compilation is called fit_scalable_pot.f90, for the wrapping in f2py i 
reduced that to fit_gM.f90, excluding the terminal-output-based command 
interface. the main program (fit_scalable_pot.f90) and the reduced subroutine 
for f2py wrapping (fit_gM.f90) call the linpack subroutines. the dependency 
tree is:

lmder1.f
  ◊--lmder.f
      ◊--dpmpar.f,enorm.f,lmpar.f,qrfac.f
                          ◊--dpmpar.f,enorm.f,qrsolv.f

line 175ff. lists the dependencies of lmder.f in detail, same goes for line 
95ff. of lmpar.f. there might be some more cross-dependencies, they can be 
found quickly with grep dpmpar *.f, for example. they are too interwoven to 
give the whole dependency tree.

thanks a lot, again. not only is f2py a great software, the support in this 
mailing list is also superior! all the best,

jaspeR


ps: the original f90 main program fit_scalable_pot.f90 also allows for fit to 
some other potentials. their module files (*_mod.f90) are included for 
completeness to allow test compiling of the main program via the makefile. for 
testing purposes, an example file 'li' is included.




_______________________________________________
f2py-users mailing list
[email protected]
http://cens.ioc.ee/mailman/listinfo/f2py-users