Commit Graph

258 Commits

Author SHA1 Message Date
dalcorso dfdcfa38b8 Script error. Some bash shells complain.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9740 c92efa57-630b-4861-b058-cf58834340f0
2012-12-29 06:51:22 +00:00
dalcorso c4c81ed26b Added a check: electron-phonon + recover not allowed.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9739 c92efa57-630b-4861-b058-cf58834340f0
2012-12-29 06:41:12 +00:00
dalcorso 7191dac2bd Bug fix: declaration error (probably harmless).
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9737 c92efa57-630b-4861-b058-cf58834340f0
2012-12-27 12:55:00 +00:00
giannozz a41ac990cf Misc minor corrections + compilation problem introduced in recent commit
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9733 c92efa57-630b-4861-b058-cf58834340f0
2012-12-21 17:04:55 +00:00
giannozz f6dc086f08 Better check on band groups
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9732 c92efa57-630b-4861-b058-cf58834340f0
2012-12-21 12:10:50 +00:00
paulatto f29ecc9b95 Write_eigenvectors would modify the content of variable "z": if you ask matdyn to print both eigenvectors and modes, eigenvectors would actually be printed in both files.
(courtesy of Paolo Zoccante)



git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9731 c92efa57-630b-4861-b058-cf58834340f0
2012-12-21 10:56:14 +00:00
paulatto 76dbb71e6a Small changes to have it compile with sun compiler
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9729 c92efa57-630b-4861-b058-cf58834340f0
2012-12-20 17:29:35 +00:00
wparker 3805a9800e Added lplasma option to calculate mode effective plasma frequencies and changed .lt., .gt. to < , >
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9728 c92efa57-630b-4861-b058-cf58834340f0
2012-12-20 15:47:04 +00:00
giannozz fb0fb1a6aa Minor documentation update (previous commit as well!)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9727 c92efa57-630b-4861-b058-cf58834340f0
2012-12-19 21:38:33 +00:00
giannozz 5a1248895b M
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9726 c92efa57-630b-4861-b058-cf58834340f0
2012-12-19 21:37:57 +00:00
wparker 7ec2f18e31 Added input flag 'lperm' and subroutine 'polar_permittivity' to calculate
Gamma-point phonon contributions to the dielectric permittivity tensor


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9725 c92efa57-630b-4861-b058-cf58834340f0
2012-12-19 20:32:32 +00:00
dalcorso 25d99b5d54 The recent change of the Sq=-q+G symmetry does not seem to work in all cases.
Temporarily reverted to the old instruction. 


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9724 c92efa57-630b-4861-b058-cf58834340f0
2012-12-19 10:40:04 +00:00
giannozz 45076700ed make.depend updated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9717 c92efa57-630b-4861-b058-cf58834340f0
2012-12-14 16:47:00 +00:00
dalcorso e0b0781010 Cleanup of unused variables. Avoid the use of an unitialized variable.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9716 c92efa57-630b-4861-b058-cf58834340f0
2012-12-14 16:34:17 +00:00
dalcorso 207d84a105 Minor changes. Cleanup of unused variables.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9712 c92efa57-630b-4861-b058-cf58834340f0
2012-12-14 15:29:25 +00:00
dalcorso 14db01cb6a Cleanup of unused variables.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9707 c92efa57-630b-4861-b058-cf58834340f0
2012-12-13 15:56:00 +00:00
giannozz 475c103ef7 More formats E converted to ES
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9693 c92efa57-630b-4861-b058-cf58834340f0
2012-12-07 16:48:09 +00:00
giannozz ebe6518250 More updated phonon examples
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9691 c92efa57-630b-4861-b058-cf58834340f0
2012-12-07 15:56:00 +00:00
giannozz 0404c4dab6 A few more updated examples
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9690 c92efa57-630b-4861-b058-cf58834340f0
2012-12-07 15:31:23 +00:00
giannozz c8532b90aa First batch of updates to phoon examples
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9689 c92efa57-630b-4861-b058-cf58834340f0
2012-12-07 14:23:00 +00:00
dalcorso c3edf288ba Obsolete reference output removed. (Courtesy of D. Strubbe)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9687 c92efa57-630b-4861-b058-cf58834340f0
2012-12-06 08:48:07 +00:00
dalcorso b06778b53f Small change to the output format. (Courtesy of D. Strubbe)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9686 c92efa57-630b-4861-b058-cf58834340f0
2012-12-06 08:31:06 +00:00
dalcorso 7ae23221a8 Problems with zstar eu + US-PP + spin-orbit (still experimental).
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9671 c92efa57-630b-4861-b058-cf58834340f0
2012-11-26 14:02:36 +00:00
dalcorso e418ef9f47 Bug fix: effective charges eu + US PP + spin-orbit nonmagnetic were not
working in parallel.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9670 c92efa57-630b-4861-b058-cf58834340f0
2012-11-26 10:41:59 +00:00
giannozz 883ec9c5d3 Misc documentation and make.depend updates
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9667 c92efa57-630b-4861-b058-cf58834340f0
2012-11-23 20:06:09 +00:00
dalcorso 6e9e3a6fff Inserted a check to stop the d3 program if pw.x and ph.x were run with the
nband flag. Task groups disabled.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9665 c92efa57-630b-4861-b058-cf58834340f0
2012-11-23 16:41:37 +00:00
dalcorso 8c733c5759 Bug fix: effective charges eu + PAW were not accurate with pools.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9664 c92efa57-630b-4861-b058-cf58834340f0
2012-11-23 16:09:31 +00:00
giannozz 55f5317e53 Removed fixed dimensions "nax". Note that this changes the way routine
"find_equiv_sites" and "writemodes" are called.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9663 c92efa57-630b-4861-b058-cf58834340f0
2012-11-23 11:02:28 +00:00
dalcorso 956074fe34 Bug fix: a file opened only by ionode is closed by all processors.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9657 c92efa57-630b-4861-b058-cf58834340f0
2012-11-22 15:19:21 +00:00
dalcorso 1a26a166d1 The ph.x now checks that the files are really opened before closing
them (as pw.x already does).


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9637 c92efa57-630b-4861-b058-cf58834340f0
2012-11-21 14:17:55 +00:00
dalcorso 1aae46b7d5 Phonon closure more consistent with the other programs.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9635 c92efa57-630b-4861-b058-cf58834340f0
2012-11-21 13:25:54 +00:00
marsamos 232476edef release 5.0.2 re-written in Phonon
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9634 c92efa57-630b-4861-b058-cf58834340f0
2012-11-21 12:52:25 +00:00
paulatto 433c8df101 Short explanation: minus_q symmetry fixed, for many years it was not really used.
Long explanation (read it if you with to know how symmetry works in phonon): 
The minus_q switch was supposed to reduce by half the number of k points required in a phonon calculation by using time reversal symmetry.
I.e. in a pw.x calculation if we have time-reversal symmetry, we can use k .seq. -k (k is symmetry-equivalent to -k) to limit the BZ integrals to half of the k-points.

