Commit Graph

44 Commits

Author SHA1 Message Date
giannozz 192b4b2ad1 Check on input variable consistency displaced to where it belongs
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@7835 c92efa57-630b-4861-b058-cf58834340f0
2011-06-05 19:36:23 +00:00
giannozz d5244a1c9e Misc changes to dynamics:
1) in my opinion, the Andersen thermostat was not doing what it was 
supposed to do. Not sre now it does it, though.
2) the code now performs as many dynamics steps as required in input, 
even when restarting from a previous run.
3) Random number generator further randomized to prevent repeating the
same "random" configuration


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@7824 c92efa57-630b-4861-b058-cf58834340f0
2011-05-27 18:35:35 +00:00
kucukben dff434e74d Minor bug introduced in recent bugfix: nstep replaced with nrefresh
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@7758 c92efa57-630b-4861-b058-cf58834340f0
2011-05-07 08:07:38 +00:00
giannozz ad1c08c29b Bug in damped dynamics: hessian matrix incorrectly reset. Courtesy of Nicola Manini
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@7756 c92efa57-630b-4861-b058-cf58834340f0
2011-05-06 16:05:13 +00:00
giannozz 61679f03cb Not sure why three arrays were initialized to 0/0 (triggering a floating point
error when debug is on). I guess it was for a check. I replaced it with a very
large value, that should make visible trouble in case of improper usage.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@7294 c92efa57-630b-4861-b058-cf58834340f0
2010-12-10 13:58:01 +00:00
nn245 cdbcdea9de Bugfix for ATOMIC_VELOCITIES: correct scaling factor alat (N. Nemec)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6942 c92efa57-630b-4861-b058-cf58834340f0
2010-08-02 10:03:24 +00:00
nn245 f8f27ae895 Use input card ATOMIC_VELOCITIES to set initial velocities in Verlet-MD (N. Nemec)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6911 c92efa57-630b-4861-b058-cf58834340f0
2010-07-15 14:39:21 +00:00
nn245 0ac46cacb8 New choice ION_TEMPERATURE='initial': set temperature once and leave uncontrolled furtheron (N. Nemec)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6910 c92efa57-630b-4861-b058-cf58834340f0
2010-07-15 14:39:15 +00:00
nn245 f406b110d9 minor internal restructuring (N. Nemec)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6909 c92efa57-630b-4861-b058-cf58834340f0
2010-07-15 14:39:08 +00:00
nn245 fe062e73c4 fix indentation (N. Nemec)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6908 c92efa57-630b-4861-b058-cf58834340f0
2010-07-15 14:39:03 +00:00
nn245 12c6c13250 Prepare for correct use of initial velocities in Verlet-MD (N. Nemec)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6907 c92efa57-630b-4861-b058-cf58834340f0
2010-07-15 14:38:57 +00:00
nn245 bfac2969bb remove unnecessary RETURN (N. Nemec)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6906 c92efa57-630b-4861-b058-cf58834340f0
2010-07-15 14:38:51 +00:00
nn245 07032df5bd apply src-normal (N. Nemec)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6905 c92efa57-630b-4861-b058-cf58834340f0
2010-07-15 14:38:33 +00:00
giannozz da3f938442 More symmetry cleanup (sort of). Symmetry-related variables, together with
routines that find the symmetry of a system, are in module symm_base;
module symme contains only routines for symmetrization of the various
quantities.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6403 c92efa57-630b-4861-b058-cf58834340f0
2010-02-12 20:57:55 +00:00
giannozz f1e241876b First attempt to solve the problem of xcrysden not reading the final
coordinats in a relax calculation. I followed Tone's suggestion. The
delimiters for the final set of cordinates are just one of the possible
choiceis and can be easily changed in output_tau.f90


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6036 c92efa57-630b-4861-b058-cf58834340f0
2009-10-17 11:19:30 +00:00
giannozz 3cd50d0257 More cleanup: spelling of Quantum ESPRESSO, CMPLX explicitly cast, f_defs.h
removed, a few REAL transformed into DBLE. Note that my previos statement
about REAL is overblown: REAl(C) is perfectly safe if C is a double precision
complex number. All changes should be safe.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5793 c92efa57-630b-4861-b058-cf58834340f0
2009-08-01 17:48:59 +00:00
giannozz 6f52984cd2 Only one random number generator is used everywhere ("randy", which
seems to be the most uniform). Beware all kinds of unexpected side
effects.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5272 c92efa57-630b-4861-b058-cf58834340f0
2008-11-05 20:25:20 +00:00
giannozz fb07aef1ba Changes required by interfacing with new electron-phonon code (Matteo):
variable "noinv" (previously defined but unused) disables the usage of
time reversal (q => -q) symmetry in k-point generation. Several changes
here and there to symmetry routines. Beware unexpected side effects.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4735 c92efa57-630b-4861-b058-cf58834340f0
2008-03-11 15:38:23 +00:00
giannozz 591d943a6a Minor changes to wavefunctions extrapolation; added possibility to
start from charge density calculated from extrapolated wavefunctions
(undocumented, to be testes)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4686 c92efa57-630b-4861-b058-cf58834340f0
2008-02-11 11:39:31 +00:00
paulatto 69c94cadb8 Various bugfixes:
becsum is now saved on file, to allow restart with PAW; it still needs some testing.

