[f2py] optional statement fails

fabien.wahl at snecma.fr fabien.wahl at snecma.fr
Mon Apr 24 19:09:19 EEST 2006


Bonjour,



Still working with the new f2py included in scipy 0.4.8, under w2k and

python 2.3.5



The "optional" statement does not work anymore.



My signature file is

        subroutine dlltot_tp(i, qt, stg_cond, tot_cond, name, feed, nc) !

in :pytherm:thermtotex.f90

            byte intent(in) :: i

            real*8 intent(in) :: qt

            real*8 intent(in, out), dimension(9) :: stg_cond

            real*8 intent(in, out), dimension(6) :: tot_cond

            character intent(in), dimension(20) :: name*50

            real*8 intent(in), dimension(20) :: feed

            integer intent(in) :: nc

            optional :: name, feed, nc

        end subroutine dlltot_tp



My corresponding fortran is

SUBROUTINE dllTot_TP(I, QT, STG_COND, TOT_COND, NAME, FEED, NC)

      !DEC$ ATTRIBUTES DLLEXPORT::dllTot_TP





      IMPLICIT NONE

      INCLUDE 'ThermEx.inc'

      INCLUDE 'ThermTotEx.inc'

      OPTIONAL :: NAME, FEED, NC



used to work with former version f2py 2.45.241-1926



Using an old .pyd (built with former f2py) works fine

Using a new .pyd (built with present f2py) fails.



Regards,

Fab



--------------------

Fabien WAHL

Ingénieur Etudes Nouvelles

Unité de conception de Turbomachines



SNECMA, Division Moteur Spatiaux

Direction Grosse Propulsion à Liquides

Forêt de Vernon BP 802

27208 VERNON

FRANCE



Tel   +33 (0)2 32 21 72 77

Fax   +33 (0)2 32 21 76 30

mailto:fabien.wahl at snecma.fr







#

  This e-mail and any attached documents may contain confidential or proprietary information. If you are not the intended recipient, please advise the sender immediately and delete this e-mail and all attached documents from your computer system. Any unauthorised disclosure, distribution or copying hereof is prohibited. 



  Ce courriel et les documents qui y sont attaches peuvent contenir des informations confidentielles. Au cas ou vous ne seriez pas le destinataire de ce courriel, vous etes prie d'en informer l'expediteur immediatement et de le detruire  ainsi que tous les documents attaches de votre systeme informatique. Toute divulgation, distribution ou copie du present courriel et des documents attaches sans autorisation prealable de son emetteur est interdite. 

#




More information about the f2py-users mailing list