Page 1 of 1

Error: Type mismatch in argument

Posted: Tue Feb 12, 2019 10:28 pm
by fkh
Dear All
this error is observed.
( abinit-8.10.2 , intle quad core 6600 , ( i7) , fedora 15 , serial ,)

.....
e=native -march=native -g -ffree-line-length-none -c -o m_spin_hist.o m_spin_hist.F90
m_spin_hist.F90:484.37:

hist%ihist=spin_hist_t_findIndex(hist,1)
1
Error: Type mismatch in argument 'hist' at (1); passed CLASS(spin_hist_t) to TYPE(spin_hist_t)
m_spin_hist.F90:444.28:

i=spin_hist_t_findIndex(hist,step=j)
1
Error: Type mismatch in argument 'hist' at (1); passed CLASS(spin_hist_t) to TYPE(spin_hist_t)
make[3]: *** [m_spin_hist.o] Error 1
make[3]: Leaving directory `/home/fer/abinit-8.10.2/src/78_effpot'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/fer/abinit-8.10.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/fer/abinit-8.10.2'
make: *** [all] Error 2

thanks in advance
Khazali Fereydoon

Re: Error: Type mismatch in argument  [SOLVED]

Posted: Tue Feb 12, 2019 11:31 pm
by jbeuken
Hi,

what is the version of your compiler?

Code: Select all

gcc --version
gfortran --version


we support only gcc >= 4.9

regards

jmb