You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is valid fixed-format Fortran, but will cause a standard F90 compiler to raise syntax errors (e.g. godbolt with no arguments). At the moment, PSyclone also fails to parse this with this error:
Parse Error: algorithm.py:parse_fp2: Syntax error in file './make_block_6_1.f':
at line 20
>>> SUBROUTINE make_block_6_1(ierr
Andy's suggestions here were:
Either retry with fixed format is parsing fails (could be expensive) or be a bit smarter and consider the file suffix when creating the parser.
Add a command line flag to PSyclone to override this and force either fixed or free formatted Fortran parsing.
At least this breaks for make_block_6_* files and perhaps also the cause of issues in disort_interface for Socrates.
The text was updated successfully, but these errors were encountered:
As an addendum to the original comment, its not clear what is causing the error for some files and not others. The subroutine header above causes Psyclone/fparser to fail, while this subroutine block is fine:
Socrates contains a number of fixed-format files which are not handled correctly by PSyclone, using the NEMO API.
fparser throws an exception on this code:
This is valid fixed-format Fortran, but will cause a standard F90 compiler to raise syntax errors (e.g. godbolt with no arguments). At the moment, PSyclone also fails to parse this with this error:
Andy's suggestions here were:
At least this breaks for
make_block_6_*
files and perhaps also the cause of issues indisort_interface
for Socrates.The text was updated successfully, but these errors were encountered: