Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
fleur
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
54
Issues
54
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
fleur
fleur
Commits
31929f7f
Commit
31929f7f
authored
Dec 07, 2016
by
Gregor Michalicek
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrected erroneous determination of translation vectors in inpgen/spg_gen.f
parent
3b8dcf56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
inpgen/spg_gen.f
inpgen/spg_gen.f
+9
-9
No files found.
inpgen/spg_gen.f
View file @
31929f7f
...
...
@@ -245,7 +245,7 @@
j
=
1
DO
i
=
1
,
nat
IF
(
ity
(
i
)
.NE.
ity
(
j
))
CYCLE
tr
(
1
:
3
)
=
pos
r
(
1
:
3
,
i
)
-
pos
(
1
:
3
,
j
)
tr
(
1
:
3
)
=
pos
(
1
:
3
,
i
)
-
posr
(
1
:
3
,
j
)
tr
(
1
:
3
)
=
tr
(
1
:
3
)
-
anint
(
tr
(
1
:
3
)
-
eps7
)
maxTrVecs
=
maxTrVecs
+
1
trVecs
(:,
maxTrVecs
)
=
tr
(:)
...
...
@@ -253,7 +253,7 @@
secondAtom
(
maxTrVecs
)
=
i
END
DO
!! 2. Sort
rotated
atoms into "location bins"
!! 2. Sort atoms into "location bins"
!! (position vectors are in the region -0.5 to 0.5)
binDim
(:)
=
CEILING
(
natin
**
(
1.0
/
3.0
)
*
0.5
)
...
...
@@ -265,9 +265,9 @@
&
-
binDim
(
3
)
-1
:
binDim
(
3
)
+1
))
binSizes
=
0
DO
n
=
1
,
nat
iBin
(:)
=
NINT
(
binDim
(:)
*
pos
r
(:,
n
)
/
0.501
)
iBin
(:)
=
NINT
(
binDim
(:)
*
pos
(:,
n
)
/
0.501
)
boundary
(:)
=
(
ABS
(
pos
r
(:,
n
))
-0.5
)
.LE.
eps7
boundary
(:)
=
(
ABS
(
pos
(:,
n
))
-0.5
)
.LE.
eps7
DO
i
=
-1
,
1
,
2
IF
((
i
.EQ.
-1
)
.AND.
(
.NOT.
boundary
(
1
)))
CYCLE
DO
j
=
-1
,
1
,
2
...
...
@@ -300,9 +300,9 @@
binSizes
=
0
DO
n
=
1
,
nat
iBin
(:)
=
NINT
(
binDim
(:)
*
pos
r
(:,
n
)
/
0.501
)
iBin
(:)
=
NINT
(
binDim
(:)
*
pos
(:,
n
)
/
0.501
)
boundary
(:)
=
(
ABS
(
pos
r
(:,
n
))
-0.5
)
.LE.
eps7
boundary
(:)
=
(
ABS
(
pos
(:,
n
))
-0.5
)
.LE.
eps7
DO
i
=
-1
,
1
,
2
IF
((
i
.EQ.
-1
)
.AND.
(
.NOT.
boundary
(
1
)))
CYCLE
DO
j
=
-1
,
1
,
2
...
...
@@ -325,7 +325,7 @@
DO
j
=
2
,
nat
iTr
=
1
DO
WHILE
(
iTr
.LE.
maxTrVecs
)
tr
(
1
:
3
)
=
pos
(
1
:
3
,
j
)
+
trVecs
(
1
:
3
,
trIndices
(
iTr
))
tr
(
1
:
3
)
=
pos
r
(
1
:
3
,
j
)
+
trVecs
(
1
:
3
,
trIndices
(
iTr
))
tr
(
1
:
3
)
=
tr
(
1
:
3
)
-
anint
(
tr
(
1
:
3
)
-
eps7
)
iBin
(:)
=
NINT
(
binDim
(:)
*
tr
(:)
/
0.501
)
...
...
@@ -335,7 +335,7 @@
!Search for atoms in the nearest bin
DO
k
=
1
,
binSizes
(
iBin
(
1
),
iBin
(
2
),
iBin
(
3
))
i
=
atomIndexBins
(
k
,
iBin
(
1
),
iBin
(
2
),
iBin
(
3
))
rtau
(:)
=
tr
(:)
-
pos
r
(:,
i
)
rtau
(:)
=
tr
(:)
-
pos
(:,
i
)
rtau
(:)
=
rtau
(:)
-
anint
(
rtau
(:)
-
eps7
)
IF
(
ALL
(
ABS
(
rtau
(:))
.LE.
eps7
))
THEN
IF
(
ity
(
i
)
.NE.
ity
(
j
))
EXIT
...
...
@@ -353,7 +353,7 @@
DO
k
=
1
,
binSizes
(
iBin
(
1
)
+
u
,
iBin
(
2
)
+
v
,
iBin
(
3
)
+
w
)
i
=
atomIndexBins
(
k
,
iBin
(
1
)
+
u
,
iBin
(
2
)
+
v
,
&
iBin
(
3
)
+
w
)
rtau
(:)
=
tr
(:)
-
pos
r
(:,
i
)
rtau
(:)
=
tr
(:)
-
pos
(:,
i
)
rtau
(:)
=
rtau
(:)
-
anint
(
rtau
(:)
-
eps7
)
IF
(
ALL
(
ABS
(
rtau
(:))
.LE.
eps7
))
THEN
IF
(
ity
(
i
)
.NE.
ity
(
j
))
EXIT
binLoop
...
...
Gregor Michalicek
@micha
mentioned in issue
#49 (closed)
·
Dec 12, 2016
mentioned in issue
#49 (closed)
mentioned in issue #49
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment