forked from pearu/f2py
-
Notifications
You must be signed in to change notification settings - Fork 34
Closed
Description
Some UM code contains declarations in OpenMP sentinels, e.g.:
!$ USE compute_chunk_size_mod, ONLY: compute_chunk_size ! Note OpenMP sentinel
Fparser skips these lines as comment lines, and as a result, FAB misses dependencies if compilation is done with OpenMP enabled.
While I have a FAB patch that fixes it (if a comment is found, check if it starts with !$, and then try Use_Stmt.match(...), and that works fine for me), I think it could be useful if fparser could be instructed to handle !$. That should be easier than pre-processing directive (since the string following !$ must be valid Fortran - I believe we could simply pass a flag to the reader to delete the first two characters if they are !$?
If you don't think that this could be useful for fparser, let me know, and I'll get my current FAB workaround merged in.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels