Commit Graph

83 Commits

Author SHA1 Message Date
giannozz afec752184 End of this set of not-so-fundamental changes. Summary:
1) no more f_defs.h file to be included in fortran files
2) all CMPLX explicitly defined as CMPLX(...,KIND=dp)
3) blas/lapack names in lowercase (not all of them, actually)
4) documentation accordingly updated (plus unrelated changes to user_guide)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5805 c92efa57-630b-4861-b058-cf58834340f0
2009-08-03 09:19:02 +00:00
dalcorso 7d642e42fa A possible fix to the problem pointed out by A. Marini. Now el-ph calculations
with trans=.false. and ldisp=.true. should be possible if dvscf was
saved on file.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5563 c92efa57-630b-4861-b058-cf58834340f0
2009-05-20 16:21:06 +00:00
dalcorso 7e5d13a40d Ph.x does not overwrite any more the files written by pw.x.
xml_not_of_pw variable removed.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5552 c92efa57-630b-4861-b058-cf58834340f0
2009-05-05 16:23:23 +00:00
giannozz f49e237a59 electron-phonon calculation on a uniform grid of q-points +
Delta Vscf and dynamical matrices read from file = bad results:
the Delta Vscf saved to file are overwritten at each q-point.
Check added to disable this case.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5529 c92efa57-630b-4861-b058-cf58834340f0
2009-04-22 15:06:01 +00:00
dalcorso 1114664827 nrapp or nat_todo with gamma_gamma tricks is not programmed. Added
a check to avoid these cases and a new input variable to disable
gamma_gamma tricks from input.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5498 c92efa57-630b-4861-b058-cf58834340f0
2009-04-02 20:37:46 +00:00
dalcorso 1d2ceae531 Minor cleanup of the phonon code (part 2). USE phcom and USE pwcom
substituted by multiple USE statements.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5368 c92efa57-630b-4861-b058-cf58834340f0
2009-02-04 08:28:27 +00:00
dalcorso 2f0915fd17 DFPT with PAW (initial implementation).
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5321 c92efa57-630b-4861-b058-cf58834340f0
2008-12-02 17:47:55 +00:00
dalcorso e6aedd4a76 Try to control better when to recalculate bands in recover runs of ph.x.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5266 c92efa57-630b-4861-b058-cf58834340f0
2008-11-04 18:01:39 +00:00
dalcorso f75fbe25ab Small change to the ph output in a recover run.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5261 c92efa57-630b-4861-b058-cf58834340f0
2008-11-03 17:36:59 +00:00
dalcorso 39a065f51d Several improvements, problems/bug fixes needed for the grid.
(Thanks to R. Di Meo for pointing out some of the problems).


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5236 c92efa57-630b-4861-b058-cf58834340f0
2008-10-23 14:47:04 +00:00
giannozz b14ae22a3e Removed q-point from PWscf (variable xqq), removed phonon-related variables
from xml file (beware unexpected side effects in phonon restart).


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5203 c92efa57-630b-4861-b058-cf58834340f0
2008-09-18 20:27:46 +00:00
giannozz 8bd4147ab9 Option lnscf always set to .true.. More phonon symmetry cleanup:
nrot  is the number of sym.ops. of the Bravais lattice,
read from data file, only used in set_default_pw.
nsym  is the number of sym.ops. of the crystal symmetry group,
read from data file, should never be changed.
nsymq is the number of sym.ops. of the small group of q,
it is calculated in set_defaults_pw for each q.
The matrices "s" of sym.ops are ordered as follows:
first the nsymq sym.ops. of the small group of q
(the ordering is done in subroutine copy_sym in set_defaults_pw),
followed by the remaining nsym-nsymq sym.ops. of the crystal group,
followed by the remaining nrot-nsym sym.ops. of the Bravais  group


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5175 c92efa57-630b-4861-b058-cf58834340f0
2008-09-05 09:52:22 +00:00
dalcorso 872dfd9859 Cleanup. broadcast of nq1,nq2,nq3,iq1,iq2,iq3 moved to bcast_ph_input.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5078 c92efa57-630b-4861-b058-cf58834340f0
2008-07-28 08:02:40 +00:00
dalcorso d3b31c3cc3 A tentative to improve the phonon recover.
Introduced four new input variables:

start_q, last_q  Makes the phonon calculation for a subset of the q points.
                 From start_q to last_q.

start_irr, last_irr Makes the phonon calculation for a subset of the
                 irreducible representations.

Removed the input variable maxirr.

