fortran-lang / fprettify

auto-formatter for modern fortran source code
https://pypi.python.org/pypi/fprettify
Other
376 stars 78 forks source link

It removes OpenMP comment blocks #69

Closed paspro closed 4 years ago

paspro commented 4 years ago

This utility removes OpenMP comment blocks wherever it encounters them. For example:

                !$omp parallel do default (none)                             &
                !$omp private (j, l, k2, beta2, im, km, a, i, k)             &
                !$omp shared (jmax, ir, ite, ile, beta2_met, delta)      &
                !$omp shared (isw5, iloss6, ipdev, beta, mei, mci, iext)
                do j = 1, jmax - 1

                end do

becomes:

                ! parallel do default (none)                             &
                ! private (j, l, k2, beta2, im, km, a, i, k)             &
                ! shared (jmax, ir, ite, ile, beta2_met, delta)      &
                ! shared (isw5, iloss6, ipdev, beta, mei, mci, iext)
                do j = 1, jmax - 1

                end do
pseewald commented 4 years ago

I can not confirm this behaviour. What version of Python are you using? How do you invoke fprettify?

paspro commented 4 years ago

I use version 0.3.4 as installed by pip3 on Ubuntu 19.10 and Python 3.7. I invoke it in two ways: either on the command line with the "-i 4" option or by the use of the fprettify add-on on Visual Studio Code after loading a Fortran file with the .f90 extension.

implicitall commented 4 years ago

This was an issue with the VSCode extension.