stfc / PSyclone

Domain-specific compiler and code transformation system for Finite Difference/Volume/Element Earth-system models in Fortran
BSD 3-Clause "New" or "Revised" License
104 stars 28 forks source link

Master of PSyclone does not work with master of fparser #205

Closed arporter closed 6 years ago

arporter commented 6 years ago

Last commit to fparser that works was: 92c4c21d70ccebcc28ce4133dede187fa7769371:

Merge: 9cab778 d450724
Author: Andy Porter <arporter@users.noreply.github.com>
Date:   Wed Jun 27 10:24:46 2018 +0100

Merge pull request #85 from stfc/ProcedureAttributes

Complete list of procedure attributes.

The (fparser) changelog since that merge is:

arporter commented 6 years ago

The logical conclusion is that the problem is something to do with the new support for handling comments, even though I thought that was just for fparser2. Maybe I modified the reader too?

arporter commented 6 years ago

Yes, it seems I changed the default behaviour regarding comments - they are now ignored by default. This means we have to edit CommentGen and DirectiveGen in f2pygen.py to tell the readers that they create not to ignore comments.

arporter commented 6 years ago

Once we do that we'll get failures on Travis as that tests against the latest release of fparser (which doesn't yet have this feature in it). However, we already face this problem in #185 as that makes use of the new Comment support in fparser2.

arporter commented 6 years ago

After discussion with @rupertford, we have elected to solve this problem by making fparser a git submodule of PSyclone (with the proviso that when we make a release it must work with a released version of fparser). That work is being done in #212 so I'm closing this issue.