astro-informatics / s2let-archive

Fast wavelet transforms on the sphere
http://astro-informatics.github.io/s2let
GNU General Public License v2.0
12 stars 8 forks source link

Bug in interface to Healpix #3

Closed mreineck closed 3 years ago

mreineck commented 7 years ago

When reading/writing Healpix files, the C side (in s2let_hpx.c) calls Fortran routines (in s2let_hpx.f90) and passes file names as typical NULL-terminated "char *". However, the Fortran side expects a variable of type "character(len=filenamelen)". These types are incompatible, and calling one of these routines will in almost all cases lead to a segmentation fault. If there is interest, I can provide a fixed version. Please let me know.

mreineck commented 7 years ago

Pull request #4 contains a fix for this issue.