Commit Graph

62 Commits

Author SHA1 Message Date
dalcorso 563c7f8066 Cleanup.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4612 c92efa57-630b-4861-b058-cf58834340f0
2008-01-06 14:33:19 +00:00
dalcorso 4e9fd198c9 Several variables had undefined values when init_run and electrons were called
by phonon. set_defalts_pw sets defaults values for this variables.
Further cleanup should make this routine unnecessary.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4611 c92efa57-630b-4861-b058-cf58834340f0
2008-01-06 12:18:40 +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 bc6b2c002b single-q phonon calculation re-added (untested)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4487 c92efa57-630b-4861-b058-cf58834340f0
2007-12-03 08:40:15 +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 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
giannozz 67e5b10289 The previous fix was breaking something else, I hope this one is good
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4240 c92efa57-630b-4861-b058-cf58834340f0
2007-09-13 12:42:51 +00:00
giannozz 224222bdfa Case lnscf + lsda was also producing twice the neede k-points
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4239 c92efa57-630b-4861-b058-cf58834340f0
2007-09-13 11:33:16 +00:00
dalcorso ab962be754 Bug fix: the phonon code was using too many k points with ldisp=.true. and
nspin=2.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4219 c92efa57-630b-4861-b058-cf58834340f0
2007-09-06 10:02:05 +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
giannozz 6b1373a372 Workaround for mysterious crashes with intel compilers finally (maybe) found.
Apparently the reason is insufficient stack size, but it may not be sufficient
to use command "limits" o "ulimit", because the stack size seems to be reset
either by queueing systems or by the code itself. A C routine that removes
stack limits has been added and is called at the beginning of the run.

Fixed format error in printout of parameters for Berendsen thermostat (Eduardo)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3954 c92efa57-630b-4861-b058-cf58834340f0
2007-06-04 15:01:14 +00:00
giannozz 1311ac8315 Option "lnscf=.true." ws not working
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3832 c92efa57-630b-4861-b058-cf58834340f0
2007-03-01 14:11:36 +00:00
giannozz f4d85e0a24 Phonon dispersions were no longer working after last change to pools
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3791 c92efa57-630b-4861-b058-cf58834340f0
2007-02-18 16:37:41 +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
dalcorso c2e91e7533 Bug fix: ph.x was not working with pools and ldisp=.true..
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3731 c92efa57-630b-4861-b058-cf58834340f0
2007-01-31 17:09:47 +00:00
giannozz 5b979740a0 No need to recalculate once again the charge density + misc updates
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3729 c92efa57-630b-4861-b058-cf58834340f0
2007-01-31 15:53:04 +00:00
giannozz b1572f20f2 More uninitialized variables
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3622 c92efa57-630b-4861-b058-cf58834340f0
2006-12-19 10:54:38 +00:00
giannozz 178ef11a75 More undefined variables in phonon
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3621 c92efa57-630b-4861-b058-cf58834340f0
2006-12-19 09:42:52 +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
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 ac1a49fda5 Avoid that a phonon run stops during bands calculation.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3249 c92efa57-630b-4861-b058-cf58834340f0
2006-07-06 14:07:16 +00:00
dalcorso f561740bc8 Initialization of check_stop in the phonon code.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3227 c92efa57-630b-4861-b058-cf58834340f0
2006-06-30 08:54:04 +00:00
sbraccia ea0935fb5f Fixed a bug in the definition of the diagonalization thresholds for empty
states. This bug (introduced at the end of May 2005) was responsible for
somehow wrong results in the case of calculations with many k-points.
Cleanup of diagonalization thresholds: wg_set variable removed and btype array
is now set in sum_band.
Added a logical input variable (diago_full_acc) to decide if the empty states
(defined as states with occupation < 1%) have to be converged at full accuracy
or not. Defaul is .FALSE. (I am not sure this is the best choice, comments
appreciated).
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3040 c92efa57-630b-4861-b058-cf58834340f0
2006-04-24 17:32:08 +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 f10f109950 tot_magnetization set to -1 (i.e. unset) when calculating phonon
dispersions to prevent a stupid error when initializing non-scf
calculations at finite k (the problem arises only with metals).
I don't know if this may cause trouble in other cases, though.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2973 c92efa57-630b-4861-b058-cf58834340f0
2006-03-28 16:26:43 +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 80ad81b265 1) phonon: workaround for serious bug in parallel execution
(waiting for a better solution)
2) time_max => max_second : bad name but the same everywhere


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2699 c92efa57-630b-4861-b058-cf58834340f0
2006-01-13 15:38:56 +00:00
sbraccia 27b407c2a3 Various fixes to the xml data-file (thanks to A.Ferretti).
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2583 c92efa57-630b-4861-b058-cf58834340f0
2005-12-13 14:45:35 +00:00
giannozz f533b052d5 dbl => DP (defined as previously dbl was)
syntax for declarations: real(DP), without "kind="


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2135 c92efa57-630b-4861-b058-cf58834340f0
2005-08-28 14:09:42 +00:00
degironc 285119fa34 seqopn.f90 and diropn.f90 modified in such a way that the name of
all files open by seqopn.f90 and diropn.f90 in the TMP_DIR have the
general form "prefix"."extension" where extension is the only part of
the filename passed as an argument. This should avoid conflicts between
different jobs running at the same time and sharing the same TMP_DIR
(provided they have different prefixes ...)

All examples (from 1 to 26) give the same output as before on my pc.
Please let me know if you notice unexpected behaviours.

stefano

PS: example26 apparently does nothing (even giving the command run_example 7)..
As it uses cp.x which does not use seqopn/diropn routines this behaviour
cannot be due to the present changes.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1963 c92efa57-630b-4861-b058-cf58834340f0
2005-06-17 13:27:38 +00:00
giannozz fe1f888e42 Minor fixes to have phonon restart in a Raman calculation
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1819 c92efa57-630b-4861-b058-cf58834340f0
2005-04-20 17:27:14 +00:00
giannozz e03cb4b5d7 Raman calculation with 2nd-order response by Michele Lazzeri added
(temporarily together with phonon)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1677 c92efa57-630b-4861-b058-cf58834340f0
2005-03-04 17:46:02 +00:00
cazzato a6ad18850a iswitch flag removed; appropriate flags (as lscf, lmd, lphonon, etc.) should be used
in particular (modenum.ne.0) stands for iswitch = -4 now: is it OK?
unused show_memory routine also removed
documentation updated


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1503 c92efa57-630b-4861-b058-cf58834340f0
2004-12-10 15:20:46 +00:00
sbraccia e6aa41ea47 Again on the old parallel variables.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1424 c92efa57-630b-4861-b058-cf58834340f0
2004-11-04 13:35:00 +00:00
giannozz 1648ab6bf2 Patches from Axel Kohlmayer:
- iotk_scan in iotk_module had a mixed up 'intent' statement.
- sun ultra fire 3 compiler warnings
- cleanup in filename length (brought to 256)
- cleanup in include files


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1399 c92efa57-630b-4861-b058-cf58834340f0
2004-10-26 09:32:48 +00:00
giannozz d43140a669 Fixed compilation problem in phonon (parallel)
Re-fixed bad initialization of startingpot with calculation='raman'


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1178 c92efa57-630b-4861-b058-cf58834340f0
2004-08-26 16:18:28 +00:00
deinzer 73c24c3351 small modifications in saving fildrho
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1177 c92efa57-630b-4861-b058-cf58834340f0
2004-08-26 14:20:10 +00:00
ballabio c63e3325a7 Other small changes in the output [Gerardo]
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1070 c92efa57-630b-4861-b058-cf58834340f0
2004-07-14 14:58:51 +00:00
sbraccia 5d20c661ef Cleanup and fixes of minor errors in phonon.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1055 c92efa57-630b-4861-b058-cf58834340f0
2004-07-09 15:50:50 +00:00
giannozz 633f59fab5 Minor things
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1035 c92efa57-630b-4861-b058-cf58834340f0
2004-07-01 15:51:11 +00:00
deinzer b36b5527d0 Cleanup: 'dispersion' removed from PW, is now entirely in PH
module disp moved from pwcom to phcom
         variable nqx changed to nqmax


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1032 c92efa57-630b-4861-b058-cf58834340f0
2004-06-30 17:56:05 +00:00
giannozz ddf01b76d6 Better check (again)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1029 c92efa57-630b-4861-b058-cf58834340f0
2004-06-30 13:57:23 +00:00
deinzer 427237849d file .stat. works now in parallel
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1028 c92efa57-630b-4861-b058-cf58834340f0
2004-06-30 13:27:27 +00:00
giannozz 0f728ab674 Better check
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1027 c92efa57-630b-4861-b058-cf58834340f0
2004-06-30 11:57:50 +00:00
deinzer 56680c2867 bug fixes in parallel execution
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1020 c92efa57-630b-4861-b058-cf58834340f0
2004-06-28 16:28:48 +00:00
deinzer 3ac7daa2ee Calculation of the dynamical matrices for the dispersion
is now within ph.x possible.
New input variables:
lnscf: if .true. the nscf and phonon run are done in one single run

ldisp: if .true. calculation of dyn. matrices for dispersion
nq1, nq2, nq3: q-point mesh


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1017 c92efa57-630b-4861-b058-cf58834340f0
2004-06-28 10:08:53 +00:00
dalcorso 87c39c304e recovering from an electric field perturbation now possible.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@966 c92efa57-630b-4861-b058-cf58834340f0
2004-06-14 15:45:07 +00:00
giannozz 0b1a5c9fd8 Extensive module cleanup: DP moved from wrong place (parameters) to the
correct place (kinds); module "varie" replaced by "control_flags" (not
yet in pwcom, though) - many many files changed.
64-bit cpus (Opteron, maybe Itanium) should now work if __LINUX64 is defined


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@513 c92efa57-630b-4861-b058-cf58834340f0
2004-01-23 15:08:03 +00:00