<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:΢ÈíÑźÚ
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Dear Pang Rui,<br><br>Unconverged eigenvalues may indicate that the Hamiltonian is ill conditioned, i.e. it is no longer a Hermitian matrix and is not physical. This may be due to the incorrect description of the crystal, or improper magnetization settings.<br><br>First check your input using XCrysDen or other programms compatible with pwscf. Use fractional coordinates instead of cartesian coordinates, since cif files use fractional coordinates and any coordinate conversion is potential of risk. Also, add celldm(1) = 1.889726125 to the namelist 'SYSTEM' and specify 'CELL_PARAMETERS {alat}', since XCrysDen cannot recognize 'CELL_PARAMETERS {angstrom}'.<br><br>In the nscf calculation the starting magnetizaiton is read from previous scf run. Since you mentione that the scf calculation ended successfully while the nscf calculation crashed, there might be inconsistency betwen the scf and nscf calculation. Add the 'prefix' flag to the namelist 'CONTROL' in both scf and nscf input and assign the same value.<br><br><br>If it will not help, check carefully if you have successfully determined the groud state of a magnetic system. It requires a lot of tests to check whether the ground state is non-magnetic, ferro-magnetic or anti-ferro-magnetic by varying starting_magnetizaiton(i).<br><br>Finally, it seems that you specified a lot of empty bands in nscf calculation. The 'cg' style diagonalization is more stable in this case. And if you are generating wavefunctions for GW/BSE calculations, be aware that the GW/BSE programm may require norm-conserving pseudo-potentials.<br><br>Yunhai Li<br>Doctoral Student<br>Department of Physics, Southeast University, P.R.C.<br><br><div>> Date: Mon, 10 Nov 2014 10:10:36 +0800<br>> From: pang.r@sustc.edu.cn<br>> To: pw_forum@pwscf.org<br>> Subject: [Pw_forum] Problem in nscf calculation<br>> <br>> Dear all<br>> I am trying a nscf calculation on a slab model. The scf converged well.<br>> But when I switched to nscf calculation, c_bands convergence warning<br>> appeared, and the calculation ended with an error like this<br>>      CG style diagonalization<br>>      c_bands: ** eigenvalues not converged<br>>      c_bands: ** eigenvalues not converged<br>>      c_bands: ** eigenvalues not converged<br>>      c_bands: ** eigenvalues not converged<br>>      c_bands: ** eigenvalues not converged<br>>      c_bands: 97 eigenvalues not converged<br>>      c_bands: ** eigenvalues not converged<br>>      c_bands: ** eigenvalues not converged<br>>      c_bands: ** eigenvalues not converged<br>>      c_bands: 98 eigenvalues not converged<br>>      c_bands: ** eigenvalues not converged<br>>      c_bands: ** eigenvalues not converged<br>>      c_bands: ** eigenvalues not converged<br>>      c_bands: ** eigenvalues not converged<br>>      c_bands: ** eigenvalues not converged<br>>      c_bands: ** eigenvalues not converged<br>>      c_bands: ** eigenvalues not converged<br>>      c_bands: ** eigenvalues not converged<br>>      c_bands: ** eigenvalues not converged<br>>      c_bands: ** eigenvalues not converged<br>> <br>> <br>> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br>>      Error in routine davcio (10):<br>>      error while reading from file<br>> <br>> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br>> <br>>      stopping ...<br>> <br>> Neither switching diagonalization methods nor increasing nbnd can solve<br>> this problem. <br>> <br>> Could someone help me? The following is the input file<br>> scf part:<br>>  &control<br>>     pseudo_dir = "~/QE5/pseudo"<br>>     outdir="./",<br>>     calculation="scf"<br>>  /<br>>  &system<br>>     ibrav=  0, nat=  133, ntyp= 3,<br>>     ecutwfc = 40.0<br>>     occupations='smearing', <br>>     degauss=0.01,<br>>     smearing='gaussian'<br>>     starting_magnetization(1)= 0.0<br>>     starting_magnetization(2)=0.1<br>>     starting_magnetization(3)=0.1<br>>     nspin=2<br>>     nbnd=800<br>>     nosym=.true.<br>> /<br>>  &electrons<br>>     mixing_beta = 0.05<br>>     electron_maxstep=300<br>>     startingpot='file'<br>>     startingwfc='file'<br>>  /<br>> ATOMIC_SPECIES<br>>  C 12 C.pbe-n-kjpaw_psl.0.1.UPF<br>>  Ni 58 Ni.pbe-n-kjpaw_psl.0.1.UPF<br>>  Ni2 58 Ni.pbe-n-kjpaw_psl.0.1.UPF<br>> ATOMIC_POSITIONS angstrom<br>> ......<br>> K_POINTS {automatic}<br>> 4 4 1 0 0 0<br>> CELL_PARAMETERS angstrom<br>>     9.9673770000000008    0.0000000000000000    0.0000000000000000<br>>     -4.9836885000000004    8.6320016909999993    0.0000000000000000<br>>      0.0000000000000000    0.0000000000000000   27.0000000000000000<br>> nscf part:<br>>  &control<br>>     pseudo_dir = "~/QE5/pseudo"<br>>     outdir="./",<br>>     calculation="nscf"<br>>  /<br>>  &system<br>>     ibrav=  0, nat=  133, ntyp= 3,<br>>     ecutwfc = 40.0<br>>     occupations='smearing', <br>>     degauss=0.01,<br>>     smearing='gaussian'<br>>     starting_magnetization(1)= 0.0<br>>     starting_magnetization(2)=0.1<br>>     starting_magnetization(3)=0.1<br>>     nspin=2<br>>     nbnd=800<br>>     nosym=.true.<br>> /<br>>  &electrons<br>>     mixing_beta = 0.05<br>>     electron_maxstep=300<br>>     startingpot='file'<br>>     startingwfc='file'<br>>     diagonalization='cg'<br>>  /<br>> ATOMIC_SPECIES<br>>  C 12 C.pbe-n-kjpaw_psl.0.1.UPF<br>>  Ni 58 Ni.pbe-n-kjpaw_psl.0.1.UPF<br>>  Ni2 58 Ni.pbe-n-kjpaw_psl.0.1.UPF<br>> ATOMIC_POSITIONS angstrom<br>> ........<br>> K_POINTS {crystal}<br>> 16<br>> 0     0       0       0.0625<br>> 0  0.25    0       0.0625<br>> 0  0.5     0       0.0625<br>> 0  0.75    0       0.0625<br>> 0.25       0       0       0.0625<br>> 0.25       0.25    0       0.0625<br>> 0.25       0.5     0       0.0625<br>> 0.25       0.75    0       0.0625<br>> 0.5        0       0       0.0625<br>> 0.5        0.25    0       0.0625<br>> 0.5        0.5     0       0.0625<br>> 0.5        0.75    0       0.0625<br>> 0.75       0       0       0.0625<br>> 0.75       0.25    0       0.0625<br>> 0.75       0.5     0       0.0625<br>> 0.75       0.75    0       0.0625<br>> CELL_PARAMETERS angstrom<br>>     9.9673770000000008    0.0000000000000000    0.0000000000000000<br>>     -4.9836885000000004    8.6320016909999993    0.0000000000000000<br>>      0.0000000000000000    0.0000000000000000   27.0000000000000000<br>> -- <br>> PostDoc<br>> Department of Physics, South University of Science and Technology of China<br>> Shenzhen, Guangdong, PRC, 518500<br>> _______________________________________________<br>> Pw_forum mailing list<br>> Pw_forum@pwscf.org<br>> http://pwscf.org/mailman/listinfo/pw_forum<br></div>                                      </div></body>
</html>