In the phonon code, some integrals are done on the k+q grid, where k+q .not. seq. -k+q, hence we would have to use the full grid.
However, when there is a symmetry operation S such as
  Sq = -q+G   [1]
we can again use only half the k-point as long as we then symmetrize w.r.t. S + time reversal, i.e. rotate the dynamical matrix D with S and take the complex-conjugate. This operation is actually done at the beginning of symdynph_gq.f90
if minusq_q is true.

The problem is that S was only searched inside the small-group of q (SGq), which is wrong, for this reason: 
if S is in the SGq than Sq = q+G, combine this with eq. q and you'll get
  q+G = -q+G' [2]
i.e. q and -q are equivalent WITHOUT THE NEED OF ANY SYMMETRY. In this case S, the "minus_q" special symmetry, is just the indentity!! And the "minusq_q" special symmetrization is exactly the same as imposing hermiticity, which is done immediately before in symdynph_gq.f90. 

On the other hand we want Sq to be NOT equivalent to q, i.e.
  Sq =/= q+G  (for any G) [3]
this case gives use on more symmetry to exploit.

Line 164 of sgam_ph was:
     if (sym(irot) .and. .not.minus_q) then
in principle changing it to 
     if (.not.sym(irot) .and. .not.minus_q) then
is sufficient, but I decided to do as the old comment said:
        ! l'istruzione "originale" in kreductor era la seguente...
        !         if (.not. minus_q) then
which is also correct. If S happens to be in the SGq (in this case the S=Identity will be picked) hermiticity will be applied twice. This does not hurt and keeps the minus_q switch consistent, i.e. minusq_q = .true. will mean that there is a symmetry linking q to -q+G, this symmetry could also be the identity, which happens ate the zone border.

Notes: 
1. if a crystal has inversion symmetry then minus_q must be true for EVERY q point. 
2. if a crystal does NOT have inversion symmetry minus_q can still be true for some specific point, at least Gamma, I'm not sure if S can be anything else than identity in this case.
3. the change to set_irr_sym.f90 is just fix for a bug introduced by having sgam_ph working properly.
4. I tested this fix on the full phonon dispersion of a couple of high-symmetry lattices, without finding any problem, but some other code using the Phonon symmetry routines may do wrong assumptions about what minus_q actually is.

