Open LonelyCat124 opened 1 year ago
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:
SUBROUTINE write_profile(ierr
& , n_level, n_column_profile, i_data_group, i_data_type, profile
& , l_reference, n_level_ref, p_ref, z_ref
& , name_profile, length
& , nd_cdl_dimen, nd_cdl_dimen_size, nd_cdl_data, nd_cdl_var
& )
This may be an fparser issue not a PSyclone bug (not 100%), I will make an issue there.
FParser issue: https://github.com/stfc/fparser/issues/420
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.