As a consequence read/write of lda+U ns coeffs have been unified with becsum and rho.
Subroutines read_rho and write_rho from "io_rho_xml.f90" are now managed by an interface:
if param #1 is rho(nrxx,nspin) it will call the old subrt; if param #1 is of scf_type
it will save becsum and ns too in separate files (xml is not used, but can be added
easily now).

Fixed uninitialized variable in dynamics_module caused crashes in parallel MD.

Added error handling in paw part of read_upf.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4683 c92efa57-630b-4861-b058-cf58834340f0
2008-02-08 14:56:52 +00:00
cavazzon a60c1a58ee - insidious BUG FIX, in BO-MD of pw.x pointed out by Allouche
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4667 c92efa57-630b-4861-b058-cf58834340f0
2008-01-31 22:45:28 +00:00
giannozz 0792ed8d25 Call to infomsg simplified, removed the absurd "error -1"
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3987 c92efa57-630b-4861-b058-cf58834340f0
2007-06-26 16:46:01 +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 78b2711efa Velocity rescaling cleanup. There are different keywords for different
kinds of rescaling. The plain 'rescaling' is performed  whenever the
difference between the actual and target T exceeds a given value (tolp).
This is the same for all cases: CP and PW, both fixed- and variable-cell
MD. The previous rescalings of PW get different names:
rescale-v, rescale-T, reduce-T (suggestions for better names are welcome).
The usage of 'tolp' in variable-cell MD is changed and aligned to the
definition used in fixed-cell MD and in CP. Documentation corrected and
updated. Note that the 'langevin' thermostat mentioned in the code is
still undocumented and maybe not implemented.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3837 c92efa57-630b-4861-b058-cf58834340f0
2007-03-05 10:38:15 +00:00
giannozz 72f7024581 Added yet another velocity rescaling, following a recipes by
Berendsen et al (see Eq. 7.59 of Allen-Tildesley):
ion_temperature='berendsen' + yet another input parameter t_rise (in ps)
Fixed (I think) another case of rescaling (delta T > 0)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3828 c92efa57-630b-4861-b058-cf58834340f0
2007-02-28 18:26:11 +00:00
giannozz 6f9417a7fc missing commas in format
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3641 c92efa57-630b-4861-b058-cf58834340f0
2007-01-04 13:43:46 +00:00
giannozz 3a98e2d9d4 More patches from Axel:
- correct an unquoted string (iosys) in PW/input.f90:483
(this was the cause of tonight compilation failere)
- correct a few incorrect format strings
- make more use of the constants module and thus
  provide more consistent units. NOTE, this has some
  numerical changes in the outputs, as in some places
  rather low precision and inconsistent numbers were
  used for unit conversion.
- convert all(?) single precision constants to double
  using the attached little perl program.
  exceptions: efermi.f90 (as it is supposed to be rewritten
  anyways), plotbands.f90 (it uses single precision everywhere,
  which may result in saving a significant amount of memory,
  so i converted the two double precision constants to single).
