Issue 19 in f2py: kind selector for intrinsic types doesn't always work

1 view
Skip to first unread message

f2...@googlecode.com

unread,
Apr 16, 2010, 12:53:50 PM4/16/10
to f2py-...@googlegroups.com
Status: New
Owner: omar.aw...@gmail.com
CC: pearu.peterson
Labels: Type-Defect Priority-Medium

New issue 19 by omar.aw...@gmail.com: kind selector for intrinsic types
doesn't always work
http://code.google.com/p/f2py/issues/detail?id=19

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

Attachments:
testissue.f90 100 bytes
f2py_kind_selector.diff 673 bytes

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings


--
Subscription settings: http://groups.google.com/group/f2py-issues/subscribe?hl=en

f2...@googlecode.com

unread,
Apr 16, 2010, 3:23:00 PM4/16/10
to f2py-...@googlegroups.com

Comment #1 on issue 19 by pearu.peterson: kind selector for intrinsic types
Yes, it is a bug. Can you commit your patch, it looks good to me.

f2...@googlecode.com

unread,
Apr 16, 2010, 3:52:53 PM4/16/10
to f2py-...@googlegroups.com
Updates:
Status: Fixed

Comment #2 on issue 19 by omar.aw...@gmail.com: kind selector for intrinsic
thanks!

done
Reply all
Reply to author
Forward
0 new messages