Starting k points now written in the punch file.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5066 c92efa57-630b-4861-b058-cf58834340f0
2008-07-23 08:46:48 +00:00
dalcorso 0233b050f4 Added two checks to stop the phonon code in non implemented cases:
lraman+GGA,
fpol+noncolinear


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5056 c92efa57-630b-4861-b058-cf58834340f0
2008-07-21 08:47:43 +00:00
giannozz 98d359d9d8 Mode number for single-mode calculation can be passed to phonon as well.
This was the last type of phonon calculation requiring three-step
procedure: separate scf + non-scf + phonon calculations.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5047 c92efa57-630b-4861-b058-cf58834340f0
2008-07-08 12:08:57 +00:00
degironc fac9d6fb39 a bit more reasonable tr2_ph threshold . Used to be 1.d-10 now it is 1.d-12
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4970 c92efa57-630b-4861-b058-cf58834340f0
2008-06-10 14:20:29 +00:00
dalcorso 7fc900d5a9 Variable tqr moved to control flag and written in the xml file.
It was not initialized by the postprocessing programs.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4610 c92efa57-630b-4861-b058-cf58834340f0
2008-01-06 11:54:52 +00:00
dalcorso 234035e26f Separated amass and pmass used in phonon.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4589 c92efa57-630b-4861-b058-cf58834340f0
2008-01-02 16:50:53 +00:00
dalcorso ef824789a1 Problem fix: The option lnscf was not implemented with pools.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4496 c92efa57-630b-4861-b058-cf58834340f0
2007-12-04 09:40:58 +00:00
giannozz bdae2b6cb1 Cleanup of wavefunction initialization. Since I wasted two hours hunting
for a bug, before I realized that there were two copies of "gamma_only",
I wasted two more hours to iuse a single value of "gamma_only" (the one
oin control_flags).


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4468 c92efa57-630b-4861-b058-cf58834340f0
2007-11-22 14:23:04 +00:00
dalcorso 101a627c19 Added the possibility to use paw pseudopotentials in PWCOND.
(Still experimental).


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4451 c92efa57-630b-4861-b058-cf58834340f0
2007-11-20 09:12:02 +00:00
dalcorso 094113e65c Dielectric constant and effective charges in the noncollinear spin/orbit
case. (Very experimental).


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4327 c92efa57-630b-4861-b058-cf58834340f0
2007-10-08 16:17:11 +00:00
dalcorso 89181afadb Added the possibility to make noncollinear/spin-orbit GGA phonon calculation.
(Still very experimental).


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4201 c92efa57-630b-4861-b058-cf58834340f0
2007-09-03 07:20:09 +00:00
kkudin 1479303555 Added new input variables (iq1, iq2, iq3) to the PH code such that it
is now possible to run the PH code for just one k point out of the
full dispersion grid (specified by nq1, nq2, nq3). This way there is
no need to run PW with 'phonon' first for a non-Gamma k point, and
perhaps, there are some other positive (or negative?)  effects that I
am not aware of.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4191 c92efa57-630b-4861-b058-cf58834340f0
2007-08-29 18:55:40 +00:00
dalcorso 23a8a73ac3 The variables needed to constrain the magnetization written in the punch
file. The ph.x, pwcond.x, pp.x and bands.x codes now stop if pw.x has
been run with constrained magnetization.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4083 c92efa57-630b-4861-b058-cf58834340f0
2007-07-28 16:40:41 +00:00
dalcorso 2a8b254cc8 The ph.x, bands.x and pp.x now check that pw.x has been run with the same
number of processors.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4051 c92efa57-630b-4861-b058-cf58834340f0
2007-07-21 16:25:09 +00:00
dalcorso 9cc0f71be6 Sorry.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4043 c92efa57-630b-4861-b058-cf58834340f0
2007-07-17 16:42:40 +00:00
dalcorso 341d6d5603 Added a list of atomic masses. The code uses them when the input masses
are zero or negative.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4040 c92efa57-630b-4861-b058-cf58834340f0
2007-07-17 16:26:27 +00:00
giannozz ddfe7191ca Some max_second confusion cleaned up. It is still initialized in too
many different places, but at least to the same value (10^7 s)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3980 c92efa57-630b-4861-b058-cf58834340f0
2007-06-25 13:35:29 +00:00
dalcorso 0a51dc5f2b Added a few checks to stop the codes PH and PWCOND if lda_plus_u is true.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3965 c92efa57-630b-4861-b058-cf58834340f0
2007-06-12 13:06:59 +00:00
giannozz 6a87492470 Unused variable 'filelph' removed
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3833 c92efa57-630b-4861-b058-cf58834340f0
2007-03-05 09:31:51 +00:00
giannozz a695a60e60 PH: reduce_io moved into control_ph
Updated control_flags module saved: CP will not compile otherwise


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3809 c92efa57-630b-4861-b058-cf58834340f0
2007-02-22 10:34:43 +00:00
dalcorso 69c1fd137a Phonon in the noncollinear and spin-orbit case. Routines with small changes.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3766 c92efa57-630b-4861-b058-cf58834340f0
2007-02-08 13:07:07 +00:00
giannozz b8be6aadc6 Minor cleanup (lgauss used whenever appropriate)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3618 c92efa57-630b-4861-b058-cf58834340f0
2006-12-18 18:28:42 +00:00
dalcorso 72ebd925a1 Added two flags, lrpa and lnoloc to print the dielectric constant
calculated with DV_xc=0 (RPA), or with DV_H=0 and DV_xc=0.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3571 c92efa57-630b-4861-b058-cf58834340f0
2006-11-27 08:58:23 +00:00
giannozz 6232da2eaf getenv replaced by wrapper get_env, preprocessed only in a single file
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3452 c92efa57-630b-4861-b058-cf58834340f0
2006-10-11 14:42:42 +00:00
giannozz 2145c19e68 modenum should not be read again by the phonon code
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3366 c92efa57-630b-4861-b058-cf58834340f0
2006-09-07 17:16:31 +00:00
giannozz 6c40185885 - outdir is set by default to the value of the $ESPRESSO_TMPDIR
environment variable, or to './' (as before) if this is not set
- pseudo_dir is set by default to the value of $ESPRESSO_PSEDIR,
  to $HOME/espresso/pseudo/ otherwise
