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
d906df84
Commit
d906df84
authored
Jan 30, 2020
by
Matthias Redies
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replace more calc_cmt
parent
b5b15fac
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
12 deletions
+20
-12
hybrid/calc_hybrid.F90
hybrid/calc_hybrid.F90
+1
-1
hybrid/exchange_val_hf.F90
hybrid/exchange_val_hf.F90
+3
-2
hybrid/hsfock.F90
hybrid/hsfock.F90
+4
-3
hybrid/kp_perturbation.f90
hybrid/kp_perturbation.f90
+11
-5
rdmft/rdmft.F90
rdmft/rdmft.F90
+1
-1
No files found.
hybrid/calc_hybrid.F90
View file @
d906df84
...
...
@@ -147,7 +147,7 @@ CONTAINS
DO
nk
=
1
,
kpts
%
nkpt
!DO nk = mpi%n_start,kpts%nkpt,mpi%n_stride
CALL
lapw
%
init
(
input
,
noco
,
kpts
,
atoms
,
sym
,
nk
,
cell
,
l_zref
)
CALL
hsfock
(
nk
,
atoms
,
mpdata
,
hybinp
,
lapw
,
kpts
,
jsp
,
input
,
hybdat
,
eig_irr
,
sym
,
cell
,
&
CALL
hsfock
(
nk
,
atoms
,
mpdata
,
hybinp
,
lapw
,
oneD
,
kpts
,
jsp
,
input
,
hybdat
,
eig_irr
,
sym
,
cell
,
&
noco
,
results
,
MAXVAL
(
hybdat
%
nobd
(:,
jsp
)),
xcpot
,
mpi
)
END
DO
END
DO
...
...
hybrid/exchange_val_hf.F90
View file @
d906df84
...
...
@@ -61,7 +61,7 @@ MODULE m_exchange_valence_hf
CONTAINS
SUBROUTINE
exchange_valence_hf
(
ik
,
kpts
,
nkpt_EIBZ
,
sym
,
atoms
,
mpdata
,
hybinp
,
cell
,
input
,
jsp
,
hybdat
,
mnobd
,
lapw
,
&
eig_irr
,
results
,
pointer_EIBZ
,
n_q
,
wl_iks
,
xcpot
,
noco
,
nsest
,
indx_sest
,
&
oneD
,
eig_irr
,
results
,
pointer_EIBZ
,
n_q
,
wl_iks
,
xcpot
,
noco
,
nsest
,
indx_sest
,
&
mpi
,
mat_ex
)
USE
m_wrapper
...
...
@@ -87,6 +87,7 @@ CONTAINS
TYPE
(
t_kpts
),
INTENT
(
IN
)
::
kpts
TYPE
(
t_atoms
),
INTENT
(
IN
)
::
atoms
TYPE
(
t_lapw
),
INTENT
(
IN
)
::
lapw
type
(
t_oneD
),
intent
(
in
)
::
oneD
TYPE
(
t_mat
),
INTENT
(
INOUT
)
::
mat_ex
TYPE
(
t_hybdat
),
INTENT
(
INOUT
)
::
hybdat
...
...
@@ -330,7 +331,7 @@ CONTAINS
IF
(
zero_order
)
THEN
CALL
dwavefproducts
(
dcprod
,
ik
,
1
,
hybdat
%
nbands
(
ik
),
1
,
hybdat
%
nbands
(
ik
),
.false.
,
input
,
atoms
,
mpdata
,
hybinp
,
&
cell
,
hybdat
,
kpts
,
sym
,
noco
,
lapw
,
jsp
,
eig_irr
)
cell
,
hybdat
,
kpts
,
sym
,
noco
,
lapw
,
oneD
,
jsp
,
eig_irr
)
! make dcprod hermitian
DO
n1
=
1
,
hybdat
%
nbands
(
ik
)
...
...
hybrid/hsfock.F90
View file @
d906df84
...
...
@@ -54,7 +54,7 @@ MODULE m_hsfock
CONTAINS
SUBROUTINE
hsfock
(
nk
,
atoms
,
mpdata
,
hybinp
,
lapw
,
kpts
,
jsp
,
input
,
hybdat
,
eig_irr
,
sym
,
cell
,
noco
,
&
SUBROUTINE
hsfock
(
nk
,
atoms
,
mpdata
,
hybinp
,
lapw
,
oneD
,
kpts
,
jsp
,
input
,
hybdat
,
eig_irr
,
sym
,
cell
,
noco
,
&
results
,
mnobd
,
xcpot
,
mpi
)
IMPLICIT
NONE
...
...
@@ -68,6 +68,7 @@ CONTAINS
TYPE
(
t_kpts
),
INTENT
(
IN
)
::
kpts
TYPE
(
t_atoms
),
INTENT
(
IN
)
::
atoms
TYPE
(
t_lapw
),
INTENT
(
IN
)
::
lapw
type
(
t_oneD
),
intent
(
in
)
::
oneD
TYPE
(
t_mpdata
),
intent
(
inout
)
::
mpdata
TYPE
(
t_hybinp
),
INTENT
(
IN
)
::
hybinp
TYPE
(
t_hybdat
),
INTENT
(
INOUT
)
::
hybdat
...
...
@@ -165,7 +166,7 @@ CONTAINS
! HF exchange
ex
%
l_real
=
sym
%
invs
CALL
exchange_valence_hf
(
nk
,
kpts
,
nkpt_EIBZ
,
sym
,
atoms
,
mpdata
,
hybinp
,
cell
,
input
,
jsp
,
hybdat
,
mnobd
,
lapw
,
&
eig_irr
,
results
,
pointer_EIBZ
,
n_q
,
wl_iks
,
xcpot
,
noco
,
nsest
,
indx_sest
,
&
oneD
,
eig_irr
,
results
,
pointer_EIBZ
,
n_q
,
wl_iks
,
xcpot
,
noco
,
nsest
,
indx_sest
,
&
mpi
,
ex
)
CALL
timestart
(
"core exchange calculation"
)
...
...
@@ -193,7 +194,7 @@ CONTAINS
CALL
invtrafo
%
alloc
(
olap
%
l_real
,
hybdat
%
nbands
(
nk
),
nbasfcn
)
CALL
trafo
%
TRANSPOSE
(
invtrafo
)
DO
i
=
1
,
hybdat
%
nbands
(
nk
)
DO
j
=
1
,
i
-
1
IF
(
ex
%
l_real
)
THEN
...
...
hybrid/kp_perturbation.f90
View file @
d906df84
...
...
@@ -704,7 +704,7 @@ CONTAINS
dcprod
,
nk
,
bandi1
,
bandf1
,
bandi2
,
bandf2
,
lwrite
,
&
input
,
atoms
,
mpdata
,
hybinp
,
&
cell
,
&
hybdat
,
kpts
,
sym
,
noco
,
lapw
,
&
hybdat
,
kpts
,
sym
,
noco
,
lapw
,
oneD
,
&
jsp
,
&
eig_irr
)
...
...
@@ -723,6 +723,7 @@ CONTAINS
type
(
t_noco
),
intent
(
in
)
::
noco
TYPE
(
t_atoms
),
INTENT
(
IN
)
::
atoms
TYPE
(
t_lapw
),
INTENT
(
IN
)
::
lapw
type
(
t_oneD
),
intent
(
in
)
::
oneD
! - scalars -
INTEGER
,
INTENT
(
IN
)
::
nk
,
bandi1
,
bandf1
,
bandi2
,
bandf2
...
...
@@ -744,7 +745,7 @@ CONTAINS
dcprod
=
cmplx_0
CALL
momentum_matrix
(
dcprod
,
nk
,
bandi1
,
bandf1
,
bandi2
,
bandf2
,
&
input
,
atoms
,
mpdata
,
hybinp
,
cell
,
hybdat
,
kpts
,
sym
,
noco
,
lapw
,
&
jsp
)
oneD
,
jsp
)
! __
! Calculate expansion coefficients -i < uj | \/ | ui > / ( ei - ej ) for periodic function ui
...
...
@@ -776,7 +777,7 @@ CONTAINS
!
SUBROUTINE
momentum_matrix
(
momentum
,
nk
,
bandi1
,
bandf1
,
bandi2
,
bandf2
,
&
input
,
atoms
,
mpdata
,
hybinp
,
&
cell
,
hybdat
,
kpts
,
sym
,
noco
,
lapw
,
jsp
)
cell
,
hybdat
,
kpts
,
sym
,
noco
,
lapw
,
oneD
,
jsp
)
USE
m_olap
USE
m_wrapper
USE
m_util
,
only
:
derivative
...
...
@@ -785,6 +786,7 @@ CONTAINS
USE
m_constants
USE
m_types
USE
m_io_hybinp
use
m_calc_cmt
IMPLICIT
NONE
TYPE
(
t_input
),
INTENT
(
IN
)
::
input
TYPE
(
t_hybdat
),
INTENT
(
IN
)
::
hybdat
...
...
@@ -796,6 +798,7 @@ CONTAINS
type
(
t_noco
),
intent
(
in
)
::
noco
TYPE
(
t_atoms
),
INTENT
(
IN
)
::
atoms
TYPE
(
t_lapw
),
INTENT
(
IN
)
::
lapw
type
(
t_oneD
),
intent
(
in
)
::
oneD
! - scalars -
INTEGER
,
INTENT
(
IN
)
::
bandi1
,
bandf1
,
bandi2
,
bandf2
...
...
@@ -830,14 +833,17 @@ CONTAINS
COMPLEX
::
olap_c
(
lapw
%
nv
(
jsp
)
*
(
lapw
%
nv
(
jsp
)
+
1
)/
2
)
REAL
::
vec1_r
(
lapw
%
nv
(
jsp
)),
vec2_r
(
lapw
%
nv
(
jsp
)),
vec3_r
(
lapw
%
nv
(
jsp
))
COMPLEX
::
vec1_c
(
lapw
%
nv
(
jsp
)),
vec2_c
(
lapw
%
nv
(
jsp
)),
vec3_c
(
lapw
%
nv
(
jsp
))
COMPLEX
::
c_phase
(
hybdat
%
nbands
(
nk
))
! read in cmt coefficients from direct access file cmt at kpoint nk
momentum
=
cmplx_0
call
read_cmt
(
cmt
,
nk
)
call
read_z
(
atoms
,
cell
,
hybdat
,
kpts
,
sym
,
noco
,
input
,
nk
,
jsp
,
z
,
c_phase
)
call
calc_cmt
(
atoms
,
cell
,
input
,
noco
,
hybinp
,
hybdat
,
mpdata
,
kpts
,
&
sym
,
oneD
,
z
,
jsp
,
nk
,
c_phase
,
cmt
)
!call read_cmt(cmt, nk)
! read in z coefficients from direct access file z at kpoint nk
call
read_z
(
atoms
,
cell
,
hybdat
,
kpts
,
sym
,
noco
,
input
,
nk
,
jsp
,
z
)
!CALL intgrf_init(atoms%ntype,atoms%jmtd,atoms%jri,atoms%dx,atoms%rmsh,hybdat%gridf)
gpt
(:,
1
:
lapw
%
nv
(
jsp
))
=
lapw
%
gvec
(:,
1
:
lapw
%
nv
(
jsp
),
jsp
)
...
...
rdmft/rdmft.F90
View file @
d906df84
...
...
@@ -535,7 +535,7 @@ SUBROUTINE rdmft(eig_id,mpi,input,kpts,banddos,sliceplot,cell,atoms,enpara,stars
exMat
%
l_real
=
sym
%
invs
CALL
exchange_valence_hf
(
ikpt
,
kpts
,
nkpt_EIBZ
,
sym
,
atoms
,
mpdata
,
hybinp
,
cell
,
input
,
jspin
,
hybdat
,
mnobd
,
lapw
,&
eig_irr
,
results
,
pointer_EIBZ
,
n_q
,
wl_iks
,
xcpot
,
noco
,
nsest
,
indx_sest
,&
oneD
,
eig_irr
,
results
,
pointer_EIBZ
,
n_q
,
wl_iks
,
xcpot
,
noco
,
nsest
,
indx_sest
,&
mpi
,
exMat
)
CALL
exchange_vccv1
(
ikpt
,
input
,
atoms
,
mpdata
,
hybinp
,
hybdat
,
jspin
,
lapw
,
nsymop
,
nsest
,
indx_sest
,
mpi
,
1.0
,
results
,
exMat
)
...
...
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