CosmoCoffee Forum Index CosmoCoffee

 
 FAQFAQ   SearchSearch  MemberlistSmartFeed   MemberlistMemberlist    RegisterRegister 
   ProfileProfile   Log inLog in 
Arxiv New Filter | Bookmarks & clubs | Arxiv ref/author:

How Do You Read In Alms in Healpix f90?
 
Post new topic   Reply to topic    CosmoCoffee Forum Index -> Computers and software
View previous topic :: View next topic  
Author Message
Joseph Smidt



Joined: 05 May 2009
Posts: 7
Affiliation: UC Irvine

PostPosted: October 03 2009  Reply with quote

I am new to healpix and would like to create a program that reads in alms form a fits file. Here is my test code I am trying:

Code:
program test
use healpix_types
use fitstools
implicit none
integer(I4B) :: nside, lmax, mmax, npix, n_plm
complex(SPC), dimension(:,:,:), allocatable :: alm
character(len=80), dimension(1:80,1:3) :: header
nside=512 ; lmax=1024 ; mmax=lmax
allocate(alm(1:3,0:lmax,0:mmax))
header = ''

call fits2alms('alm_7.fits', 65*66/2, alm, 3, header, 80, 3)
end program test


I am trying to compile like this:

Code:
ifort -O test.f90 -L/home/jsmidt/lib/healpix -I/home/jsmidt/include/healpix  -L/usr/local/cfitsio/lib -lhealpix -lcfitsio -o ./test


Which then gives me this error:
Code:

fortcom: Error: test.f90, line 12: There is no matching specific subroutine for this generic subroutine call.   [FITS2ALMS]
call fits2alms('alm_7.fits', 1023*1024/2, alm, 3, header, 80, 3)
-----^
compilation aborted for test.f90 (code 1)


Would someone mind helping figure out how to get this program to work? I am confused because it states "no matching specific subroutine for this generic subroutine call" and yet the healpix website makes it sound like this is a subroutine from fitstools: http://healpix.jpl.nasa.gov/html/subroutinesnode28.htm.

Thanks.
Back to top
View user's profile  
Joseph Smidt



Joined: 05 May 2009
Posts: 7
Affiliation: UC Irvine

PostPosted: October 03 2009  Reply with quote

Okay, I figured it out. Thanks anyways.
Back to top
View user's profile  
Mariana Cunha



Joined: 26 Oct 2011
Posts: 1
Affiliation: INPE

PostPosted: October 26 2011  Reply with quote

Hi!

I have a similar problem. I'm trying to compile sky_ng_sim.f90 with a modification (I put a 'call dump_alms') and the same error appears: "sky_ng_sim_bin_cunha.f90(485): error #6285: There is no matching specific subroutine for this generic subroutine call. [DUMP_ALMS] ".

Have you already solved your problem? Could you tell me how you did it?

Thank you,

Mariana
Back to top
View user's profile [ Hidden ]
Leonidas Christodoulou



Joined: 30 Jan 2008
Posts: 2
Affiliation: University of Sussex

PostPosted: October 10 2012  Reply with quote

Hi, I just want to post a possible solution for this compilation error. ifort and gfortran give this kind of error when a variable that goes inside the Healpix routine has been declared with a different type in the main program than the one specified by Healpix.
Back to top
View user's profile  
Display posts from previous:   
Post new topic   Reply to topic    CosmoCoffee Forum Index -> Computers and software All times are GMT + 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group. Sponsored by WordWeb online dictionary and dictionary software.