[Pw_forum] Error in routine potinit (1): starting and expected charges differ
Dear QE users, Recently I tried to make a 'bands' calculation on my system but running pw.x on QE 5.0.3 version is giving me the following error: *Error in routine potinit (1): starting and expected charges differ * I had carried out a 'scf' and a 'nscf' calculations on the same system eith the same pseusopotential file, but have not faced any error. My input file is as follows: &CONTROL calculation = 'bands' , restart_mode = 'from_scratch' , wf_collect = .false. , outdir = './' , wfcdir = './' , pseudo_dir = '/home/sunetra/Desktop/In.qe/' , prefix = 'In.Pl.scf.4d' , lkpoint_dir = .true. , disk_io = 'default' , verbosity = 'high' , etot_conv_thr = 1.0D-4 , forc_conv_thr = 1.0D-3 , tstress = .true. , tprnfor = .true. , / &SYSTEM ibrav = 0, nat = 2, ntyp = 1, ecutwfc = 30 , ecutrho = 120 , nbnd = 15, input_dft = 'PBE' , occupations = 'smearing' , degauss = 0.03 , smearing = 'gaussian' , / &ELECTRONS electron_maxstep = 100, conv_thr = 1.D-10 , mixing_mode = 'plain' , mixing_beta = 0.5 , mixing_ndim = 4, diagonalization = 'david' , / CELL_PARAMETERS angstrom 4.9536653100.00.0 2.4768326604.290000.0 0.00.0 20.0 ATOMIC_SPECIES In 114.81800 In.pbe-hgh.UPF ATOMIC_POSITIONS angstrom In 2.4768326601.430000.0 In 4.9536653102.860000.0 K_POINTS crystal_b 63 0.00.00.0 1.0 0.020000.020000.0 1.0 0.040000.040000.0 1.0 0.060000.060000.0 1.0 0.080000.080000.0 1.0 0.10.10.0 1.0 0.120000.120000.0 1.0 0.140000.140000.0 1.0 0.160000.160000.0 1.0 0.180000.180000.0 1.0 0.20.20.0 1.0 0.220000.220000.0 1.0 0.240000.240000.0 1.0 0.260000.260000.0 1.0 0.280000.280000.0 1.0 0.30.30.0 1.0 0.320000.320000.0 1.0 0.330000.330000.0 1.0 0.350000.330000.0 1.0 0.370000.330000.0 1.0 0.40.330000.0 1.0 0.430000.330000.0 1.0 0.460000.330000.0 1.0 0.490000.330000.0 1.0 0.520000.330000.0 1.0 0.550000.330000.0 1.0 0.580000.330000.0 1.0 0.610000.330000.0 1.0 0.640000.330000.0 1.0 0.667000.333000.0 1.0 0.640000.30.0 1.0 0.610000.280000.0 1.0 0.580000.260000.0 1.0 0.560000.240000.0 1.0 0.540000.220000.0 1.0 0.520000.20.0 1.0 0.50.180000.0 1.0 0.50.160000.0 1.0 0.50.140000.0 1.0 0.50.120000.0 1.0 0.50.10.0 1.0 0.50.080000.0 1.0 0.50.060000.0 1.0 0.50.040000.0 1.0 0.50.020000.0 1.0 0.50.00.0 1.0 0.470000.00.0 1.0 0.440000.00.0 1.0 0.410000.000
Re: [Pw_forum] Error in routine potinit (1): starting and expected charges differ
Maybe someone more expert about pw.x structure might be more helpful and say if my guess is right. My, possibly wrong, guess is that while in the second run the number of electrons is calculated from the self-consistent charge density generated by the first, scf, run, the total charge is calculated from the pseudos. Moreover, when you set “calculation=‘bands’” the atomic positions are no longer read from the input file, but from the output of the previous run as well. However, because in the second input file, in the ATOMIC_SPECIES card, you exchanged the Cs and I lines, it MIGHT be (but, I repeat, i could be wrong) that the “Cs” positions read from the previous output are attributed to the I pseudo and viceversa for “I” positions. If this is the case, the total charge will be definitely wrong and different from the number of electrons. Try first to give the two lines the same order as in the scf run, if it doesn’t work, other hints will be needed! Giovanni > On 07 Jun 2016, at 05:39, efi dwi indari wrote: > > Dear all, > > I am now calculating nscf of my system : CsPbI3 with Quantum Espresso 5.0.2 > in Ubuntu 14.04. Normally I never had an error while running nscf calculation > but recently I got this notifications: > > Error in routine potinit (1): starting and expected charges differ > > FYI, the system has no total charge and I do not aim to change the charge > too. There was a discussion found out on google that it may be due to the old > version of compiler but this error only appeared in this CsPbI3 system while > calculations of other systems were going well. Hence, I was thinking it is > not a problem of compiler version. Besides, as I aim to compare the > difference of smearing type, I also had run this calculation with 'mv' > smearing but they both gave the same error message. > > Could any body please comment and/or give a suggestion for this case? > > Thank you very much in advance. > > Best Regards, > > Efi Dwi Indari > Research Assistant at Institut Teknologi Bandung, Indonesia > > PS: Please kindly find below both the scf and nscf input files. > > scf input file : > > &control > pseudo_dir='/share/apps/espresso-5.0.2/pseudo/', > outdir='/home/efidwiindari/CsPI/', > prefix='CsPIgs' > wf_collect=.TRUE. > verbosity='high' > / > &system > ibrav=8, > a=10.458100043501, > b=4.8011834430401, > c=17.776100068719696168, > nat=5, > ntyp=3, > ecutwfc= 40.0, > ecutrho= 320.0, > occupations='smearing', > smearing='mp', > degauss=0.01, > tot_charge=0.0, > / > &electrons > mixing_beta=0.4, > / > ATOMIC_SPECIES > Pb 207.20 Pb.pbe-dn-rrkjus_psl.0.2.2.UPF > Cs 132.91 Cs.pbe-mt_bw.UPF > I 126.90 I.pbe-n-rrkjus_psl.0.2.UPF > ATOMIC_POSITIONS crystal > Pb 0.0 0.0 0.0 > Cs 0.5 0.5 0.5 > I0.5 0.0 0.0 > I0.0 0.5 0.0 > I0.0 0.0 0.5 > K_POINTS automatic > 6 12 3 0 0 0 > > nscf input file: > > &control > calculation='bands' > pseudo_dir='/share/apps/espresso-5.0.2/pseudo/', > outdir='/home/efidwiindari/CsPI/', > prefix='CsPIgs' > verbosity='high' > wf_collect=.TRUE. > / > &system > ibrav=8, > a=10.458100043501, > b=4.8011834430401, > c=17.776100068719696168, > nat=5, > ntyp=3, > ecutwfc= 40.0, > ecutrho= 320.0, > occupations='smearing', > smearing='mp', > degauss=0.01, > nbnd=22, > tot_charge=0.0, > / > &electrons > mixing_beta=0.4, > / > &bands > / > ATOMIC_SPECIES > Pb 207.20 Pb.pbe-dn-rrkjus_psl.0.2.2.UPF > I 126.90 I.pbe-n-rrkjus_psl.0.2.UPF > Cs 132.91 Cs.pbe-mt_bw.UPF > ATOMIC_POSITIONS crystal > Pb 0.0 0.0 0.0 > Cs 0.5 0.5 0.5 > I0.5 0.0 0.0 > I0.0 0.5 0.0 > I0.0 0.0 0.5 > K_POINTS > 13 > 0.0 0.0 0.0 1 !G > 0.5 0.0 0.0 2 !X > 0.5 0.5 0.0 3 !S > 0.0 0.5 0.0 4 !Y > 0.0 0.0 0.0 5 !G > 0.0 0.0 0.5 6 !Z > 0.5 0.0 0.5 7 !U > 0.5 0.5 0.5 8 !R > 0.0 0.5 0.5 9 !T > 0.0 0.0 0.5 10 !Z > 0.0 0.5 0.5 11 !T > 0.5 0.0 0.0 12 !X > 0.5 0.5 0.5 13 !R > > ___ > Pw_forum mailing list > Pw_forum@pwscf.org > http://pwscf.org/mailman/listinfo/pw_forum ___ Pw_forum mailing list Pw_forum@pwscf.org http://pwscf.org/mailman/listinfo/pw_forum
[Pw_forum] Error in routine potinit (1): starting and expected charges differ
Dear all, I am now calculating nscf of my system : CsPbI3 with Quantum Espresso 5.0.2 in Ubuntu 14.04. Normally I never had an error while running nscf calculation but recently I got this notifications: Error in routine potinit (1): starting and expected charges differ FYI, the system has no total charge and I do not aim to change the charge too. There was a discussion found out on google that it may be due to the old version of compiler but this error only appeared in this CsPbI3 system while calculations of other systems were going well. Hence, I was thinking it is not a problem of compiler version. Besides, as I aim to compare the difference of smearing type, I also had run this calculation with 'mv' smearing but they both gave the same error message. Could any body please comment and/or give a suggestion for this case? Thank you very much in advance. Best Regards, Efi Dwi Indari Research Assistant at Institut Teknologi Bandung, Indonesia PS: Please kindly find below both the scf and nscf input files. scf input file : &control pseudo_dir='/share/apps/espresso-5.0.2/pseudo/', outdir='/home/efidwiindari/CsPI/', prefix='CsPIgs' wf_collect=.TRUE. verbosity='high' / &system ibrav=8, a=10.458100043501, b=4.8011834430401, c=17.776100068719696168, nat=5, ntyp=3, ecutwfc= 40.0, ecutrho= 320.0, occupations='smearing', smearing='mp', degauss=0.01, tot_charge=0.0, / &electrons mixing_beta=0.4, / ATOMIC_SPECIES Pb 207.20 Pb.pbe-dn-rrkjus_psl.0.2.2.UPF Cs 132.91 Cs.pbe-mt_bw.UPF I 126.90 I.pbe-n-rrkjus_psl.0.2.UPF ATOMIC_POSITIONS crystal Pb 0.0 0.0 0.0 Cs 0.5 0.5 0.5 I0.5 0.0 0.0 I0.0 0.5 0.0 I0.0 0.0 0.5 K_POINTS automatic 6 12 3 0 0 0 nscf input file: &control calculation='bands' pseudo_dir='/share/apps/espresso-5.0.2/pseudo/', outdir='/home/efidwiindari/CsPI/', prefix='CsPIgs' verbosity='high' wf_collect=.TRUE. / &system ibrav=8, a=10.458100043501, b=4.8011834430401, c=17.776100068719696168, nat=5, ntyp=3, ecutwfc= 40.0, ecutrho= 320.0, occupations='smearing', smearing='mp', degauss=0.01, nbnd=22, tot_charge=0.0, / &electrons mixing_beta=0.4, / &bands / ATOMIC_SPECIES Pb 207.20 Pb.pbe-dn-rrkjus_psl.0.2.2.UPF I 126.90 I.pbe-n-rrkjus_psl.0.2.UPF Cs 132.91 Cs.pbe-mt_bw.UPF ATOMIC_POSITIONS crystal Pb 0.0 0.0 0.0 Cs 0.5 0.5 0.5 I0.5 0.0 0.0 I0.0 0.5 0.0 I0.0 0.0 0.5 K_POINTS 13 0.0 0.0 0.0 1 !G 0.5 0.0 0.0 2 !X 0.5 0.5 0.0 3 !S 0.0 0.5 0.0 4 !Y 0.0 0.0 0.0 5 !G 0.0 0.0 0.5 6 !Z 0.5 0.0 0.5 7 !U 0.5 0.5 0.5 8 !R 0.0 0.5 0.5 9 !T 0.0 0.0 0.5 10 !Z 0.0 0.5 0.5 11 !T 0.5 0.0 0.0 12 !X 0.5 0.5 0.5 13 !R ___ Pw_forum mailing list Pw_forum@pwscf.org http://pwscf.org/mailman/listinfo/pw_forum