Improper setting of KPOINTS led to an error.

Queries about input and output files, running specific calculations, etc.


Moderators: Global Moderator, Moderator

Post Reply
Message
Author
Jike.Wang
Newbie
Newbie
Posts: 15
Joined: Fri Jun 24, 2022 10:13 am

Improper setting of KPOINTS led to an error.

#1 Post by Jike.Wang » Fri Sep 11, 2026 1:59 pm

Hello,

I would like to know what impact KPOINTS has on the calculation besides affecting the accuracy?
When I was calculating a certain structure, I found that if the KPOINTS setting was 441, there would be an error message "ZBRENT: fatal error in bracketing", but if it was set to 451, the calculation could proceed normally.

The relevant files for the two calculations have been uploaded.

Thanks!
Jike

You do not have the required permissions to view the files attached to this post.

andreas.singraber
Global Moderator
Global Moderator
Posts: 378
Joined: Mon Apr 26, 2021 7:40 am

Re: Improper setting of KPOINTS led to an error.

#2 Post by andreas.singraber » Tue Sep 15, 2026 4:44 pm

Hello Jike,

thanks for sharing the input/output files! With those I was able to find an issue with your setup which has nothing to do with the KPOINTS setting. Instead, the initial structure in the POSCAR file seems already to be flawed. Here is a screenshot of the structure, looking along the axis perpendicular to the slab:

slab_small.png

The blue box represents the box boundaries and the atoms outside are just periodic images of the ones inside. As you can see there is an easily visible gap between neighboring rows of atoms. This leads to very large forces from the very beginning of the trajectory. If you visualize the trajectory you will find that it is pretty "wild" with atoms moving all around the box. Most likely this is not what you intended in the first place, in particular with the lower half of the slab in fixed positions.

My guess is that the box was rescaled but the Cartesian coordinates were not. So you should either use direct coordinates or also adapt the Cartesian coordinates to the box change. Please review the POSCAR file and see if you get more reasonable results.

All the best,
Andreas Singraber

You do not have the required permissions to view the files attached to this post.

Post Reply