pearu / f2py

Automatically exported from code.google.com/p/f2py
Other
54 stars 37 forks source link

kind selector for intrinsic types doesn't always work #19

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi Pearu,

When declaring a variable fortran allows to pass the KIND intrinsic function 
directly to the 
intrinsic type specifier, e.g.

REAL(KIND(1.0D0)    :: a

the function TypeDeclarationStatement._parse_kind_selector does not allow for 
this case.

I have added an example fortran code and a possible patch

cheers,

omar

Original issue reported on code.google.com by omar.aw...@gmail.com on 16 Apr 2010 at 4:53

Attachments:

GoogleCodeExporter commented 8 years ago
Yes, it is a bug. Can you commit your patch, it looks good to me.

Original comment by pearu.peterson on 16 Apr 2010 at 7:21

GoogleCodeExporter commented 8 years ago
thanks!

done

Original comment by omar.aw...@gmail.com on 16 Apr 2010 at 7:52