MRedies / NPY-for-Fortran

A FORTRAN module to write Numpy's *.npy and *.npz files
MIT License
40 stars 9 forks source link

Module won't compile with pgi compilers #7

Open favba opened 2 years ago

favba commented 2 years ago

I can build the module with GNU and Intel compilers but using PGI v 20.4 doesn't work. I get the following errors (I renamed the module to mod_npy for consistency in our project).

PGF90-S-0155-IGNORE_TKR may not be specified for str (mod_npy.F90)
  0 inform,   0 warnings,   1 severes, 0 fatal for dict_str
PGF90-S-0155-IGNORE_TKR may not be specified for str (mod_npy.F90)
PGF90-S-0155-IGNORE_TKR may not be specified for fin_str (mod_npy.F90)
  0 inform,   0 warnings,   2 severes, 0 fatal for shape_str

Thanks for the module, BTW!

MRedies commented 2 years ago

Hey @favba, Thanks for using my library! I don't have have any possibility to try compiling the library with PGI, but I know that PGI has trouble compiling some fortran features depending on its version. Maybe you can help me come up with a patch.

What is this IGNORE_TKR ? Is that a flag you set? It seems this flag isn't happy about my allocatable strings.