fparser
fparser copied to clipboard
Intrinsic `random_number` not recognised
The following code snippet from LFRic (taken from PSyclone's tests/psyad/tl2ad_test.py
real, dimension(npts) :: field
call random_number(field)
does not recognise random_number
as an intrinsic. FParser returns it as:
Call_Stmt(Name('random_number'), Actual_Arg_Spec_List(',', (Name('field'),)))
It should not be a Call_Stmt. I checked - it calls Call_Stmt.match
, but not Intrinsic_Name.match
.
date_and_time
has the same issue.
As has back_trace.
I'll stop listing them :)