forked from easybuilders/easybuild-easyconfigs
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add patch for WIEN2k 24.1 to fix bug in symmetry determination
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
easybuild/easyconfigs/w/WIEN2k/WIEN2k-24.1_fix-symmetso-angle.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
Fix bug in symmetry determination of the routine that applies spin-orbit symmetry breaking to a crystal. | ||
For some crystal symmetries, the symmetry operations were not properly counted, which messes up many things downstream. | ||
|
||
see https://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/msg23543.html | ||
|
||
--- SRC_symmetso/angle.f.bk 2025-01-28 11:09:34.418359468 +0100 | ||
+++ SRC_symmetso/angle.f 2025-01-28 11:10:00.459924000 +0100 | ||
@@ -172,7 +172,8 @@ | ||
! | ||
cosgam=cos(alpha(3)/180.d0*pi) | ||
singam=sin(alpha(3)/180.d0*pi) | ||
-!! IF (.not.ortho) THEN | ||
+ | ||
+ IF (.not.ortho) THEN | ||
help(1)=dif(1) | ||
help(2)=dif(2) | ||
help(3)=dif(3) | ||
@@ -192,7 +193,13 @@ | ||
dif(3)=(help(1)*BR2(1,3)*alat(1)+help(2)*BR2(2,3)*alat(2)+ & | ||
help(3)*BR2(3,3)*alat(3)) ! /alat(3) | ||
endif | ||
-!! endif | ||
+ | ||
+ else | ||
+ dif(1)=xms(1)*alat(1) | ||
+ dif(2)=xms(2)*alat(2) | ||
+ dif(3)=xms(3)*alat(3) | ||
+ endif | ||
+ | ||
dist=0.d0 | ||
DO L=1,3 | ||
DIST=DIST+dif(L)*dif(L) |