thank you for reading, LP



git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9630 c92efa57-630b-4861-b058-cf58834340f0
2012-11-20 13:32:05 +00:00
dalcorso ae71291b80 A (rarely used) case in which files were not explicitely closed by ph.x before
exiting. Some machines might leave partially written files on disk.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9627 c92efa57-630b-4861-b058-cf58834340f0
2012-11-16 17:29:33 +00:00
calandra 9570d6a8ef The call to rotate_dvscf_star is added in phonon.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9623 c92efa57-630b-4861-b058-cf58834340f0
2012-11-12 21:35:06 +00:00
calandra 559bdc4705 In the case trans=.false. and dvscf_star%open=.true. or in the
case trans=.false. and drho_star%open=.true. the program was not
working as the rotation of dvscf (or of drho) was carried out
inside dynmatrix.f90 that wass called only for trans=.true. .
The new routine rotate_dvscf_star.f90 extracts the lines
for the rotation of dvscf (drho) so that it can be called even
in the case of trans=.false.




git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9622 c92efa57-630b-4861-b058-cf58834340f0
2012-11-12 21:34:34 +00:00
dalcorso bcf60a5c97 Misplaced variable in previous commit.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9618 c92efa57-630b-4861-b058-cf58834340f0
2012-11-11 18:31:31 +00:00
dalcorso 1b4e33ab1d Small cleanup.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9615 c92efa57-630b-4861-b058-cf58834340f0
2012-11-10 14:54:27 +00:00
dalcorso d867300bdf Small cleanup.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9614 c92efa57-630b-4861-b058-cf58834340f0
2012-11-10 14:16:33 +00:00
dalcorso 6bd5617646 Inserted a check in cgph.x to stop the calculation if the nband option is
used and to disable task groups if pw.x used them.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9613 c92efa57-630b-4861-b058-cf58834340f0
2012-11-10 14:12:35 +00:00
dalcorso 5798c1780f Bug fix: grid splitting of irrep + single q point + wf_collect=.true. was
not working (thanks to Silvia Bahmann for reporting the bug).


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9611 c92efa57-630b-4861-b058-cf58834340f0
2012-11-09 15:57:03 +00:00
dalcorso ad962ba816 Bug fix: images with a single q point were not collecting properly the files.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9609 c92efa57-630b-4861-b058-cf58834340f0
2012-11-09 15:28:54 +00:00
dalcorso 22df49e1db Small bug fix: missing bcast.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9562 c92efa57-630b-4861-b058-cf58834340f0
2012-10-23 08:09:44 +00:00
spigafi a1851a909f Innocent change that helps compiling GPU-accelerated version of Phonon.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9533 c92efa57-630b-4861-b058-cf58834340f0
2012-10-14 17:41:03 +00:00
dalcorso b675d245a8 Small cleanup: misleading error messages.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9532 c92efa57-630b-4861-b058-cf58834340f0
2012-10-12 16:53:21 +00:00
giannozz 53bb2fb7d5 q=G recognized as q=0
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9510 c92efa57-630b-4861-b058-cf58834340f0
2012-10-10 16:04:26 +00:00
dalcorso 0d277e1674 Temporary bug fix: In ph.x the combination epsil=.true. and trans=.false.
was not working any more (bug reported by P. Umari).


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9502 c92efa57-630b-4861-b058-cf58834340f0
2012-10-10 08:49:44 +00:00
giannozz 0eb7f81280 mp_startup is a wrapper that calls mp_startup_new; mp_global_start removed.
To be verified, in particular phonon with images.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9495 c92efa57-630b-4861-b058-cf58834340f0
2012-10-08 16:31:09 +00:00
giannozz 70db657ff0 Routine made ready for changes needed to use CG diagonalization instead of
Davidson


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9488 c92efa57-630b-4861-b058-cf58834340f0
2012-10-07 19:58:40 +00:00
degironc 71390a0de8 symmetry workaroud for "Not a group" error that can result
when the symmetry checks are bordeline.
Repeat the symmetry tests with a reduced threshold thus identifying 
a suitable subgroup instead of disabling symmetry completely.

Contributed by Emine, modified by SdG as agreed with Paolo and Layla 
so as to explictely pass the acceptance threshold as argument to eqvect.f90.

all other known istances of eqvect in the distibution modified 
passing accep=1.e-5_dp as argument thus reproducing  previous behaviour.
 
stefano



git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9483 c92efa57-630b-4861-b058-cf58834340f0
2012-10-06 15:03:54 +00:00