Open rakati opened 2 years ago
Could you not add an exception rule to your text editor?
i think with the space it will be considered as a comment, but i don't know the space between !
and $
it's removed in the generated fortran code!
Could you not add an exception rule to your text editor?
I did when I realized the problem, but I think it's hard to detect these kinds of problems, and this is why we should handle this case.
i think with the space it will be considered as a comment, but i don't know the space between
!
and$
it's removed in the generated fortran code!
Pyccel didn't consider it as a comment, and generated OpenMP code but with a bug.
Describe the bug One of the errors that you may get if you turn on python formatting in your editor, is
Unclassifiable statement
in Fortran with OpenMP. even if your try to copy code from the Pyccel OpenMP tutorials, on saving the file, the Python format will add a space between the#
comment symbol and comment text, so in our case, a space will be added between#
and$ omp parallel [clauses]
. To Reproduce Provide code to reproduce the behavior:Provide the generated code, or the error message:
Expected behavior for the above example, the OpenMP pragma for Fortran doesn't accept space between
!$
andomp
, so removing space between#
and$
in the python code will generate the correct code for Fortran,!$omp parallel ...
Language Fortran
Additional description Pyccel should take care of extra spaces added or need to be added.