WMAP3: why this error in compilation
-
- Posts: 28
- Joined: May 13 2006
- Affiliation: Theoretical Physics Division, Chern Institute of Mathematics, Nankai University, Tianjin, China
WMAP3: why this error in compilation
After I installed cfitsio and healpix successfully and changed the directories in WMAP_3yr_options.f90 and Makefile of wmap_likelihoodcode_v2p1, an error occurred.
[root@localhost wmap_likelihood]# make
ifort -g -O2 -64 -I. -I/root/CMB/Healpix_2.01/include -I/root/CMB/cfitsio/include -c -o read_archive_map.o read_archive_map.f90
ifort: Command line warning: ignoring unknown option '-64'
ifort -g -O2 -64 -I. -I/root/CMB/Healpix_2.01/include -I/root/CMB/cfitsio/include -c -o read_fits.o read_fits.f90
ifort: Command line warning: ignoring unknown option '-64'
ifort -g -O2 -64 -I. -I/root/CMB/Healpix_2.01/include -I/root/CMB/cfitsio/include -c -o WMAP_3yr_options.o WMAP_3yr_options.f90
ifort: Command line warning: ignoring unknown option '-64'
fortcom: Error: WMAP_3yr_options.f90, line 13: A data initialization-expr is not valid for this object. [WMAP_DATA_DIR]
character(len=*) :: WMAP_data_dir = '/root/CMB/wmap_likelihood/data/'
----------------------^
fortcom: Error: WMAP_3yr_options.f90, line 13: This passed length character name has been used in an invalid context. [WMAP_DATA_DIR]
character(len=*) :: WMAP_data_dir = '/root/CMB/wmap_likelihood/data/'
----------------------^
compilation aborted for WMAP_3yr_options.f90 (code 1)
make: *** [WMAP_3yr_options.o] Error 1
[root@localhost wmap_likelihood]#
There is also the error if using the directory ./data. Why this error "This passed length character name has been used in an invalid context"? Thank you!
[root@localhost wmap_likelihood]# make
ifort -g -O2 -64 -I. -I/root/CMB/Healpix_2.01/include -I/root/CMB/cfitsio/include -c -o read_archive_map.o read_archive_map.f90
ifort: Command line warning: ignoring unknown option '-64'
ifort -g -O2 -64 -I. -I/root/CMB/Healpix_2.01/include -I/root/CMB/cfitsio/include -c -o read_fits.o read_fits.f90
ifort: Command line warning: ignoring unknown option '-64'
ifort -g -O2 -64 -I. -I/root/CMB/Healpix_2.01/include -I/root/CMB/cfitsio/include -c -o WMAP_3yr_options.o WMAP_3yr_options.f90
ifort: Command line warning: ignoring unknown option '-64'
fortcom: Error: WMAP_3yr_options.f90, line 13: A data initialization-expr is not valid for this object. [WMAP_DATA_DIR]
character(len=*) :: WMAP_data_dir = '/root/CMB/wmap_likelihood/data/'
----------------------^
fortcom: Error: WMAP_3yr_options.f90, line 13: This passed length character name has been used in an invalid context. [WMAP_DATA_DIR]
character(len=*) :: WMAP_data_dir = '/root/CMB/wmap_likelihood/data/'
----------------------^
compilation aborted for WMAP_3yr_options.f90 (code 1)
make: *** [WMAP_3yr_options.o] Error 1
[root@localhost wmap_likelihood]#
There is also the error if using the directory ./data. Why this error "This passed length character name has been used in an invalid context"? Thank you!
-
- Posts: 1943
- Joined: September 23 2004
- Affiliation: University of Sussex
- Contact:
Re: WMAP3: why this error in compilation
You need to specify a length, e.g.
Code: Select all
character(len=1024) :: WMAP_data_dir = '/root/CMB/wmap_likelihood/data/'
-
- Posts: 13
- Joined: July 26 2006
- Affiliation: Max-Planck-Institute for Astrophysics
Re: WMAP3: why this error in compilation
Or make it a parameter, like in the original file:Antony Lewis wrote:You need to specify a length, e.g.
Code: Select all
character(len=1024) :: WMAP_data_dir = '/root/CMB/wmap_likelihood/data/'
Code: Select all
character(len=*),parameter :: WMAP_data_dir = '/root/CMB/wmap_likelihood/data/'
-
- Posts: 28
- Joined: May 13 2006
- Affiliation: Theoretical Physics Division, Chern Institute of Mathematics, Nankai University, Tianjin, China
WMAP3: why this error in compilation
It's OK. Thanks a lot.
-
- Posts: 28
- Joined: May 13 2006
- Affiliation: Theoretical Physics Division, Chern Institute of Mathematics, Nankai University, Tianjin, China
WMAP3: why this error in compilation
Unfortunately, there is another error:
[root@localhost wmap_likelihood]# make check
./test | tee output.log
reading in Cls from : /root/CMB/wmap_likelihood/data/fiducial_test_cls.dat
-------------------------------------
WARNING: obsolete interface to MAP2ALM:
cos_theta_cut (6th argument) currently a DP scalar with value
-1.00000
shoud now be replaced with a 2-element vector with values:
0.00000 0.00000
See documentation for details.
-------------------------------------
-------------------------------------
WARNING: obsolete interface to MAP2ALM:
cos_theta_cut (6th argument) currently a DP scalar with value
-1.00000
shoud now be replaced with a 2-element vector with values:
0.00000 0.00000
See documentation for details.
-------------------------------------
Memory allocation error for ninvplninv
diff -w output.log output.std
1,18c1,19
< reading in Cls from : /root/CMB/wmap_likelihood/data/fiducial_test_cls.dat
< -------------------------------------
< WARNING: obsolete interface to MAP2ALM:
< cos_theta_cut (6th argument) currently a DP scalar with value
< -1.00000
< shoud now be replaced with a 2-element vector with values:
< 0.00000 0.00000
< See documentation for details.
< -------------------------------------
< -------------------------------------
< WARNING: obsolete interface to MAP2ALM:
< cos_theta_cut (6th argument) currently a DP scalar with value
< -1.00000
< shoud now be replaced with a 2-element vector with values:
< 0.00000 0.00000
< See documentation for details.
< -------------------------------------
< Memory allocation error for ninvplninv
---
> reading in Cls from : ./data/fiducial_test_cls.dat
> ------------------------------------------------------------
> WMAP likelihood evaluation report:
> number of errors = 0
> ------------------------------------------------------------
> ------------------------------------------------------------------
> Breakdown of -2ln(L)
> ------------------------------------------------------------------
> MASTER TTTT = 1103.5968599076136 for 987 ls
> Beam/ptsrc TT correction = -13.695846851491201
> low l TTTT chi2 = 620.88813828488696 for 666 pixels
> low l TTTT det = -11020.898216770171
> MASTER TETE chi2 = 418.5646795259953 for 426 ls
> MASTER TETE det = 3772.4057135461399
> TT/TE/EE/BB lowl chi2 = 1186.22705078125 for 1172 pixels
> TT/TE/EE/BB lowl det = 15216.863871574402
> ------------------------------------------------------------------
> TOTAL -2ln(L) = 11283.952249998623
> ------------------------------------------------------------------
make: *** [check] Error 1
[root@localhost wmap_likelihood]#
It says "Memory allocation error for ninvplninv". Does this mean my computer system is something wrong?
[root@localhost wmap_likelihood]# make check
./test | tee output.log
reading in Cls from : /root/CMB/wmap_likelihood/data/fiducial_test_cls.dat
-------------------------------------
WARNING: obsolete interface to MAP2ALM:
cos_theta_cut (6th argument) currently a DP scalar with value
-1.00000
shoud now be replaced with a 2-element vector with values:
0.00000 0.00000
See documentation for details.
-------------------------------------
-------------------------------------
WARNING: obsolete interface to MAP2ALM:
cos_theta_cut (6th argument) currently a DP scalar with value
-1.00000
shoud now be replaced with a 2-element vector with values:
0.00000 0.00000
See documentation for details.
-------------------------------------
Memory allocation error for ninvplninv
diff -w output.log output.std
1,18c1,19
< reading in Cls from : /root/CMB/wmap_likelihood/data/fiducial_test_cls.dat
< -------------------------------------
< WARNING: obsolete interface to MAP2ALM:
< cos_theta_cut (6th argument) currently a DP scalar with value
< -1.00000
< shoud now be replaced with a 2-element vector with values:
< 0.00000 0.00000
< See documentation for details.
< -------------------------------------
< -------------------------------------
< WARNING: obsolete interface to MAP2ALM:
< cos_theta_cut (6th argument) currently a DP scalar with value
< -1.00000
< shoud now be replaced with a 2-element vector with values:
< 0.00000 0.00000
< See documentation for details.
< -------------------------------------
< Memory allocation error for ninvplninv
---
> reading in Cls from : ./data/fiducial_test_cls.dat
> ------------------------------------------------------------
> WMAP likelihood evaluation report:
> number of errors = 0
> ------------------------------------------------------------
> ------------------------------------------------------------------
> Breakdown of -2ln(L)
> ------------------------------------------------------------------
> MASTER TTTT = 1103.5968599076136 for 987 ls
> Beam/ptsrc TT correction = -13.695846851491201
> low l TTTT chi2 = 620.88813828488696 for 666 pixels
> low l TTTT det = -11020.898216770171
> MASTER TETE chi2 = 418.5646795259953 for 426 ls
> MASTER TETE det = 3772.4057135461399
> TT/TE/EE/BB lowl chi2 = 1186.22705078125 for 1172 pixels
> TT/TE/EE/BB lowl det = 15216.863871574402
> ------------------------------------------------------------------
> TOTAL -2ln(L) = 11283.952249998623
> ------------------------------------------------------------------
make: *** [check] Error 1
[root@localhost wmap_likelihood]#
It says "Memory allocation error for ninvplninv". Does this mean my computer system is something wrong?
WMAP3: why this error in compilation
ninvplninv is a very large array (24 x 1532 x 1532 x 2). The computer needs to be able to allocate about 430 MB of RAM in order to store it. If your computer doesn't have enough RAM (or at least a big enough swap file), you'll get an error.