Call healpix subroutine in MPI code

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Feng-Quan Wu
Posts: 7
Joined: July 25 2007
Affiliation: The National Astronomical Observatories, Chinese Academy of Science

Call healpix subroutine in MPI code

Post by Feng-Quan Wu » May 16 2012

Hi everyone,

I call a healpix subroutine---pix2ang_nest in a series code, It's OK.
But when I call this subroutine in a MPI code, it comes up with following error when I compile:
>==========================
undefined reference to `pix_tools_mp_pix2ang_nest_'
>==========================
I use mpif90(linked with ifort) to compile the file.
Do you have any solution?

Sheng Li
Posts: 57
Joined: May 26 2009
Affiliation: University of Sussex
Contact:

Re: Call healpix subroutine in MPI code

Post by Sheng Li » May 16 2012

Feng-Quan Wu wrote:Hi everyone,

I call a healpix subroutine---pix2ang_nest in a series code, It's OK.
But when I call this subroutine in a MPI code, it comes up with following error when I compile:
>==========================
undefined reference to `pix_tools_mp_pix2ang_nest_'
>==========================
I use mpif90(linked with ifort) to compile the file.
Do you have any solution?
The error said "undefined " variables, so check where and in which file it is called or say used.

To see it explicitly, use debug option while compiling your program.

Post Reply