Commit Graph

52 Commits

Author SHA1 Message Date
dceresoli 8c284bd324 Self explaining. (D.C.)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6302 c92efa57-630b-4861-b058-cf58834340f0
2010-01-15 20:25:56 +00:00
giannozz bbee9b22aa cp.x no longer compiling: cryst_to_car was missing. Moved from PW/ to flib/
(seems to me a more appropriate place tahn Modules/). Minor cleanup: two
variables, one for CP and one for PW, with the same meaning and equally
misleading names (atomic_positions and tau_units) merged into one with
a more descriptive name (tau_format)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6165 c92efa57-630b-4861-b058-cf58834340f0
2009-11-17 13:08:14 +00:00
giannozz a3a39fc998 Cleanup: uniform spelling for "Quantum ESPRESSO", removal of f_defs.h,
CMPLX is explicitly typed, blas/lapack are lowercase (consistently with
the convention: FORTRAN COMMANDS = uppercase, all the rest lowercase)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5789 c92efa57-630b-4861-b058-cf58834340f0
2009-08-01 14:26:46 +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
cavazzon afc7d6eb2c - Forgotten commit for the external forces stuff
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5065 c92efa57-630b-4861-b058-cf58834340f0
2008-07-23 08:09:44 +00:00
giannozz 45ae58d60b All occurrences of d0, d+N, d-N, replaced with fortran-90 style _DP.
Please do not re-introduce old-style syntax. A uniform syntax allows
if the need arises to change the precision in less than no time.
Courtesy of Pascal Thibeaudeau. Modules/ directory only.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3964 c92efa57-630b-4861-b058-cf58834340f0
2007-06-11 17:13:15 +00:00
cavazzon f0d8b9f78e - removed unused subroutines
- clean-ups


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3838 c92efa57-630b-4861-b058-cf58834340f0
2007-03-05 17:59:55 +00:00
cavazzon b08fadb543 - clean-up, unused subroutines removed,
more comments and source readability


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3835 c92efa57-630b-4861-b058-cf58834340f0
2007-03-05 09:56:01 +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
giannozz 6e55c387ee Axel's patch: removal of unused variables, replacement of variable "index"
with a less dangerous "idx" ("index" is an intrinsic: some compilers may
complain, or even do strange things)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3574 c92efa57-630b-4861-b058-cf58834340f0
2006-11-27 15:06:51 +00:00
giannozz ff405e66ec Cleanup in constants: factem => 1/k_boltzmann
Some unused formats removed


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3380 c92efa57-630b-4861-b058-cf58834340f0
2006-09-12 17:11:36 +00:00
giannozz c7f3d7ed2b Some cleanup of unit conversion variables (more to come):
scmass => amu_au , au => autoev


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3183 c92efa57-630b-4861-b058-cf58834340f0
2006-06-16 10:10:53 +00:00
cavazzon e92ac1f08a - static array substituted with dynamic array, to reduce
memory requirements


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2951 c92efa57-630b-4861-b058-cf58834340f0
2006-03-23 18:00:12 +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
cavazzon 34a10dc44c - bug fix, the center of mass cdmi was defined first in real
variables and then in scaled variable. Now the scaled
  center of mass is stored in variable "cdms".
  This patch affect only the standard output.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2520 c92efa57-630b-4861-b058-cf58834340f0
2005-11-25 09:07:09 +00:00
cavazzon 6c0386e76b - few more useful print out for CP/FPMD
partial temperatures and mean square displacement


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2452 c92efa57-630b-4861-b058-cf58834340f0
2005-11-09 17:57:05 +00:00
kkudin 0325c94899 Added variable to count the number of frozen Cartesian coordinates
Kostya


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2296 c92efa57-630b-4861-b058-cf58834340f0
2005-10-17 20:03:23 +00:00
cavazzon da075dba31 - CP post processing updated to use iotk
- small fix in randpos


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2219 c92efa57-630b-4861-b058-cf58834340f0
2005-09-25 22:59:33 +00:00
sbraccia 605a912480 NEB clean-up; fixed some bugs in the CP implementation. C.S.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2165 c92efa57-630b-4861-b058-cf58834340f0
2005-09-11 00:50:13 +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
sbraccia afee3d881c Cleanup. C.S.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2120 c92efa57-630b-4861-b058-cf58834340f0
2005-08-23 18:47:26 +00:00
cavazzon 260828432d - FPMD: pseudopotential variable wsg, wnl, fnl substituted with
dion, beta, bec everyware.
- subroutines formfn, compute_beta, nlsm1, nlsm2, ecc ... now are common
  between FPMD and CPV, a lot of clean ups!
- Changes in stdout: relevant physical quantities ( positions velocities an cell )
  are now printed with the seme format of the corresponding input card,
  like in PW, as was suggested by SdG.
