Merge lp:~nickpapior/siesta/merge-OSSO-fixes into lp:~albertog/siesta/merge-OSSO

Proposed by Nick Papior
Status: Merged
Merged at revision: 695
Proposed branch: lp:~nickpapior/siesta/merge-OSSO-fixes
Merge into: lp:~albertog/siesta/merge-OSSO
Diff against target: 476 lines (+99/-138)
7 files modified
Docs/siesta.tex (+63/-85)
Src/bands.F (+0/-1)
Src/dfscf.f (+3/-9)
Src/m_spin.F90 (+30/-27)
Src/rhoofd.F90 (+0/-13)
Src/state_analysis.F (+2/-2)
version.info (+1/-1)
To merge this branch: bzr merge lp:~nickpapior/siesta/merge-OSSO-fixes
Reviewer Review Type Date Requested Status
Alberto Garcia Approve
Review via email: mp+343692@code.launchpad.net

Description of the change

Fixed minor issues and comments from me.

To post a comment you must log in.
Revision history for this message
Alberto Garcia (albertog) wrote :

Good. Thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'Docs/siesta.tex'
--- Docs/siesta.tex 2018-04-20 08:00:21 +0000
+++ Docs/siesta.tex 2018-04-20 13:37:02 +0000
@@ -2242,7 +2242,7 @@
2242The default is \emph{one} KB projector from each angular momentum,2242The default is \emph{one} KB projector from each angular momentum,
2243constructed from the nodeless eigenfunction.2243constructed from the nodeless eigenfunction.
22442244
2245For full spin--orbit calculations, the program generates $lj$2245For full spin-orbit calculations, the program generates $lj$
2246projectors using the $l+1/2$ and $l-1/2$ components of the2246projectors using the $l+1/2$ and $l-1/2$ components of the
2247(relativistic) pseudopotentials. In this case the specification of the2247(relativistic) pseudopotentials. In this case the specification of the
2248reference energies for projectors is not changed: only $l$ is2248reference energies for projectors is not changed: only $l$ is
@@ -3258,7 +3258,7 @@
3258 coordinates rigidly to have them positive, by using3258 coordinates rigidly to have them positive, by using
3259 \fdf{AtomicCoordinatesOrigin}. See the3259 \fdf{AtomicCoordinatesOrigin}. See the
3260 \program{Sies2arc}\index{Sies2arc@\textsc{Sies2arc}} utility in the3260 \program{Sies2arc}\index{Sies2arc@\textsc{Sies2arc}} utility in the
3261 \program{Util/} directory for generating \sysfile*{.arc} files for CERIUS animation.3261 \program{Util/} directory for generating \sysfile*{arc} files for CERIUS animation.
32623262
3263 \end{fdflogicalF}3263 \end{fdflogicalF}
32643264
@@ -3728,12 +3728,12 @@
37283728
3729 \option[spin-orbit]%3729 \option[spin-orbit]%
3730 \fdfindex*{Spin:spin-orbit}%3730 \fdfindex*{Spin:spin-orbit}%
3731 Performs calculations including the spin--orbit coupling. By default the 3731 Performs calculations including the spin-orbit coupling. By default the
3732 off--site SO option is set to \fdftrue. To perform an on--site SO calculations 3732 off-site SO option is set to \fdftrue. To perform an on-site SO calculations
3733 this option has to be {\bf spin-orbit+onsite}. This requires the3733 this option has to be \fdf*{spin-orbit+onsite}. This requires the
3734 pseudopotentials to be relativistic.3734 pseudopotentials to be relativistic.
37353735
3736 See Sect.~\ref{sec:spin-orbit} for further specific spin--orbit options.3736 See Sect.~\ref{sec:spin-orbit} for further specific spin-orbit options.
37373737
3738 \end{fdfoptions}3738 \end{fdfoptions}
37393739
@@ -3778,48 +3778,49 @@
3778\end{fdflogicalF}3778\end{fdflogicalF}
37793779
37803780
3781\subsection{Spin--Orbit coupling}3781\subsection{Spin-Orbit coupling}
3782\label{sec:spin-orbit}3782\label{sec:spin-orbit}
37833783
3784\siesta\ includes the posibility to perform fully relativistic3784\siesta\ includes the posibility to perform fully relativistic
3785calculations by means of the inclusion in the total Hamiltonian not3785calculations by means of the inclusion in the total Hamiltonian not
3786only the Darwin and velocity correction terms~(Scalar--Relativistic3786only the Darwin and velocity correction terms~(Scalar--Relativistic
3787calculations), but also the spin--orbit~(SO) contribution. There are 3787calculations), but also the spin-orbit~(SO) contribution. There are
3788two approaches regarding the SO formalism: on--site and off--site.3788two approaches regarding the SO formalism: on-site and off-site.
3789Within the on--site approximation only the intra--atomic SO contribution is taken 3789Within the on-site approximation only the intra-atomic SO
3790into account. In the off--site scheme additional neighboring 3790contribution is taken into account. In the off-site scheme additional
3791interactions are also included in the SO term. By default, the off--site SO 3791neighboring interactions are also included in the SO term. By default,
3792formalism is switched on, being necessary to change the \fdf{Spin} flag 3792the off-site SO formalism is switched on, being necessary to change
3793in the input file if the on--site approximation wants to be used. See 3793the \fdf{Spin} flag in the input file if the on-site approximation
3794\fdf{Spin} on how to handle the spin--orbit coupling. 3794wants to be used. See \fdf{Spin} on how to handle the spin-orbit
3795coupling.
37953796
3796The on--site spin-orbit scheme in this version of \siesta\ has been implemented by3797The on-site spin-orbit scheme in this version of \siesta\ has been implemented by
3797Dr. Ram\'on Cuadrado based on the original on--site SO formalism and3798Dr. Ram\'on Cuadrado based on the original on-site SO formalism and
3798implementation developed by Prof. Jaime Ferrer and his collaborators \textit{et al}~(L3799implementation developed by Prof. Jaime Ferrer and his collaborators \textit{et al}~(L
3799Fern\'andez--Seivane, M Oliveira, S Sanvito, and J Ferrer, Journal of3800Fern\'andez--Seivane, M Oliveira, S Sanvito, and J Ferrer, Journal of
3800Physics: Condensed Matter, {\bf 18}, 7999 (2006); L Fern\'andez--Seivane 3801Physics: Condensed Matter, \textbf{18}, 7999 (2006); L Fern\'andez--Seivane
3801and Jaime Ferrer, Phys. Rev. Lett. {\bf 99}, 183401 (2007)).3802and Jaime Ferrer, Phys. Rev. Lett. \textbf{99}, 183401 (2007)).
38023803
3803The off--site scheme has been implemented by3804The off-site scheme has been implemented by
3804Dr. Ram\'on Cuadrado and Dr. Jorge I. Cerd\'a based on their initial 3805Dr. Ram\'on Cuadrado and Dr. Jorge I. Cerd\'a based on their initial
3805work~(R. Cuadrado and J. I. Cerd\'a ``Fully relativistic pseudopotential 3806work~(R. Cuadrado and J. I. Cerd\'a ``Fully relativistic pseudopotential
3806formalism under an atomic orbital basis: spin-orbit splittings and 3807formalism under an atomic orbital basis: spin-orbit splittings and
3807magnetic anisotropies'', J. Phys.: Condens. Matter {\bf 24}, 086005 (2012); 3808magnetic anisotropies'', J. Phys.: Condens. Matter \textbf{24}, 086005 (2012);
3808``In-plane/out-of-plane disorder influence on the magnetic anisotropy of 3809``In-plane/out-of-plane disorder influence on the magnetic anisotropy of
3809Fe$_{1-y}$Mn$_y$Pt-L1(0) bulk alloy'', R. Cuadrado, Kai Liu, Timothy 3810Fe$_{1-y}$Mn$_y$Pt-L1(0) bulk alloy'', R. Cuadrado, Kai Liu, Timothy
3810J. Klemmer and R. W. Chantrell, Applied Physics Letters, {\bf 108}, 3811J. Klemmer and R. W. Chantrell, Applied Physics Letters, \textbf{108},
3811123102 (2016)). 3812123102 (2016)).
38123813
3813The inclusion of the SO term in the Hamiltonian (and in the Density3814The inclusion of the SO term in the Hamiltonian (and in the Density
3814Matrix) causes an increase in the number of non--zero elements in their3815Matrix) causes an increase in the number of non-zero elements in their
3815off--diagonal parts, i.e., for some $(\mu,\nu)$ pair of basis3816off-diagonal parts, i.e., for some $(\mu,\nu)$ pair of basis
3816orbitals, H$^{\sigma\sigma'}_{\mu\nu}$~(DM$^{\sigma\sigma'}_{\mu\nu}$)3817orbitals, $\mathbf H^{\sigma\sigma'}_{\mu\nu}$ ($\mathbf{DM}^{\sigma\sigma'}_{\mu\nu}$)
3817[$\sigma,\sigma'$=$\uparrow,\downarrow$] will be $\neq$0. This is3818[$\sigma,\sigma'=\uparrow,\downarrow$] will be $\neq0$. This is
3818mainly due to the fact that the $\mathbf L\cdot\mathbf S$ operator3819mainly due to the fact that the $\mathbf L\cdot\mathbf S$ operator
3819will promote the mixing between different spin--up/down components.3820will promote the mixing between different spin-up/down components.
3820In addition, these H$^{\sigma\sigma'}_{\mu\nu}$~(and3821In addition, these $\mathbf H^{\sigma\sigma'}_{\mu\nu}$ (and
3821DM$^{\sigma\sigma'}_{\mu\nu}$) elements will be complex, in contrast3822$\mathbf{DM}^{\sigma\sigma'}_{\mu\nu}$) elements will be complex, in contrast
3822with typical polarized/non--polarized calculations where these3823with typical polarized/non-polarized calculations where these
3823matrices are purely real. Since the spin-up and spin-down manifolds3824matrices are purely real. Since the spin-up and spin-down manifolds
3824are essentially mixed, the solver has to deal with matrices whose3825are essentially mixed, the solver has to deal with matrices whose
3825dimensions are twice as large as for the collinear (unmixed) spin3826dimensions are twice as large as for the collinear (unmixed) spin
@@ -3828,13 +3829,13 @@
38283829
38293830
3830Unless explicitly advised the following type of calculation can be carried out 3831Unless explicitly advised the following type of calculation can be carried out
3831regardless of whether on--site or off--site approximation is employed: 3832regardless of whether on-site or off-site approximation is employed:
3832\begin{itemize}3833\begin{itemize}
3833 % 3834 %
3834 \item Selfconsistent calculations for gamma point as well as for3835 \item Selfconsistent calculations for gamma point as well as for
3835 bulks.3836 bulks.
3836 %3837 %
3837 \item Structure optimizations %% only supported by the off--site SO3838 \item Structure optimizations %% only supported by the off-site SO
3838 %% formalism *** Why ?3839 %% formalism *** Why ?
3839 %3840 %
3840 %%% *** Incompatible... \item LDA+U calculations~(See Sect.\ref{sec:lda+u} for further info).3841 %%% *** Incompatible... \item LDA+U calculations~(See Sect.\ref{sec:lda+u} for further info).
@@ -3855,35 +3856,35 @@
3855 % 3856 %
3856\end{itemize}3857\end{itemize}
38573858
3858Note: Due to the small SO contribution to the total3859Note: Due to the small SO contribution to the total energy, the level
3859energy, the level of precision required to perform a proper fully3860of precision required to perform a proper fully relativistic
3860relativistic calculation during the selfconsistent process is quite3861calculation during the selfconsistent process is quite demanding. The
3861demanding. The following values must be carefully converged and3862following values must be carefully converged and checked for each
3862checked for each specific system to assure that the results are3863specific system to assure that the results are accurate enough:
3863accurate enough: \fdf{SCF.H!Tolerance} during the3864\fdf{SCF.H!Tolerance} during the selfconsistency (typically between
3864selfconsistency~(typically between 10$^{-3}$eV -- 10$^{-4}$eV), 3865$10^{-3}\,\mathrm{eV}$ -- $10^{-4}\,\mathrm{eV}$),
3865\fdf{ElectronicTemperature},3866\fdf{ElectronicTemperature}, \textbf{k}--point sampling and high
3866\textbf{k}--point sampling and high values of3867values of \fdf{MeshCutoff}~(specifically for extended solids). In
3867\fdf{MeshCutoff}~(specifically for extended solids). In general, one3868general, one can say that a good calculation will have high number of
3868can say that a good calculation will have high number of \textbf{k}--points,3869\textbf{k}--points, low \fdf{ElectronicTemperature}, extremely small
3869low \fdf{ElectronicTemperature}, extremely small \fdf{SCF.H!Tolerance}3870\fdf{SCF.H!Tolerance} and high values of \fdf{MeshCutoff}. We
3870and high values of \fdf{MeshCutoff}. We encourage the user to test3871encourage the user to test carefully these options for each system. An
3871carefully these options for each system. An additional point to take3872additional point to take into account is the mixing scheme
3872into account is the mixing scheme employed. You are encouraged to use 3873employed. You are encouraged to use \fdf{SCF.Mix:hamiltonian}
3873\fdf{SCF.Mix} \fdf*{hamiltonian} (currently is set up by default) 3874(currently is set up by default) instead of density matrix mixing,
3874instead of density matrix mixing, since it speeds up the convergence. 3875since it speeds up the convergence. The pseudopotentials have to be
3875The pseudopotentials have to be properly generated and tested for each 3876properly generated and tested for each specific system and they have
3876specific system and they have to be in their fully relativistic form,3877to be in their fully relativistic form, together with the non-linear
3877together with the non--linear core corrections. Finally it is worth to 3878core corrections. Finally it is worth to mention that the
3878mention that the selfconsistent convergence for some non--highly symmetric 3879selfconsistent convergence for some non-highly symmetric
3879magnetizations directions with respect to the physical symmetry axis 3880magnetizations directions with respect to the physical symmetry axis
3880could still be difficult.3881could still be difficult.
38813882
3882\begin{fdfentry}{Spin!OrbitStrength}[real]<1.0>3883\begin{fdfentry}{Spin!OrbitStrength}[real]<1.0>
38833884
3884 It allows to vary the strength of the 3885 It allows to vary the strength of the
3885 spin--orbit interaction from zero to any positive value. It can be3886 spin-orbit interaction from zero to any positive value. It can be
3886 used for both the on--site and off-site SOC flavors, but only for3887 used for both the on-site and off-site SOC flavors, but only for
3887 debugging and testing purposes, as the only physical value is 1.0.3888 debugging and testing purposes, as the only physical value is 1.0.
38883889
3889\end{fdfentry}3890\end{fdfentry}
@@ -3902,29 +3903,6 @@
39023903
3903\end{fdflogicalF}3904\end{fdflogicalF}
39043905
3905% *** The following items should not be relevant.
3906
3907%%For the off--site SO approximation some mandatory flags have to set
3908%%up to \fdffalse\ in the fdf file:
3909
3910%%\begin{fdflogicalT}{PAO!OldStylePolOrbs}
3911
3912%% By default is set up to \fdftrue, however it has to set up to \fdffalse.
3913
3914%%\end{fdflogicalT}
3915
3916%%\begin{fdflogicalT}{DM.MixSCF1}
3917
3918%% By default is set up to \fdftrue, however it has to set up to \fdffalse.
3919
3920%%\end{fdflogicalT}
3921
3922%%\begin{fdflogicalT}{Restricted.Radial.Grid}
3923
3924%% By default is set up to \fdftrue, however it has to set up to \fdffalse.
3925
3926%%\end{fdflogicalT}
3927
39283906
39293907
3930\subsection{The self-consistent-field loop}3908\subsection{The self-consistent-field loop}
@@ -5049,7 +5027,7 @@
5049 \index{reading saved data!density matrix}5027 \index{reading saved data!density matrix}
5050 5028
5051 Instructs to read the density matrix stored in file5029 Instructs to read the density matrix stored in file
5052 \sysfile{.DM} by a previous run.5030 \sysfile{DM} by a previous run.
5053 5031
5054 \siesta\ will continue even if \sysfile*{DM} is not found.5032 \siesta\ will continue even if \sysfile*{DM} is not found.
50555033
@@ -9067,8 +9045,8 @@
9067Enable an experimental timer which is based on wall time on the master9045Enable an experimental timer which is based on wall time on the master
9068node and is aware of the tree-structure of the timed sections. At the9046node and is aware of the tree-structure of the timed sections. At the
9069end of the program, a report is generated in the output file, and a9047end of the program, a report is generated in the output file, and a
9070{\tt time.json} file in JSON format is also written. \index{JSON9048\file{time.json} file in JSON format is also written. \index{JSON
9071 timing report@{\bf JSON timing report}} This file can be used by9049 timing report@\textbf{JSON timing report}} This file can be used by
9072third-party scripts to process timing data.9050third-party scripts to process timing data.
90739051
9074 \note, if used with the PEXSI solver (see Sec.~\ref{SolverPEXSI})9052 \note, if used with the PEXSI solver (see Sec.~\ref{SolverPEXSI})
@@ -10620,9 +10598,9 @@
1062010598
10621\begin{fdflogicalF}{TDED.Saverho}10599\begin{fdflogicalF}{TDED.Saverho}
1062210600
10623If \fdftrue\ the instantaneous time-dependent density is saved to10601 If \fdftrue\ the instantaneous time-dependent density is saved to
10624\texttt{ <istep>}.\texttt{TDRho}\index{TDRho@{\bf TDRho}} after every10602 \file{<istep>.TDRho} after every \fdf{TDED.Nsaverho} number of
10625\fdf{TDED.Nsaverho} number of steps.10603 steps.
1062610604
10627\end{fdflogicalF}10605\end{fdflogicalF}
1062810606
1062910607
=== modified file 'Src/bands.F'
--- Src/bands.F 2017-10-19 09:19:20 +0000
+++ Src/bands.F 2018-04-20 13:37:02 +0000
@@ -366,7 +366,6 @@
366 use atmfuncs, only : symfio, cnfigfio, labelfis, nofis366 use atmfuncs, only : symfio, cnfigfio, labelfis, nofis
367 use writewave, only : wfs_filename367 use writewave, only : wfs_filename
368368
369! use m_spin, only: NoMagn, SPpol, NonCol, SpOrb
370 use m_spin, only: spin 369 use m_spin, only: spin
371370
372 use m_diag_option, only: ParallelOverK, Serial371 use m_diag_option, only: ParallelOverK, Serial
373372
=== modified file 'Src/dfscf.f'
--- Src/dfscf.f 2018-02-21 12:52:06 +0000
+++ Src/dfscf.f 2018-04-20 13:37:02 +0000
@@ -71,12 +71,8 @@
71 use parallel, only: Nodes, Node71 use parallel, only: Nodes, Node
72 use sys, only: die72 use sys, only: die
73 use parallelsubs, only: GlobalToLocalOrb73 use parallelsubs, only: GlobalToLocalOrb
74! use m_spin, only: NonCol, SpOrb
75! use m_spin, only: h_spin_dim, spinor_dim
7674
77! CC RC Added for the offSpOrb
78 use m_spin, only: spin75 use m_spin, only: spin
79! CC RC Added for the offSpOrb
8076
81 implicit none77 implicit none
8278
@@ -354,14 +350,12 @@
354 ! done with nspin=4 (grid_nspin)?350 ! done with nspin=4 (grid_nspin)?
355 V(1:nsp,1:nspin) = Vscf(1:nsp,ip,1:nspin)351 V(1:nsp,1:nspin) = Vscf(1:nsp,ip,1:nspin)
356352
357!! CC RC Added for the offSpOrb
358C Factor two for nondiagonal elements for non-collinear spin353C Factor two for nondiagonal elements for non-collinear spin
359 if( spin%SO ) then354 if ( spin%SO ) then
360 V(1:nsp,7:8) = V(1:nsp,3:4)355 V(1:nsp,7:8) = V(1:nsp,3:4)
361 elseif( spin%NCol ) then 356 else if ( spin%NCol ) then
362 V(1:nsp,3:4) = 2.0_dp * V(1:nsp,3:4)357 V(1:nsp,3:4) = 2.0_dp * V(1:nsp,3:4)
363 endif358 end if
364!! CC RC Added for the offSpOrb
365359
366C Loop on first orbital of mesh point360C Loop on first orbital of mesh point
367 do ic = 1,nc361 do ic = 1,nc
368362
=== modified file 'Src/m_spin.F90'
--- Src/m_spin.F90 2018-04-19 12:47:26 +0000
+++ Src/m_spin.F90 2018-04-20 13:37:02 +0000
@@ -184,18 +184,14 @@
184 spin%NCol = .true.184 spin%NCol = .true.
185 185
186 else if ( leqi(opt, 'spin-orbit') .or. leqi(opt, 'S-O') .or. &186 else if ( leqi(opt, 'spin-orbit') .or. leqi(opt, 'S-O') .or. &
187 leqi(opt, 'SOC') .or. leqi(opt, 'SO') ) then187 leqi(opt, 'SOC') .or. leqi(opt, 'SO') .or. &
188 leqi(opt, 'spin-orbit+offsite') .or. leqi(opt, 'S-O+offsite') .or. &
189 leqi(opt, 'SOC+offsite') .or. leqi(opt, 'SO+offsite') ) then
188 ! Spin-orbit defaults to the off-site implementation190 ! Spin-orbit defaults to the off-site implementation
189 191
190 spin%SO = .true.192 spin%SO = .true.
191 spin%SO_offsite = .true.193 spin%SO_offsite = .true.
192194
193 else if ( leqi(opt, 'spin-orbit+offsite') .or. leqi(opt, 'S-O+offsite') .or. &
194 leqi(opt, 'SOC+offsite') .or. leqi(opt, 'SO+offsite') ) then
195
196 spin%SO = .true.
197 spin%SO_offsite = .true.
198
199 else if ( leqi(opt, 'spin-orbit+onsite') .or. leqi(opt, 'S-O+onsite') .or. &195 else if ( leqi(opt, 'spin-orbit+onsite') .or. leqi(opt, 'S-O+onsite') .or. &
200 leqi(opt, 'SOC+onsite') .or. leqi(opt, 'SO+onsite') ) then196 leqi(opt, 'SOC+onsite') .or. leqi(opt, 'SO+onsite') ) then
201 197
@@ -207,12 +203,12 @@
207 call die('Spin: unknown flag, please assert the correct input.')203 call die('Spin: unknown flag, please assert the correct input.')
208 end if204 end if
209205
210 if (spin%SO_offsite) then206 if ( spin%SO_offsite ) then
211 call add_citation("10.1088/0953-8984/24/8/086005")207 call add_citation("10.1088/0953-8984/24/8/086005")
212 endif208 end if
213 if (spin%SO_onsite) then209 if ( spin%SO_onsite ) then
214 call add_citation("10.1088/0953-8984/18/34/012")210 call add_citation("10.1088/0953-8984/18/34/012")
215 endif211 end if
216 212
217 ! Note that, in what follows,213 ! Note that, in what follows,
218 ! spinor_dim = min(h_spin_dim,2)214 ! spinor_dim = min(h_spin_dim,2)
@@ -242,9 +238,10 @@
242 spin%Col = .false.238 spin%Col = .false.
243 spin%NCol = .false.239 spin%NCol = .false.
244 spin%SO = .true.240 spin%SO = .true.
241 ! off/on MUST already be set!
245242
246 ! should be moved...243 ! should be moved...
247 TRSym = .false.244 TRSym = .false.
248245
249 else if ( spin%NCol ) then246 else if ( spin%NCol ) then
250 ! Non-collinear case247 ! Non-collinear case
@@ -257,13 +254,15 @@
257 spin%spinor = 2254 spin%spinor = 2
258255
259 ! Flags256 ! Flags
260 spin%none = .false.257 spin%none = .false.
261 spin%Col = .false.258 spin%Col = .false.
262 spin%NCol = .true.259 spin%NCol = .true.
263 spin%SO = .false.260 spin%SO = .false.
261 spin%SO_onsite = .false.
262 spin%SO_offsite = .false.
264263
265 ! should be moved...264 ! should be moved...
266 TRSym = .false.265 TRSym = .false.
267266
268 else if ( spin%Col ) then267 else if ( spin%Col ) then
269 ! Collinear case268 ! Collinear case
@@ -276,13 +275,15 @@
276 spin%spinor = 2275 spin%spinor = 2
277276
278 ! Flags277 ! Flags
279 spin%none = .false.278 spin%none = .false.
280 spin%Col = .true.279 spin%Col = .true.
281 spin%NCol = .false.280 spin%NCol = .false.
282 spin%SO = .false.281 spin%SO = .false.
282 spin%SO_onsite = .false.
283 spin%SO_offsite = .false.
283284
284 ! should be moved...285 ! should be moved...
285 TRSym = .true.286 TRSym = .true.
286287
287 else if ( spin%none ) then288 else if ( spin%none ) then
288 ! No spin configuration...289 ! No spin configuration...
@@ -295,13 +296,15 @@
295 spin%spinor = 1296 spin%spinor = 1
296297
297 ! Flags298 ! Flags
298 spin%none = .true.299 spin%none = .true.
299 spin%Col = .false.300 spin%Col = .false.
300 spin%NCol = .false.301 spin%NCol = .false.
301 spin%SO = .false.302 spin%SO = .false.
303 spin%SO_onsite = .false.
304 spin%SO_offsite = .false.
302305
303 ! should be moved...306 ! should be moved...
304 TRSym = .true.307 TRSym = .true.
305308
306 end if309 end if
307310
308311
=== modified file 'Src/rhoofd.F90'
--- Src/rhoofd.F90 2018-04-15 22:13:08 +0000
+++ Src/rhoofd.F90 2018-04-20 13:37:02 +0000
@@ -331,12 +331,6 @@
331! Retrieve phi values331! Retrieve phi values
332 if ( spin%SO_offsite ) then 332 if ( spin%SO_offsite ) then
333 Clocal(:,ic) = phia(iphi,:)333 Clocal(:,ic) = phia(iphi,:)
334! if(ip.lt.10) then
335! write(6,*) ' ip/nc/Clocal(1,:) = ', ip, nc, Clocal(1,:)
336! else
337! stop 'Stopping in rhoofd...'
338! endif
339
340 else334 else
341 Clocal(:,ic) = dsqrt(2._dp) * phia(iphi,:)335 Clocal(:,ic) = dsqrt(2._dp) * phia(iphi,:)
342 end if336 end if
@@ -389,13 +383,6 @@
389! Retrieve phi values383! Retrieve phi values
390 if ( spin%SO_offsite ) then 384 if ( spin%SO_offsite ) then
391 Clocal(:,ic) = phi(:,imp)385 Clocal(:,ic) = phi(:,imp)
392! if(ip.lt.5) then
393! write(6,*) ' ip/nc/Clocal(1,:) = ', ip, nc, Clocal(1,:)
394! else
395! stop 'Stopping in rhoofd...'
396! endif
397
398
399 else386 else
400 Clocal(:,ic) = dsqrt(2._dp) * phi(:,imp)387 Clocal(:,ic) = dsqrt(2._dp) * phi(:,imp)
401 end if388 end if
402389
=== modified file 'Src/state_analysis.F'
--- Src/state_analysis.F 2018-04-19 09:00:15 +0000
+++ Src/state_analysis.F 2018-04-20 13:37:02 +0000
@@ -22,7 +22,7 @@
22 & CartesianForce_to_ZmatForce22 & CartesianForce_to_ZmatForce
23 use atomlist, only : iaorb, iphorb, amass, no_u, lasto23 use atomlist, only : iaorb, iphorb, amass, no_u, lasto
24 use atomlist, only : indxuo24 use atomlist, only : indxuo
25 use m_spin, only : SpOrb25 use m_spin, only : spin
26 use m_fixed, only : fixed26 use m_fixed, only : fixed
27 use sparse_matrices27 use sparse_matrices
28 use siesta_geom28 use siesta_geom
@@ -167,7 +167,7 @@
167 endif167 endif
168168
169! Population and moment analysis 169! Population and moment analysis
170 if ( SpOrb .and. orbmoms) then170 if ( spin%SO .and. orbmoms) then
171 call moments( 1, na_u, no_u, maxnh, numh, listhptr,171 call moments( 1, na_u, no_u, maxnh, numh, listhptr,
172 . listh, S, Dscf, isa, lasto, iaorb, iphorb,172 . listh, S, Dscf, isa, lasto, iaorb, iphorb,
173 . indxuo )173 . indxuo )
174174
=== modified file 'version.info'
--- version.info 2018-04-20 09:41:55 +0000
+++ version.info 2018-04-20 13:37:02 +0000
@@ -1,1 +1,1 @@
1trunk-687--merge-OSSO-6941trunk-687--merge-OSSO-694--fixes-1

Subscribers

People subscribed via source and target branches

to all changes: