Commit Graph

61 Commits

Author SHA1 Message Date
giannozz 3c5e774079 Misc changes for NAG compiler, by Samuel, plus make.depend update
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12286 c92efa57-630b-4861-b058-cf58834340f0
2016-04-06 16:41:55 +00:00
hsinyu 87f5c7fab7 EXX with Wannier functions in CPV and vc-cp calculations with reference cell in CPV added
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@11158 c92efa57-630b-4861-b058-cf58834340f0
2014-09-11 20:10:57 +00:00
giannozz e4c817d337 Error message for missing atoms of a species movd to another routine so that
it stops only CP (it is not needed in all other cases)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9597 c92efa57-630b-4861-b058-cf58834340f0
2012-10-30 13:07:44 +00:00
giannozz 6eac9125c7 Misspell, removed unused routines, variables nax and nas merged
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9215 c92efa57-630b-4861-b058-cf58834340f0
2012-07-24 12:23:51 +00:00
giannozz bbc4bdec01 Removed (again) masses in a.u. from global variables. BEWARE: I haven't
yet noticed any problem, but there will be for sure a few exotic 
cases that will have to be fixed



git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@8133 c92efa57-630b-4861-b058-cf58834340f0
2011-08-31 19:49:28 +00:00
giannozz aabb3218ba Variable pmass removed yesterday is actually used by the phonon code.
As a temporary workaround, it is re-added to the ions_base module.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@8130 c92efa57-630b-4861-b058-cf58834340f0
2011-08-31 15:33:46 +00:00
giannozz 2587a5e5ac Minor cleanup: there is a single global variable for atomic masses, and
this is in atomic mass units (amu). Masses in atomic (Ry or Ha) units 
are local variables. Should be safe but no warranty. 


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@8126 c92efa57-630b-4861-b058-cf58834340f0
2011-08-31 10:54:04 +00:00
giannozz 757dadfed9 Added possibility to fix atoms in variable-cell MD (using input if_pos). Not
sure whether it works, but the way it was done before wasn't working for sure


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@8046 c92efa57-630b-4861-b058-cf58834340f0
2011-08-04 15:34:00 +00:00
giannozz 5603993133 Primitive lattice vectors made uniform with PW: now they are stored, divided
by alat, into global variable at(3,3). Local auxiliary vectors a1, a2, a3 are
introduced when convenient in order to reduce the number of changes. Beware
unexpected side effects.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@7457 c92efa57-630b-4861-b058-cf58834340f0
2011-01-31 14:47:40 +00:00
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