problem with occupation

Bug #219236 reported by claudio
2
Affects Status Importance Assigned to Milestone
ABINIT
Invalid
High
Yann Pouillon

Bug Description

I tryed to fix the occupation in a calculation but I obtain this messaege:

>" chkneu: nelect_occ= 0.80000000E+01, zval= 0.80000000E+01,
> and input value of charge= 0.00000000000000E+00,
> nelec_occ is computed from occ and wtk
> zval is nominal charge of all nuclei, computed from zion (read in psp),
> charge is an input variable (usually 0).
>
> ERROR - These must obey zval-nelect_occ=charge to better than 0.10E-07
> This is not the case.
> Action : check input file for occ,wtk, and charge.
> Note that wtk is NOT automatically normalized when occopt=2,
> but IS automatically normalized otherwise."
>

even if the sum zval-nelect_occ=charge
                          0.80000000E+01-0.80000000E+01=0.0

with a precision higher than 0.10E-07

Revision history for this message
claudio (claudio-attaccalite) wrote :
Yann Pouillon (pouillon)
Changed in abinit:
importance: Undecided → High
Revision history for this message
Yann Pouillon (pouillon) wrote :

Could you tell us which version you are using?

Revision history for this message
Yann Pouillon (pouillon) wrote :

I reproduced the bug in 5.5/pouillon/5.5.4-public/91.

Changed in abinit:
status: New → Confirmed
Revision history for this message
Yann Pouillon (pouillon) wrote :

The problem was coming from the charge balance being required to be less than 1.0E-11 instead of 1.0E-07.

Will be released in ABINIT 5.5.4. In the meantime you may used the attached patch.

Changed in abinit:
assignee: nobody → pouillon
status: Confirmed → Fix Committed
Revision history for this message
Yann Pouillon (pouillon) wrote :

My fix was not one. Then I have to reopen this bug and consult the ABINIT developers.

Changed in abinit:
status: Fix Committed → In Progress
Revision history for this message
Yann Pouillon (pouillon) wrote :

After a little bit of thinking, this cannot be considered as a bug. See ~abinit/src/13iovars/chkneu.F90 for details.

We may consider to let the user bypass the check, though. Any comment on this?

Changed in abinit:
status: In Progress → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.