Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
1 View

Error #8383

Hello,

I am trying to install a software named CosmoMC on my Linux 14.04 OS. This software needs Intel Fortran Compiler to be installed and I have the 16.0.1 20151021 version installed. Now, while compiling the software installed I am getting the following error:

type of the passed object dummy arguments.   [LOGLIKE]
    procedure :: LogLike => clik_LnLike
-----------------^
cliklike.f90(26): error #8383: The dummy arguments of an overriding and overridden binding that correspond by position must have the same characteristics, except for the type of the passed object dummy arguments.   [LOGLIKE]
    procedure :: LogLike => clik_lensing_LnLike
-----------------^
compilation aborted for cliklike.f90 (code 1)

I am attaching the lines below from cliklike.f90 , where the errors are being shown. I have attached the .f90 file in case you need more assistance.

 module cliklike
    use clik
    use cmbtypes
    use settings
    use Likelihood
    implicit none

    logical :: use_clik = .false.

    integer, parameter :: dp = kind(1.d0)

    type, extends(CosmologyLikelihood) :: ClikLikelihood
        type(clik_object) :: clikid
        integer(kind=4),dimension(6) :: clik_has_cl, clik_lmax
        integer :: clik_n,clik_ncl,clik_nnuis
        character (len=256), dimension(:), pointer :: names
    contains
    procedure :: LogLike => clik_LnLike
    procedure :: clik_likeinit
    procedure :: do_checks
    end type ClikLikelihood

    type, extends(ClikLikelihood) :: ClikLensingLikelihood
        integer(kind=4) lensing_lmax
    contains
    procedure :: LogLike => clik_lensing_LnLike
    procedure :: clik_likeinit => clik_lensing_likeinit
    end type ClikLensingLikelihood

    private
    integer, dimension(4) :: mapped_index

    public :: clik_readParams, use_clik

    contains

    subroutine clik_readParams(LikeList,Ini)
    class(LikelihoodList) :: LikeList

A solution out of this problem will be highly appreciated.

Thanking you,

Abir S

0 Kudos
2 Replies
Highlighted
1 View

We'd need to see the

We'd need to see the declaration of type CosmologyLikelihood and LogLike to know for sure what the problem is. However, as the error message says, when you do an override of a type-bound procedure, all of the arguments other than the passed argument ("like" in this source) must have the same characteristics (declared type, kind, rank, etc.) The compiler is saying that they don't. Maybe the compiler is mistaken, but you haven't shown us the base type and procedures to know.

I will also comment that it's not unusual for software developers to make coding errors that aren't detected by the compiler they're using at the time, and concluding that the code is ok, only to find that a different/newer compiler detects and reports the error.

Retired 12/31/2016
0 Kudos
Highlighted
Beginner
1 View

I was getting the same error.

I was getting the same error.

Pulling the latest from the git repository made the error go away.

0 Kudos