Density went too small

Dear friends
When I run geometry optimization, the input file can run normally, but there is a warning prompt. I change the ecut according to the warning prompt, but no matter I increase or decrease, the warning prompt is in. Please help me solve this problem, with the highest respect.

log:— !WARNING
src_file: m_drivexc.F90
src_line: 711
message: |
Density went too small (lower than xc_denpos) at 558648 points
and was set to xc_denpos = 1.00E-14. Lowest was -0.54E-02.
This might be due to (1) too low boxcut or (2) too low ecut for
pseudopotential core charge, or (3) too low ecut for estimated initial density.
Possible workarounds : increase ecut, or define the input variable densty,
with a value larger than the guess for the decay length, or initialize your,
density with a preliminary LDA or GGA-PBE if you are using a more exotic xc functional.

We need more info on your calculation:

  • PAW or NC?
  • The list of pseudopotentials you’re using and the XC functional
  • The geometry of your system. Do you have lot of vacuum?

Also note that this warning is usually harmless if only the initial SCF iterations are affected. You can ignore this message If the warning disappears in the last iterations and the SCF cycle converges.

Dear gamtteo:
This is ZHAO Yongsheng.
I’m glad to hear from you about my problem.

  1. I use Norm-conserving pseudopotella(NC);
  2. The pseudopotential I used is GGA-PBE and XC is 11;
  3. My system is 3*3 supercells, 5 layers, and the vacuum layer is 15 angstroms;
  4. This warning is not only for the initial SCF loop, but also after at least four cycles.And I found that when IonMov =22 was used,the diamond structure was optimized into a graphite layered structure and the total energy decreased.
    Thank you for taking the time to answer my questions.

Yours faithfully!

Dear ZHAO Yongsheng,
If the warning is there only for the first SCF steps and disappear for the latest SCF cycles, then there is no major problem.
For the diamond to graphite, I guess this is because you put vacuum and the code end up to the graphite (local?) minimum during the relaxation. You said to be the case for ionmov=22, does it means it happens for this ionmov value but not with other ionmov values?
Best wishes,
Eric

Dear Eric,

The current warning (density went too small (lower than XC_ Depos at 279756 points )has been appearing, and the value is constantly changing. I did set up a 15 angstrom vacuum layer and optimized it with ionmov = 2,3,22. It’s not partial graphitization, it’s structural integrity. I’m thinking about whether it’s because I cut the slab structure after I optimized the geometry of the unit cell, or because I chose the wrong value of ionmov.
Bset wish for you.
Yongsheng

Do you know whether your pseudo has non-linear core correction (NLCC)?
The C pseudo from the pseudodojo is generated with NLCC but the other legacy pseudos may not have NLCC.

To understand if the pseudo has NLCC, look at this section of the header:

0.00000   0.00000   0.00000			rchrg,fchrg,qchrg

If NLCC is not used, rchrg is set to 0 (as in this case).

M

Dear Gmatteo:
I’m glad to see your reply. I checked my pseudo pseudopotential file (c.psp8) and its ncll doesn’t seem to be 0, 5.99, 4.0 , 0.0 rchrg fchrg qchrg. At present, I have debugged my program. After adjusting the value of ionmov to 2, the program can run, and the warning still exists, but the SCF calculation can converge. Only in the calculation process, the diamond structure will be optimized to graphite structure, and the total energy changes greatly.

Best wishes

This is my input file:

Dia111-2x2-5lay-15A-slab : computation of the surface total energy

#Definition of the unit cell
acell 9.550676 9.550676 44.916899 # Lattice parameters of slab

Definition of the atom types

ntypat 1
znucl 6

Definition of the atoms

natom 40
typat 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

Definition of the unit cell in Bohr

#acell 9.550676 9.550676 44.916899
angdeg 90.000000 90.000000 120.000000

location of the atoms in Bohr

xcart 0.000000000000 2.757036685944 -0.000000000000
0.000000000000 -0.000000000000 3.899038791656
2.387663841248 1.378518342972 7.798077583313
-0.000000000000 2.757036685944 11.697116851807
-0.000000000000 -0.000000000000 15.596155166626
0.000000000000 -0.000000000000 0.974759697914
2.387663841248 1.378518342972 4.873798370361
-0.000000000000 2.757036685944 8.772836685181
-0.000000000000 -0.000000000000 12.671875953674
2.387663841248 1.378518342972 16.570915222168
4.775327682495 2.757036685944 -0.000000000000
4.775327682495 -0.000000000000 3.899038791656
7.162991523743 1.378518342972 7.798077583313
4.775327682495 2.757036685944 11.697116851807
4.775327682495 -0.000000000000 15.596155166626
4.775327682495 -0.000000000000 0.974759697914
7.162991523743 1.378518342972 4.873798370361
4.775327682495 2.757036685944 8.772836685181
4.775327682495 -0.000000000000 12.671875953674
7.162991523743 1.378518342972 16.570915222168
-2.387663841248 6.892591953278 -0.000000000000
-2.387663841248 4.135555267334 3.899038791656
0.000000000000 5.514073371887 7.798077583313
-2.387663841248 6.892591953278 11.697116851807
-2.387663841248 4.135555267334 15.596155166626
-2.387663841248 4.135555267334 0.974759697914
0.000000000000 5.514073371887 4.873798370361
-2.387663841248 6.892591953278 8.772836685181
-2.387663841248 4.135555267334 12.671875953674
-0.000000000000 5.514073371887 16.570915222168
2.387663841248 6.892591953278 0.000000000000
2.387663841248 4.135555267334 3.899038791656
4.775327682495 5.514073371887 7.798077583313
2.387663841248 6.892591953278 11.697116851807
2.387663841248 4.135555267334 15.596155166626
2.387663841248 4.135555267334 0.974759697914
4.775327682495 5.514073371887 4.873798370361
2.387663841248 6.892591953278 8.772836685181
2.387663841248 4.135555267334 12.671875953674
4.775327682495 5.514073371887 16.570915222168
iatfix 1 11 21 31 6 16 26 36 2 12 22 32 7 17 27 37
natfix 16
chkprim 0
chksymbreak 0
chksymtnons 0
#Definition PSE
pp_dirpath “/home/jkend/ABINIT/CuC6/PAW”
pseudos “C.psp8”
#Definition of the planewave basis set
ecut 40 # Maximal kinetic energy cut-off, in Hartree
#Definition of the k-point grids
ngkpt 5 5 1
nshiftk 2
shiftk 0.5 0.0 0.0
0.0 0.5 0.0
#Definition of the SCF procedure
nstep 60 # Maximal number of SCF cycles
toldff 5.0d-6
#Definition of occupation numbers
occopt 4
tsmear 0.01
#The relaxation
optcell 0
ionmov 2
#ionmov 15
#dtion 0.03
tolmxf 5.0d-5
ntime 100