- exemple23 updated to reflect the new input namelist "wannier"
- Subroutine init_run now is used in FPMD too.
- WARNING in the stress computed with CP, for a pseudo with core-corrections,
  a contribution is missing! Not yet fixed, I need to talk with PG for the
  box staff.
- WARNING the examples reference are not updated, I'm on the IBM sp, and
  I prefer to update them from a linux machine.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2110 c92efa57-630b-4861-b058-cf58834340f0
2005-08-22 14:14:13 +00:00
umari adcdcdc601 added support for electric field
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2099 c92efa57-630b-4861-b058-cf58834340f0
2005-08-16 12:56:49 +00:00
cavazzon 59b4f60f8b - FPMD/CP variable "nbnd" and "nelec" are computed automatically if
not specified in the input, like in PW
- FPMD/CP directory for restart file now could be specified with
  the input parameter "scradir" in the control namelist
- FPMD: NEB is working again!


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2051 c92efa57-630b-4861-b058-cf58834340f0
2005-07-27 16:09:03 +00:00
sbraccia d6742230b2 Added a routine that initialise the cp code (previously done in cpr). This routine is called by
cpr_loop. This has required some variables previously local to cpr to be moved into modules.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2016 c92efa57-630b-4861-b058-cf58834340f0
2005-07-12 20:08:01 +00:00
kkudin 930619e2b2 by Kostya
This patch adds "massive" Nose-Hoover chains for ions (i.e. each ion
can have a separate NH chain attached to it)
Some fixes are still needed in different places:
-the information on the number of NH chains [nhpdim] needs to be
saved and read from the restart file (not done now)
-the NH velocities also need to be all saved [nhpdim*nhpcl]
-an input option needs to be added to zero out the NH velocities during
a restart in order to permit "on the fly" thermostat changes
-deallocation of the module variables gives glibc error with IFC 8.0 & 8.1 in
cpr.f90


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1998 c92efa57-630b-4861-b058-cf58834340f0
2005-07-05 21:02:48 +00:00
kkudin 62404499fd Added ind_bck array to be used with the CP code. The main purpose is to
be able to print atoms in the input order with atomic labels (and not
sorted). Subroutine print_pos_in needs to be uncommented in cpr.f90, for
now it is not activated in order to double check possible compatibility
issues with other codes. When activated, the file *.pos will have positions
in angstroms readable by any XYZ reader.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1967 c92efa57-630b-4861-b058-cf58834340f0
2005-06-21 22:37:33 +00:00
sbraccia cb6c7438d1 Added new methods and variables for the calculation of potential-energy and free-energy barriers
using neb or smd in a coarse-grained space (as in metadynamics). Still under development.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1933 c92efa57-630b-4861-b058-cf58834340f0
2005-06-06 17:53:32 +00:00
ballabio d214f05b60 last end subroutine --> end subroutine name [Gerardo]
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1874 c92efa57-630b-4861-b058-cf58834340f0
2005-05-18 14:02:51 +00:00
sbraccia 8949481005 ions_base splitted in three different files: ions_base.f90 (still in Modules), ions_positions.f90 and ions_nose (in CPV).
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1863 c92efa57-630b-4861-b058-cf58834340f0
2005-05-16 15:56:07 +00:00
sbraccia d9e1907555 ion_velocities from input implemented for cp code. C.S.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1861 c92efa57-630b-4861-b058-cf58834340f0
2005-05-15 17:09:31 +00:00
cavazzon b8a7f0bd86 - FPMD/CP90 ionic and electronic nose' thermostat merged
- clean-up


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1763 c92efa57-630b-4861-b058-cf58834340f0
2005-03-26 15:29:07 +00:00
giannozz 1ea256fa98 Useless dependency removed
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1760 c92efa57-630b-4861-b058-cf58834340f0
2005-03-25 14:20:56 +00:00
cavazzon 2745921618 - iotk_multitype_complex splitted into two files, to workaround
xlf simbols stack problem
- iotk definition for ia64 platforms


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1735 c92efa57-630b-4861-b058-cf58834340f0
2005-03-22 17:16:03 +00:00
cavazzon bd437a16d3 - Nose' chain from K.Kudin added to CVS
TO BE CHECKED!!
- iotk_multitype_integer splitted into two files to
  workaround compiler problem (IBM xlf) with small simbol stack
- new module with SIC variables


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1712 c92efa57-630b-4861-b058-cf58834340f0
2005-03-15 14:35:47 +00:00
cavazzon ebcbc01dd7 - fix of an odd sintax construct pointed out by alpha compiler
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1708 c92efa57-630b-4861-b058-cf58834340f0
2005-03-14 17:03:35 +00:00
cavazzon 1733abe068 - more CP90/FPMD merging: fft high level driver, iosys, exchange-correlation
- some subroutine shortened and simplyfied to make compilation easy


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1559 c92efa57-630b-4861-b058-cf58834340f0
2005-01-15 10:53:46 +00:00
cavazzon 962d506e30 - XML like restart for CP/FPMD (almost completed)
see file Modules/cp_restart.f90


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1456 c92efa57-630b-4861-b058-cf58834340f0
2004-11-18 23:26:26 +00:00
cavazzon 3b22ff0108 - FPMD/CP more merging
- new module for merged FPMD/CP restart subroutines
- starting work on XML restart/punch  (cp_restart.f90)
carlo


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1443 c92efa57-630b-4861-b058-cf58834340f0
2004-11-15 12:13:22 +00:00
cavazzon 242e9454bf - more merging CP/FPMD
- cleanups


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1412 c92efa57-630b-4861-b058-cf58834340f0
2004-11-01 16:43:29 +00:00
cavazzon 1b938fa669 - work on FPMD for the merging with CP ( grid dimension )
- bug fix ( ion randomization )
- SIC updated
carlo


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1378 c92efa57-630b-4861-b058-cf58834340f0
2004-10-14 08:38:05 +00:00
cavazzon 5e5b2e6139 - same cell dynamics subroutines used in CP and FPMD
- input pressure in GPa ( both code )
- Output stress in GPa ( both code )
- Output layout made more similar:
  energies, positions, forces, cell
  displayed in the same way
- Zero velocities after a restart implemented in CP
- Nose and damped dynamics for cell implemented
  in FPMD like in CP
carlo


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1260 c92efa57-630b-4861-b058-cf58834340f0
2004-09-13 08:49:06 +00:00
cavazzon 1be2feeb88 - more mergings between CP and FPMD
- initialization (both code uses the same ggen)
- now FPMD initializes the small-boxes too (required for untrasoft pseudo)
- print out


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1186 c92efa57-630b-4861-b058-cf58834340f0
2004-08-27 10:20:42 +00:00
cavazzon abb62bd0e5 - added module cp_mass (for car-parrinello electronic mass)
- cpr.f90 lot of staff moved to subroutines


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1073 c92efa57-630b-4861-b058-cf58834340f0
2004-07-15 10:48:54 +00:00
giannozz ffcadc34c1 Modules becmod, rbecmod (one variable each) merged into a single module
(with two variables...) - More USPP merge


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@954 c92efa57-630b-4861-b058-cf58834340f0
2004-06-12 20:37:01 +00:00
cavazzon 8f259a07ce - Changes in FPMD required by SIC implementation
- simplified ionic positions management in FPMD ( many staff moved to
  Modules/ions_base.f90
- sort_gvec.f90 ( a part of ggen common to FPMD and CP )


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@794 c92efa57-630b-4861-b058-cf58834340f0
2004-04-13 22:30:02 +00:00
cavazzon a3e02b9d06 Self interaction correction (SIC)
tentatively added to FPMD,
work still in progress


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@758 c92efa57-630b-4861-b058-cf58834340f0
2004-04-01 16:30:59 +00:00
cavazzon 744fb1cbb2 - neb basic routines moved to Modules, to be shared among codes
- basic cell and ionic variables moved frpm pwcom to
  cell_base and ions_base .
  cell_base modules and ions_base modules should be initialized
  through the use of cell_base_init and ions_base_init, this after
  having read the namelists and the cards .
  IN THE FUTURE NONE OF THE VARIABLES IN THE BASIC MODULES SHOULD
  BE SET IN THE MAIN CODES, BUT THROUGH A CALL TO SOME INIT
  FUNCTIONS CONTAINED IN THE BASIC MODULE ITSELF.
  THE IDEA IS THAT THE BASIC VARIABLES SHOULD BE USED AS
  READ-ONLY. UNFORTUNATELY IN F90 THERE IS NO POSSIBILITY
  TO SET A READ ONLY ATTRIBUTE.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@702 c92efa57-630b-4861-b058-cf58834340f0
2004-03-08 08:43:25 +00:00
cavazzon 2b9008ea8a - More merging between CP and FPMD
- some common NEB modules moved to Modules directory
  others NEB modules will be moved soon


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@687 c92efa57-630b-4861-b058-cf58834340f0
2004-02-29 23:30:07 +00:00
cavazzon adc7521f95 more support for NEB and meta dynamics.
I do not include NEB dynamics modules in this version,
because I want to wait for common neb modules,
to be built as soon as this version has been released


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@617 c92efa57-630b-4861-b058-cf58834340f0
2004-02-18 17:00:32 +00:00