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
77fd3071
Commit
77fd3071
authored
May 16, 2020
by
Alexander Neukirchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update mix.F90
parent
b8456f9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
30 deletions
+4
-30
main/mix.F90
main/mix.F90
+4
-30
No files found.
main/mix.F90
View file @
77fd3071
...
...
@@ -17,7 +17,7 @@ contains
SUBROUTINE
mix_charge
(
field
,
mpi
,
l_writehistory
,&
stars
,
atoms
,
sphhar
,
vacuum
,
input
,
sym
,
cell
,
noco
,
&
oneD
,
archiveType
,
xcpot
,
iteration
,
inDen
,
outDen
,
results
,
l_runhia
,
nococonv
,
sliceplot
)
oneD
,
archiveType
,
xcpot
,
iteration
,
inDen
,
outDen
,
results
,
l_runhia
)
use
m_juDFT
use
m_constants
...
...
@@ -46,8 +46,6 @@ contains
TYPE
(
t_cell
),
TARGET
,
INTENT
(
in
)
::
cell
TYPE
(
t_sphhar
),
TARGET
,
INTENT
(
in
)
::
sphhar
type
(
t_field
),
intent
(
inout
)
::
field
type
(
t_nococonv
),
intent
(
in
)
::
nococonv
TYPE
(
t_sliceplot
),
INTENT
(
IN
)
::
sliceplot
type
(
t_mpi
),
intent
(
in
)
::
mpi
TYPE
(
t_atoms
),
TARGET
,
INTENT
(
in
)
::
atoms
...
...
@@ -65,7 +63,7 @@ contains
TYPE
(
t_mixvector
),
ALLOCATABLE
::
sm
(:),
fsm
(:)
TYPE
(
t_mixvector
)
::
fsm_mag
LOGICAL
::
l_densitymatrix
,
l_firstItU
INTEGER
::
it
,
maxiter
,
ierr
INTEGER
::
it
,
maxiter
INTEGER
::
indStartHIA
,
indEndHIA
...
...
@@ -198,32 +196,8 @@ contains
END
IF
END
IF
! Plots of mixed density
IF
((
sliceplot
%
iplot
.NE.
0
)
)
THEN
! CDN including core charge
CALL
makeplots
(
stars
,
atoms
,
sphhar
,
vacuum
,
input
,
mpi
,
oneD
,
sym
,
&
cell
,
noco
,
nococonv
,
inDen
,
PLOT_MIXDEN_Y_CORE
,
sliceplot
)
!! CDN subtracted by core charge
!CALL makeplots(fi%sym,stars,fi%vacuum,fi%atoms,sphhar,fi%input,fi%cell,fi%oneD,fi%noco,fi%sliceplot,inDen,PLOT_MIXDEN_N_CORE)
!CALL makeplots(stars, fi%atoms, sphhar, fi%vacuum, fi%input, fi%oneD, fi%sym, &
!fi%cell, fi%noco, inDen, PLOT_OUTDEN_N_CORE, fi%sliceplot)
END
IF
! Break SCF loop if Plots were generated in ongoing run (iplot=/=0). This needs to happen here, as the mixed density
! is the last plot tablet_potden to appear in the scf loop and BEFORE the mixed density is written out (so it is quasi
! post-process).
#ifdef CPP_MPI
CALL
MPI_BARRIER
(
mpi
%
mpi_comm
,
ierr
)
#endif
IF
(
sliceplot
%
iplot
.NE.
0
)
THEN
CALL
juDFT_end
(
"Stopped self consistency loop after plots have been generated."
)
END
IF
!write out mixed density
IF
(
mpi
%
irank
==
0
)
CALL
writeDensity
(
stars
,
noco
,
vacuum
,
atoms
,
cell
,
sphhar
,
input
,
sym
,
oneD
,
archiveType
,
CDN_INPUT_DEN_const
,&
!write out mixed density (but not for a plotting run)
IF
((
mpi
%
irank
==
0
)
.AND.
(
sliceplot
%
iplot
.
==
.0
))
CALL
writeDensity
(
stars
,
noco
,
vacuum
,
atoms
,
cell
,
sphhar
,
input
,
sym
,
oneD
,
archiveType
,
CDN_INPUT_DEN_const
,&
1
,
results
%
last_distance
,
results
%
ef
,
.TRUE.
,
inDen
)
#ifdef CPP_HDF
...
...
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