Problems running VASP: crashes, internal errors, "wrong" results.
Moderators: Global Moderator, Moderator
-
daniel_kaplan
- Newbie

- Posts: 2
- Joined: Thu Mar 21, 2024 2:41 pm
#1
Post
by daniel_kaplan » Sun Dec 21, 2025 7:47 pm
Hello all,
I'm encountering the following issue when specifying LOCPROJ using a range specification of sites, i.e.,
As opposed to
.
Specifying using 1-6 returns
LPRJ_READER: ERROR: site index of function: 9 out of range: -6
While the latter works (apparently).
Any advice? POSCAR and INCAR are attached.
You do not have the required permissions to view the files attached to this post.
-
daniel_kaplan
- Newbie

- Posts: 2
- Joined: Thu Mar 21, 2024 2:41 pm
#3
Post
by daniel_kaplan » Tue Dec 23, 2025 3:23 am
You do not have the required permissions to view the files attached to this post.
-
ferenc_karsai
- Global Moderator

- Posts: 581
- Joined: Mon Nov 04, 2019 12:44 pm
#4
Post
by ferenc_karsai » Tue Dec 23, 2025 8:30 am
Thanks for reporting that. I could reproduce the behavior with VASP.6.5.1 and also with our latest development version.
I see the LOCPROJ description says that "1-6" should be a permitted way of setting the atomic sites.
I will report this problem to a colleague who works on the LOCPROJ file. He is now on christmas holidays so it will take a while until he will be able to work on a fix.
Until that please specify each atomic site explicitely.
-
henrique_miranda
- Global Moderator

- Posts: 578
- Joined: Mon Nov 04, 2019 12:41 pm
-
Contact:
#5
Post
by henrique_miranda » Fri Jan 23, 2026 9:56 am
Sorry for my delayed answer.
Indeed this is wrong behaviour from our parser.
We will try to fix it as soon as possible.
In the meantime a workaround is to use (add spaces around the dash):