Trouble with hybrid calculation in ISMEAR=-2

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


Moderators: Global Moderator, Moderator

Locked
Message
Author
Kousei
Newbie
Newbie
Posts: 10
Joined: Wed Oct 27, 2021 6:19 am

Trouble with hybrid calculation in ISMEAR=-2

#1 Post by Kousei » Sun Nov 06, 2022 9:09 am

Hello Everyone,

I am performing a verification related to the following topic.
https://www.vasp.at/forum/viewtopic.php ... RWE#p21265
Specifically, we are using VASP 6.3.2 to perform hybrid calculations for BaCl2, and during the ISIF=-2 relaxation, the fixation of the occupancy rate is off.
I am aware that the version upgrade has fixed the bug related to ISMEAR=-2 that was reported in VASP 6.1.0. Is there something wrong with my configuration?
I would like to hear your opinion.

Best regards.

Kousei
Newbie
Newbie
Posts: 10
Joined: Wed Oct 27, 2021 6:19 am

Re: Trouble with hybrid calculation in ISMEAR=-2

#2 Post by Kousei » Fri Nov 18, 2022 5:28 pm

I forgot to attach the file. Here it is.
You do not have the required permissions to view the files attached to this post.

henrique_miranda
Global Moderator
Global Moderator
Posts: 501
Joined: Mon Nov 04, 2019 12:41 pm
Contact:

Re: Trouble with hybrid calculation in ISMEAR=-2

#3 Post by henrique_miranda » Mon Nov 21, 2022 8:23 am

I did not quite understand your question.
What do you mean by "the fixation of the occupancy rate is off"?
What would you expect to obtain and what did you obtain?
Do you mean that even after implementing the bugfix in the post you linked the occupations are still not fixed during the ionic relaxation loop?

Kousei
Newbie
Newbie
Posts: 10
Joined: Wed Oct 27, 2021 6:19 am

Re: Trouble with hybrid calculation in ISMEAR=-2

#4 Post by Kousei » Mon Nov 21, 2022 10:48 am

It's correct.

henrique_miranda
Global Moderator
Global Moderator
Posts: 501
Joined: Mon Nov 04, 2019 12:41 pm
Contact:

Re: Trouble with hybrid calculation in ISMEAR=-2

#5 Post by henrique_miranda » Tue Nov 22, 2022 9:54 am

I changed the name of the topic. Before you wrote ISIF=-2 but I guess you mean ISMEAR=-2.

I managed to reproduce the issue.
It seems that the option to keep the occupancies fixed is broken in vasp 6.3.2.
The easiest way to fix it is by modifying the following lines in the DENSTA routine in dos.F

Code: Select all

      [...]
      ELSE IF ((KPOINTS%ISMEAR==-5).OR.(KPOINTS%ISMEAR==-15)) THEN
        CALL DENTET[...]
      ELSE
        CALL DENMP[....]
      ENDIF
to

Code: Select all

      [...]
      ELSE IF ((KPOINTS%ISMEAR==-5).OR.(KPOINTS%ISMEAR==-15)) THEN
        CALL DENTET[...]
      ELSE IF (KPOINTS%ISMEAR==-2) THEN
        ! do nothing here, otherwise, the occupations are recomputed
      ELSE
        CALL DENMP[....]
      ENDIF
Let me know if this solves the problem for you.
We will perform further tests and include this fix in a future release of VASP.
Thanks for reporting it :D

Kousei
Newbie
Newbie
Posts: 10
Joined: Wed Oct 27, 2021 6:19 am

Re: Trouble with hybrid calculation in ISMEAR=-2

#6 Post by Kousei » Thu Nov 24, 2022 3:31 am

The suggested modifications have allowed me to successfully perform structural relaxation while keeping the occupations fixed.

Thank you very much!

Locked