Skip to content

Supporting OpenMP Sentinels #443

@hiker

Description

@hiker

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions