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
51
Issues
51
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
87b190a0
Commit
87b190a0
authored
Nov 29, 2019
by
Alexander Neukirchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prepared routine to put the correction into vTot.
parent
a47f8850
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
4 deletions
+32
-4
vgen/sfTests.f90
vgen/sfTests.f90
+1
-1
vgen/vmts.F90
vgen/vmts.F90
+3
-3
vgen/xcBfield.f90
vgen/xcBfield.f90
+28
-0
No files found.
vgen/sfTests.f90
View file @
87b190a0
...
...
@@ -40,7 +40,7 @@ CONTAINS
CALL
savxsf
(
stars
,
atoms
,
sphhar
,
vacuum
,
input
,
oneD
,
sym
,
cell
,
noco
,
&
.FALSE.
,
.FALSE.
,
'divCorrected '
,
div2
)
INQUIRE
(
file
=
"
div
.xsf"
,
exist
=
xsf
)
INQUIRE
(
file
=
"
bInitial_f
.xsf"
,
exist
=
xsf
)
IF
(
xsf
)
THEN
OPEN
(
120
,
FILE
=
'bInitial_f.xsf'
,
STATUS
=
'OLD'
)
...
...
vgen/vmts.F90
View file @
87b190a0
...
...
@@ -48,7 +48,7 @@ contains
type
(
t_sym
),
intent
(
in
)
::
sym
type
(
t_cell
),
intent
(
in
)
::
cell
type
(
t_oneD
),
intent
(
in
)
::
oneD
LOGICAL
,
INTENT
(
IN
)
::
dosf
LOGICAL
,
INTENT
(
IN
)
::
dosf
complex
,
intent
(
in
)
::
vpw
(:)
!(stars%ng3,input%jspins)
real
,
intent
(
in
)
::
rho
(:,
0
:,:)
!(atoms%jmtd,0:sphhar%nlhd,atoms%ntype)
integer
,
intent
(
in
)
::
potdenType
...
...
@@ -60,8 +60,8 @@ contains
complex
::
pylm
((
atoms
%
lmaxd
+
1
)
**
2
,
atoms
%
ntype
)
real
::
green_factor
,
termsR
real
::
green_1
(
1
:
atoms
%
jmtd
),
green_2
(
1
:
atoms
%
jmtd
)
real
::
integrand_1
(
1
:
atoms
%
jmtd
),
integrand_2
(
1
:
atoms
%
jmtd
)
,
integrand_3
(
1
:
atoms
%
jmtd
)
real
::
integral_1
(
1
:
atoms
%
jmtd
),
integral_2
(
1
:
atoms
%
jmtd
)
,
integral_3
(
1
:
atoms
%
jmtd
)
real
::
integrand_1
(
1
:
atoms
%
jmtd
),
integrand_2
(
1
:
atoms
%
jmtd
)
real
::
integral_1
(
1
:
atoms
%
jmtd
),
integral_2
(
1
:
atoms
%
jmtd
)
real
::
sbf
(
0
:
atoms
%
lmaxd
)
real
,
allocatable
,
dimension
(:,:)
::
il
,
kl
...
...
vgen/xcBfield.f90
View file @
87b190a0
...
...
@@ -187,4 +187,32 @@ CONTAINS
END
SUBROUTINE
sourcefree
SUBROUTINE
correctPot
(
vTot
,
c
)
USE
m_types
TYPE
(
t_potden
),
INTENT
(
INOUT
)
::
vTot
!
TYPE
(
t_potden
),
DIMENSION
(
3
),
INTENT
(
IN
)
::
c
!global frame
vTot
%
mt
(:,
0
:,:,
1
)
=
vTot
%
mt
(:,
0
:,:,
1
)
+
c
(
3
)
%
mt
(:,
0
:,:,
1
)
vTot
%
mt
(:,
0
:,:,
2
)
=
vTot
%
mt
(:,
0
:,:,
2
)
-
c
(
3
)
%
mt
(:,
0
:,:,
1
)
vTot
%
mt
(:,
0
:,:,
3
)
=
vTot
%
mt
(:,
0
:,:,
3
)
+
c
(
1
)
%
mt
(:,
0
:,:,
1
)
vTot
%
mt
(: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
4
)
=
vTot
%
vacxy
(
1
:,
1
:,
1
:,
4
)
+
c
(
2
)
%
vacxy
(
1
:,
1
:,
1
:,
1
)
END
SUBROUTINE
END
MODULE
m_xcBfield
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