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
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Anoop Chandran
fleur
Commits
05271642
Commit
05271642
authored
Jun 15, 2016
by
Gregor Michalicek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct MT charge in out.xml + layout of charges
parent
94255d50
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
13 deletions
+14
-13
cdn/cdntot.f90
cdn/cdntot.f90
+8
-7
cdn_mt/cdnmt.f90
cdn_mt/cdnmt.f90
+6
-6
No files found.
cdn/cdntot.f90
View file @
05271642
...
...
@@ -40,7 +40,7 @@
! .. Local Scalars ..
! COMPLEX x
COMPLEX
x
(
stars
%
ng3
)
REAL
q
,
qis
,
w
REAL
q
,
qis
,
w
,
mtCharge
INTEGER
i
,
ivac
,
j
,
jspin
,
n
,
nz
! ..
! .. Local Arrays ..
...
...
@@ -114,17 +114,18 @@
IF
(
input
%
film
)
WRITE
(
6
,
FMT
=
8010
)
(
i
,
qvac
(
i
),
i
=
1
,
vacuum
%
nvac
)
WRITE
(
16
,
FMT
=
8000
)
jspin
,
q
,
qis
,
(
qmt
(
n
),
n
=
1
,
atoms
%
ntype
)
IF
(
input
%
film
)
WRITE
(
16
,
FMT
=
8010
)
(
i
,
qvac
(
i
),
i
=
1
,
vacuum
%
nvac
)
names
(
1
)
=
'spin'
;
WRITE
(
attributes
(
1
),
'(i0)'
)
jspin
;
lengths
(
1
,
1
)
=
4
;
lengths
(
1
,
2
)
=
1
names
(
2
)
=
'total'
;
WRITE
(
attributes
(
2
),
'(f17.10)'
)
q
;
lengths
(
2
,
1
)
=
5
;
lengths
(
2
,
2
)
=
17
names
(
3
)
=
'interstitial'
;
WRITE
(
attributes
(
3
),
'(f17.10)'
)
qis
;
lengths
(
3
,
1
)
=
12
;
lengths
(
3
,
2
)
=
17
names
(
4
)
=
'mtSpheres'
;
WRITE
(
attributes
(
4
),
'(f17.10)'
)
SUM
(
qmt
(
1
:
atoms
%
ntype
))
;
lengths
(
4
,
1
)
=
9
;
lengths
(
4
,
2
)
=
17
mtCharge
=
SUM
(
qmt
(
1
:
atoms
%
ntype
)
*
atoms
%
neq
(
1
:
atoms
%
ntype
))
names
(
1
)
=
'spin'
;
WRITE
(
attributes
(
1
),
'(i0)'
)
jspin
;
lengths
(
1
,
1
)
=
4
;
lengths
(
1
,
2
)
=
1
names
(
2
)
=
'total'
;
WRITE
(
attributes
(
2
),
'(f14.7)'
)
q
;
lengths
(
2
,
1
)
=
5
;
lengths
(
2
,
2
)
=
14
names
(
3
)
=
'interstitial'
;
WRITE
(
attributes
(
3
),
'(f14.7)'
)
qis
;
lengths
(
3
,
1
)
=
12
;
lengths
(
3
,
2
)
=
14
names
(
4
)
=
'mtSpheres'
;
WRITE
(
attributes
(
4
),
'(f14.7)'
)
mtCharge
;
lengths
(
4
,
1
)
=
9
;
lengths
(
4
,
2
)
=
14
IF
(
l_printData
)
THEN
IF
(
input
%
film
)
THEN
DO
i
=
1
,
vacuum
%
nvac
WRITE
(
names
(
4
+
i
),
'(a6,i0)'
)
'vacuum'
,
i
WRITE
(
attributes
(
4
+
i
),
'(f1
7.10
)'
)
qvac
(
i
)
WRITE
(
attributes
(
4
+
i
),
'(f1
4.7
)'
)
qvac
(
i
)
lengths
(
4
+
i
,
1
)
=
7
lengths
(
4
+
i
,
2
)
=
1
7
lengths
(
4
+
i
,
2
)
=
1
4
END
DO
CALL
writeXMLElementFormPoly
(
'spinDependentCharge'
,
names
(
1
:
4
+
vacuum
%
nvac
),&
attributes
(
1
:
4
+
vacuum
%
nvac
),
lengths
)
...
...
cdn_mt/cdnmt.f90
View file @
05271642
...
...
@@ -145,13 +145,13 @@ CONTAINS
attributes
=
''
WRITE
(
attributes
(
1
),
'(i0)'
)
itype
WRITE
(
attributes
(
2
),
'(f1
5.10
)'
)
qmtt
WRITE
(
attributes
(
3
),
'(f1
5.10
)'
)
qmtl
(
0
)
WRITE
(
attributes
(
4
),
'(f1
5.10
)'
)
qmtl
(
1
)
WRITE
(
attributes
(
5
),
'(f1
5.10
)'
)
qmtl
(
2
)
WRITE
(
attributes
(
6
),
'(f1
5.10
)'
)
qmtl
(
3
)
WRITE
(
attributes
(
2
),
'(f1
2.7
)'
)
qmtt
WRITE
(
attributes
(
3
),
'(f1
2.7
)'
)
qmtl
(
0
)
WRITE
(
attributes
(
4
),
'(f1
2.7
)'
)
qmtl
(
1
)
WRITE
(
attributes
(
5
),
'(f1
2.7
)'
)
qmtl
(
2
)
WRITE
(
attributes
(
6
),
'(f1
2.7
)'
)
qmtl
(
3
)
CALL
writeXMLElementForm
(
'mtCharge'
,(/
'atomType'
,
'total '
,
's '
,
'p '
,
'd '
,
'f '
/),
attributes
,&
reshape
((/
8
,
5
,
1
,
1
,
1
,
1
,
6
,
1
5
,
15
,
15
,
15
,
15
/),(/
6
,
2
/)))
reshape
((/
8
,
5
,
1
,
1
,
1
,
1
,
6
,
1
2
,
12
,
12
,
12
,
12
/),(/
6
,
2
/)))
!+soc
!---> spherical angular component
...
...
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