Page 1 of 1

problems when transfering HealpixMap into ppmfimes

Posted: July 13 2018
by YS Yun
When I run the reconstruct codes from the lenspix, I wanna export the quadraticphi map.

234 call HealpixMap2Alm(H,M, A,lmax)
236 call QuadraticPhi(H,A, MGradT, LensedCl, Noise, 2,lmax)
238 call HealpixVis_Map2ppmFile(QuadraticPhi_map,'QuadraticPhi_map')
240 call HealpixMap2Alm(H, MGradT, A,lmax_est)

when the project run into 238th line, it returned that:

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:
#0 0x7FEDA6302E08
#1 0x7FEDA6301F90
#2 0x7FEDA58164AF
#3 0x463E54 in __healpixvis_MOD_healpixvis_map2ppm2.constprop.3 at HealpixVis.f90:?
#4 0x464D04 in __healpixvis_MOD_healpixvis_map2ppm
#5 0x4659F3 in __healpixvis_MOD_healpixvis_map2ppmfile
#6 0x4676FB in MAIN__ at LensReconExample.f90:?
Segmentation fault (core dumped)

So how should I solve this problem?