Unused routine 'set_fft_grid' removed


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3602 c92efa57-630b-4861-b058-cf58834340f0
2006-12-14 08:53:47 +00:00
sbraccia f4171e694c Few improvments of image parallelization algorithm for NEB and SMD (both potential
energy and free-energy calculations): now it works for local file-systems also.
Variables names conflicting with  fortran keywords (target) have been changed.
Clean-up of meta-dynamics code.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3592 c92efa57-630b-4861-b058-cf58834340f0
2006-12-11 14:51:54 +00:00
giannozz 1e235af88b More patches by Axel: all occurrences of "index" replaced by "idx".
"index" is an instrinsic and shouldn't be used as a variable.
control-M characters removed from qexml.f90


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3585 c92efa57-630b-4861-b058-cf58834340f0
2006-12-01 14:41:55 +00:00
giannozz de4c662862 Shorthand for Rydberg is Ry, not ryd
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3476 c92efa57-630b-4861-b058-cf58834340f0
2006-10-23 12:32:54 +00:00
sbraccia ef8867974b Fixed few bugs in meta-dynamics calculation (related to recent modifications of
MD). C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3192 c92efa57-630b-4861-b058-cf58834340f0
2006-06-22 13:17:58 +00:00
sbraccia 3b9472b1a9 Fixed two bugs (one related to the removal of the prefix.md file, the other to
the extrapolation of the charge) in the restart procedure of a MD run.
Added a control flag in the restart file used to verify if the file contains
consistent information that can be used for post-processing.
Cleanup of unused features and variables.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3163 c92efa57-630b-4861-b058-cf58834340f0
2006-06-07 02:01:57 +00:00
sbraccia 70b3f57c64 Check on zero linear momentum not done in case of Langevin dynamics. C.S.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3116 c92efa57-630b-4861-b058-cf58834340f0
2006-05-11 13:49:49 +00:00
sbraccia ce277a60a5 Cleanup. C.S.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2989 c92efa57-630b-4861-b058-cf58834340f0
2006-04-01 22:28:29 +00:00
sbraccia 9a2dc6cddf Added an input variable to refold the ionic coordinates into the supercell at
each step. Fixed a serious bug in overdamped Langevin dynamics.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2967 c92efa57-630b-4861-b058-cf58834340f0
2006-03-27 21:40:10 +00:00
sbraccia 05fbef4dd5 Cleanup of the dynamics module. C.S.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2927 c92efa57-630b-4861-b058-cf58834340f0
2006-03-17 14:07:11 +00:00
sbraccia ef651ea048 Added the possibility of performing over-damped Langevin dynamics (PW only).
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2903 c92efa57-630b-4861-b058-cf58834340f0
2006-03-10 22:31:18 +00:00
sbraccia b8d7a31771 *** empty log message ***
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2854 c92efa57-630b-4861-b058-cf58834340f0
2006-02-27 20:01:26 +00:00
sbraccia 75977b79e0 dynamics splitted into two different routines, one for Verlet dynamics, the other
for preconditioned damped dynamics.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2799 c92efa57-630b-4861-b058-cf58834340f0
2006-02-09 21:46:06 +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
sbraccia 07fe6e0fa4 New denomination of constraint types (now an identification string is used instead of
an index). Removed the two cases constrained_verlet and constrained_damp: a constrained
dynamics is automatically done if the CONSTRAINTS card is present. Added a keyword to
monitor the value of the constraints during the simulation. In this case the constraints are
not imposed.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2740 c92efa57-630b-4861-b058-cf58834340f0
2006-01-28 22:35:48 +00:00
sbraccia a5eeeee8c5 All functions used to generate random number collected in a single module. Added two routines
random numbers from a normal distribution.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2725 c92efa57-630b-4861-b058-cf58834340f0
2006-01-25 04:24:49 +00:00
sbraccia 5056a0fd5a Fixed some bugs introduced in the metadynamics by the recent modifications.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2708 c92efa57-630b-4861-b058-cf58834340f0
2006-01-17 16:52:56 +00:00
sbraccia 5297687e74 Routines and variables used for molecular dynamics in PWscf merged into a single module.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2703 c92efa57-630b-4861-b058-cf58834340f0
2006-01-13 17:25:42 +00:00