- documentation updated to reflect the new defaults
Note that the 'capture' of $HOME/pw/pseudo using a call to 'getenv'
was already present in pwscf but it was not working (pseudo_dir was
overwritten) so nothing susceptible to create new problems was added.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3309 c92efa57-630b-4861-b058-cf58834340f0
2006-08-08 18:05:16 +00:00
dalcorso 859f33b332 The new variable lgamma_gamma has been introduced in ph.x.
This variable is .true. when xq is gamma and only the gamma point is used
for k point sampling.
The symmetrization used in phcg.x has been imported in ph.x in the case
lgamma_gamma=.true..


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3288 c92efa57-630b-4861-b058-cf58834340f0
2006-07-26 15:02:37 +00:00
dalcorso 3f443ecc36 Small bug fix.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3238 c92efa57-630b-4861-b058-cf58834340f0
2006-07-03 10:06:14 +00:00
giannozz a2ebc57c2a The phonon code was writing garbage on output under "Title"
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3002 c92efa57-630b-4861-b058-cf58834340f0
2006-04-06 12:13:54 +00:00
giannozz 9709360007 - Electron-phonon calculation with the new (Malgorzata) algorithm should
now work together with dispersion calculations. No need for N separate
  calculations for each q. The example will come soon.
- misc el-phon cleanup, removal of old stuff
- misc cleanup
NOTA BENE: the phonon code badly needs a cleanup of the symmetry stuff!


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2999 c92efa57-630b-4861-b058-cf58834340f0
2006-04-05 13:15:37 +00:00
degironc 897c33c1e5 Calculation of finite (imaginary) frequency polarizability added.
So far it only works for non-metals and the output is specific for
molecules (it prints polarizability, not the dielectric constants).
Contributed by Viet Huy Nguyen.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2980 c92efa57-630b-4861-b058-cf58834340f0
2006-03-30 09:43:38 +00:00
giannozz 8eda231bbb - Variable cell: use Cesar Da Silva's version of the damping algorithm
(he claims it is more tested); documentation updated (sort of)
- routines find_free_unit, delete_if_present, moved from 'parser'
  to 'io_files' (it is a more natural place)
- routines int_to_char moved from 'parser' to flib/ (it is quite
  unrelated with the rest of the module)
- routine trimcheck moved from flib/ to 'io_files' (more natural place)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2753 c92efa57-630b-4861-b058-cf58834340f0
2006-02-01 17:56:16 +00:00
giannozz 44aa98ae4d Masses read from input by ph.x were overwritten by masses read from data file
(new format). The latter are now used only if masses are not read from input.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2737 c92efa57-630b-4861-b058-cf58834340f0
2006-01-27 14:21:31 +00:00
giannozz 68f1660a48 Electron-phonon calculation using Malgorzata's technique
Still preliminary and undocumented


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2654 c92efa57-630b-4861-b058-cf58834340f0
2005-12-28 10:55:17 +00:00
giannozz 0a6cf4552d Updated documentation for simplified interatomic force constants calculation
A file containing information on the q-point grid is written by ph.x
and read by q2r.x, thus making the process less clumsy
The phonon code does not restart automatically any longer unless instructed
to do so by setting input variable "recover"
Misc cleanup


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2039 c92efa57-630b-4861-b058-cf58834340f0
2005-07-20 14:57:21 +00:00
giannozz e3bb8be1db New routine input_from_file called everywhere
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1948 c92efa57-630b-4861-b058-cf58834340f0
2005-06-09 07:35:50 +00:00
giannozz a1fd63174a - Check on consistency of input flags
- Raman tensor in A^2


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1814 c92efa57-630b-4861-b058-cf58834340f0
2005-04-19 10:45:36 +00:00