Queries about input and output files, running specific calculations, etc.
Moderators: Global Moderator, Moderator
-
sophie_weber1
- Newbie

- Posts: 14
- Joined: Mon Apr 28, 2025 2:27 pm
#1
Post
by sophie_weber1 » Tue Sep 09, 2025 7:04 pm
Hello,
I would like to perform a set of calculations where I adjust the strength of spin-orbit coupling within the VASP code. I have seen some instructions online referring to modifying the relativistic.f90 source code file, but this was for versions 5x of VASP.
If you could clarify whether that's still the same for VASP versions 6.4 and above, and if so exactly which line to modify and how, I'd appreciate it.
Thank you very much in advance.
-
max_liebetreu
- Global Moderator

- Posts: 45
- Joined: Mon Mar 03, 2025 2:42 pm
#2
Post
by max_liebetreu » Wed Sep 10, 2025 7:51 am
Hello,
Thank you for reaching out to us!
I will confer with my spin-coupling colleagues and get back to you - but in the meantime, so that I can convey to them the full picture and offer the best possible solution, could you perhaps:
- provide a link to the instructions you found (if you still happen to know where)?
- tell us more about the context in which you want to modify that strength?
Best regards,
Max Liebetreu
VASP developer
-
max_liebetreu
- Global Moderator

- Posts: 45
- Joined: Mon Mar 03, 2025 2:42 pm
#3
Post
by max_liebetreu » Fri Sep 12, 2025 1:22 pm
Hello,
After discussing the matter with my colleagues, I can say that the approach is still the same for VASP 6.4+ as it was for VASP 5x. There is a line to adjust in relativistic.f90 that governs the strength of the coupling.
I hope that helps?
Best regards,
Max Liebetreu
VASP developer
-
sophie_weber1
- Newbie

- Posts: 14
- Joined: Mon Apr 28, 2025 2:27 pm
#4
Post
by sophie_weber1 » Mon Sep 15, 2025 7:37 am
Hello,
Yes, this is what I was looking for, thank you so much!
This was the link that I saw before https://mattermodeling.stackexchange.co ... th-in-vasp
Just to confirm it will be the same line/variable to change, i.e. the prefactor in front of d0 in the term 0.5d0*SUM*LS(M,MP,I+2*J+1,LL)?
Thanks for your help again, I appreciate it!
Best
Sophie
-
max_liebetreu
- Global Moderator

- Posts: 45
- Joined: Mon Mar 03, 2025 2:42 pm
#5
Post
by max_liebetreu » Mon Sep 15, 2025 7:59 am
Hello Sophie,
You are very welcome!
I just checked for VASP 6.5.1, where the line is now 132, but otherwise looks the same as far as I can tell. A factor of 0.5d0 reduces the strength by half, a factor of 0.0d0 will turn it off entirely.
Best,
Max Liebetreu
VASP developer