Commit Graph

703 Commits

Author SHA1 Message Date
cavazzon ca1f797f81 - bug fix, wave initialization with force pairing
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3276 c92efa57-630b-4861-b058-cf58834340f0
2006-07-17 14:10:42 +00:00
cavazzon b14a22be88 - bug fix, argument with wrong dimension, found by xlf90.
The error was not found by pgf90.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3275 c92efa57-630b-4861-b058-cf58834340f0
2006-07-17 10:16:30 +00:00
cavazzon 430daca75c - removed the spin dimension from wave function in fpmd routines.
Now wave functions array have only 2 indices everywhere, the first
  for the plane waves, and the second for the electronic states.
  When a spin calculation is performed the "spin up" states
  are stored in the first "nupdwn(1)" columns of the wave functions
  array, and the "spin down" states are stored in the second "nupdwn(2)"
  columns of the same array.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3274 c92efa57-630b-4861-b058-cf58834340f0
2006-07-17 09:15:34 +00:00
cavazzon e220e33bd3 - Updates to data-file generated by CP to make it compatible with PW.
CP can now restart from PW , and PW (at gamma) can restart from CP.
  In CP the following control keyword should be specified:
    disk_io = 'high'
  to save the charge density
  In PW the following control keyword should be specified:
    restart_mode='restart',
    wf_collect = .true.
  to save wfc

- an example will follow


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3270 c92efa57-630b-4861-b058-cf58834340f0
2006-07-11 16:32:39 +00:00
cavazzon 05413bcd09 - fix: syntax error
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3262 c92efa57-630b-4861-b058-cf58834340f0
2006-07-10 16:57:11 +00:00
cavazzon 5fe9caf270 - cleanup + commets
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3261 c92efa57-630b-4861-b058-cf58834340f0
2006-07-10 15:58:46 +00:00
cavazzon fed0a099ec - added flag for ascii/binary file to cppp
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3259 c92efa57-630b-4861-b058-cf58834340f0
2006-07-10 15:11:33 +00:00
cavazzon 8e763f9676 - bug fix, "kkbeta" mistakenly used in place of "mesh" in non local
core correction integrals.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3231 c92efa57-630b-4861-b058-cf58834340f0
2006-06-30 10:21:18 +00:00
kkudin a914e9ea61 Added a new thermostat type (nhptyp=3) with a control array 'nhgrp',
allowing fine control over how thermostats are assigned to atoms
 Kostya


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3226 c92efa57-630b-4861-b058-cf58834340f0
2006-06-29 22:43:58 +00:00
giannozz 45f996fae6 Workaround for error with Pathscale compiler
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3222 c92efa57-630b-4861-b058-cf58834340f0
2006-06-29 11:59:01 +00:00
cavazzon 586a3a10fc - clean-ups
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3221 c92efa57-630b-4861-b058-cf58834340f0
2006-06-29 11:06:09 +00:00
cavazzon 65626da273 - clean-ups
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3208 c92efa57-630b-4861-b058-cf58834340f0
2006-06-26 07:51:38 +00:00
sbraccia eac4123a5b Added to CP the possibility to remove the total torque acting on the system
(useful to simulate an isolated system). Documentation updated. C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3205 c92efa57-630b-4861-b058-cf58834340f0
2006-06-25 23:15:20 +00:00
giannozz 65a7670b85 Minor cleanup of unused variables and of constants
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3202 c92efa57-630b-4861-b058-cf58834340f0
2006-06-23 13:46:13 +00:00
giannozz 9d6dbd8959 Missing deallocation was causing errors
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3200 c92efa57-630b-4861-b058-cf58834340f0
2006-06-23 09:29:12 +00:00
cavazzon c7898d6453 - empty states calculation implemented also for CP
- some more merging
- some dependency removed
- clean-ups


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3190 c92efa57-630b-4861-b058-cf58834340f0
2006-06-22 10:05:15 +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
kkudin 42cd902b4e Fix another nprint_nfi related bug, related to the I/O and MPI stuff.
Kostya


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3162 c92efa57-630b-4861-b058-cf58834340f0
2006-06-06 21:39:51 +00:00
kkudin 05ad0af71a Fixed a bug, CP should not print trajectory information into files just becauseit is the last step.
Kostya


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3161 c92efa57-630b-4861-b058-cf58834340f0
2006-06-06 21:11:31 +00:00
kkudin 279497445b Add nprint_nfi controls, I forgot to commit this file last time.
Kostya


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3159 c92efa57-630b-4861-b058-cf58834340f0
2006-06-06 20:41:34 +00:00
sbraccia ed1ee9644e Fixed a bug in constrained MD arising from the fact that in CP positions are
sorted by specie.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3157 c92efa57-630b-4861-b058-cf58834340f0
2006-06-06 16:11:35 +00:00
cavazzon f44cd08e1b - cleanups of unused features/source lines/modules
- blue gene fix (suggested by C. Bekas)
- CP postprocessing documentation
- small changes to restart file to allow CP restart from
  PW run (at gamma).


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3149 c92efa57-630b-4861-b058-cf58834340f0
2006-06-01 10:51:33 +00:00
giannozz baeea316cf Incorrect calls to "errore" fixed
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3143 c92efa57-630b-4861-b058-cf58834340f0
2006-05-29 09:18:43 +00:00
giannozz 3ee41c0115 Various fixes for compilation on Alphas (courtesy of Giovanni Cantele)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3129 c92efa57-630b-4861-b058-cf58834340f0
2006-05-18 16:09:47 +00:00
kkudin 98fdccd92f Converted "local" variables with uncertain dimensions into allocatable. Please
try to do such a conversion whenever you see such cases since they often cause
bizzare problems that are hard to pinpoint.
 Kostya


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3127 c92efa57-630b-4861-b058-cf58834340f0
2006-05-17 22:13:40 +00:00
sbraccia 32728ba4a5 Fixed some bugs in finite-temperature meta-dynamics. C.S.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3112 c92efa57-630b-4861-b058-cf58834340f0
2006-05-10 18:17:56 +00:00
cavazzon 7f179aeefb - Bug fix, computation of empty states with FPMD
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3108 c92efa57-630b-4861-b058-cf58834340f0
2006-05-09 11:28:40 +00:00
giannozz 9bf6f54875 the file containing compilation date is cpver.h, not version.h
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3107 c92efa57-630b-4861-b058-cf58834340f0
2006-05-09 07:42:47 +00:00
cavazzon de6ed09065 - error added when dual /= 4 is specified in FPMD
- to avoid possible hang when print_clock('fftb') is called
  added a dummy call to start_clock and stop_clock to all proc.
  in parallel case.
- default nomore for system relaxation increased in NEB calculation.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3097 c92efa57-630b-4861-b058-cf58834340f0
2006-05-08 11:16:41 +00:00
umari d05cd3ed98 etresh substituted by conv_thr
P.U.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3084 c92efa57-630b-4861-b058-cf58834340f0
2006-05-05 14:01:22 +00:00
giannozz 308f8ac999 Incorrect limit for x -> 0 in the calculation of derivatives of spherical
harmonics could lead to loss of precision in stress calculation (noticed
by Kostya)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3083 c92efa57-630b-4861-b058-cf58834340f0
2006-05-05 12:23:15 +00:00
cavazzon 640af0ba30 - conforming other subroutines to new charge density files
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3073 c92efa57-630b-4861-b058-cf58834340f0
2006-05-03 23:24:31 +00:00
kkudin e0a7c6f12f Added some missing stuff in the BGL branch. Added a flag TRUE_BGL
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3071 c92efa57-630b-4861-b058-cf58834340f0
2006-05-03 19:59:34 +00:00
cavazzon c021112ee3 - Cray XD1 workaround for large communication
- BGL porting of CP almost complete. New command
  line argument "-ntask_groups" to specify the
  number of task group used in parallelization.
  to generate an executable with BGL extensions,
  in the file make.sys the macro __BGL should
  be specified.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3069 c92efa57-630b-4861-b058-cf58834340f0
2006-05-03 14:19:57 +00:00
giannozz 75d45a1c6f - CP: cleanup of dipole printout
- PW: do not try to remove the entire prefix.save directory, it doesn't work
  for many compilers. Remove the prefix.save/data-file.xml file instead when
  starting a calculation from_scratch to prevent restarting from inconsistent
  data. Notice that the original content of the prefix.save directory is
  destroyed (except for the charge density) in the case of a non-scf or band
  calculation as well.
- PW+CP : write rho in binary format; in the LSDA case write rhoup+rhodw in
  one file and rhoup-rhodw in 'polarization' file (or should it be called
  'magnetization' like in the noncolinear case?). Beware: you cannot read
  LSDA files produced by early versions.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3065 c92efa57-630b-4861-b058-cf58834340f0
2006-05-02 16:52:37 +00:00
sbraccia c6d1a11311 Added a specific card to set the collective variables used in meta-dynamics.
This allowes for the possibility of setting constraints that are not collective
variables. Example and documentation updated.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3059 c92efa57-630b-4861-b058-cf58834340f0
2006-05-01 01:07:57 +00:00
cavazzon e96397c3db - wrong indexes for lambda, mistake of the previous commit
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3058 c92efa57-630b-4861-b058-cf58834340f0
2006-04-28 16:27:55 +00:00
cavazzon 875f60bacb - bug fix: stress with nlcc
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3057 c92efa57-630b-4861-b058-cf58834340f0
2006-04-28 15:56:19 +00:00
sbraccia 319a947e46 Added a missing #ifdef __PARA. C.S.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3056 c92efa57-630b-4861-b058-cf58834340f0
2006-04-27 21:25:31 +00:00
cavazzon 948471052a - polarization is now written again to file prefix.pol
- cp stress: local and hartree term computed only
  for the 6 independent component (instead of all 9 components)
- more BGL porting


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3053 c92efa57-630b-4861-b058-cf58834340f0
2006-04-27 15:50:46 +00:00
giannozz aae190c672 - write to out.N disabled (can be re-enabled by changing environment.f90)
- cleanup in stress: sph_bes is the only routine calculating j_l(x) .
  It wasn't properly called in previous versions for meshes starting
  at r=0 (output was one index off). Now it should really work in all
  cases (please test)
- call to bess in qqberry replaced by call to sph_bes (please test)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3048 c92efa57-630b-4861-b058-cf58834340f0
2006-04-27 13:53:56 +00:00
kkudin 8f6755ce5c Tracked down the differences between the stress in the ancient CP and
in the recent CVS. For a small test, the stress for USPPs now agrees
much better with the ancient CP code. All the interested parties
please test.

 For the fix, backported the old CP's "bess" routine, since the logic
for "sph_bes" was the cause of the differences. Please be careful when
making "sph_bes" work for tpre=.true.

 Another puzzle - converged CP energies were identical from the
ancient CP through CP in PWSCF v2.1, but now are slightly different
(same machine, compiler, etc.) The biggest difference is the
exchange-correlation energy. Does anyone know what is the EXACT reason
for this?

 Kostya


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3046 c92efa57-630b-4861-b058-cf58834340f0
2006-04-27 02:22:21 +00:00
sbraccia fe00991a30 Added a missing "#ifdef __PARA". C.S.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3035 c92efa57-630b-4861-b058-cf58834340f0
2006-04-21 15:02:12 +00:00
umari 8bc7ccad7a Added support for stress calculation within ensemble DFT, only
for conjugate gradient
Dynamics at constant pressure still to be checked
P.U.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3034 c92efa57-630b-4861-b058-cf58834340f0
2006-04-21 08:23:45 +00:00
sbraccia 463d1d0f03 Cleanup of NEB code. Climbing image implemented also for the string method.
Mariginal improvement of the broyden optimisation algorithm. The reference
output of example17 not yet regenerated.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3033 c92efa57-630b-4861-b058-cf58834340f0
2006-04-21 03:44:20 +00:00
kkudin e1892cacd6 Reduce some communication.
Kostya


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3032 c92efa57-630b-4861-b058-cf58834340f0
2006-04-21 00:48:57 +00:00
umari dd75acd333 Added support for stress calculation in CPV with conjugate gradient
The metallic case and dynamics still need to be checked.

P.U.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3030 c92efa57-630b-4861-b058-cf58834340f0
2006-04-20 13:43:18 +00:00
dalcorso 99168cc147 - domag and t_rev written in the punch files.
- temporary (?) fix for the fact that title is not written in the punch file.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3024 c92efa57-630b-4861-b058-cf58834340f0
2006-04-18 13:26:19 +00:00
cavazzon 25b02439aa - fix for NLCC contribution to forces and stress
- more BGL porting
- clean-ups


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3020 c92efa57-630b-4861-b058-cf58834340f0
2006-04-18 07:33:11 +00:00
cavazzon aa6c592052 - lambdas are synchronized every isave steps.
Possible solution of the bad energy conservation
  observed in parallel run on some machine with USPP


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3019 c92efa57-630b-4861-b058-cf58834340f0
2006-04-14 10:55:31 +00:00
cavazzon 6a3a3538c7 - more BGL porting
- some fixes for self interaction correction


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3018 c92efa57-630b-4861-b058-cf58834340f0
2006-04-13 21:38:16 +00:00
cavazzon 54ee92ff6c - fix problem that was causing smd to crash
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3011 c92efa57-630b-4861-b058-cf58834340f0
2006-04-10 14:02:12 +00:00
cavazzon ab37050da2 - bug fix, fpmd wasn't able to manage pseudo with radial grid
starting from 0.
- more static array removed
- clean-ups and mergings


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3010 c92efa57-630b-4861-b058-cf58834340f0
2006-04-09 23:38:56 +00:00
giannozz 45b01da348 YABIS (Yet Another Bug In Stress): CP + US case hopefully fixed (was
bad only for l > 0 terms in q functions: same problem of sign as in NCPP).
There are still minor discrepancies between the stress in PW and CP/FPMD,
also in the norm-conserving case. The discrepancies are small but not
so small to be negligible. More investigation is needed...


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3008 c92efa57-630b-4861-b058-cf58834340f0
2006-04-07 14:54:20 +00:00
cavazzon 2078ed9aca - Fix bug in fpmd, reading pseudo with radial grid starting
from 0.0


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3005 c92efa57-630b-4861-b058-cf58834340f0
2006-04-06 20:35:15 +00:00
cavazzon de345b52c3 - important bug fix, core correction in CP was not properly set,
the bug was introduced with the reorganization of the fft.
- NEB working with CP/FPMD (new calculation fpmd-neb added to check
  all the scf engines)
- Clean-ups


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2993 c92efa57-630b-4861-b058-cf58834340f0
2006-04-02 21:29:28 +00:00
cavazzon 0a736de497 - important bug fix, one of the component of the stress in CP (not fpmd),
was carrying a wrong sign. Now checked and working with NCPP,
  to be further checked with USPP. The stress was wrong when using
  PP with nonlocality P or greather.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2987 c92efa57-630b-4861-b058-cf58834340f0
2006-04-01 15:43:55 +00:00
kkudin 61ed894516 Add printout of CG subroutines' timings when CG is used. Note that for
aesthetical reasons one may want to move logical 'tcg' from 'cg_module'
to 'control_flags' since otherwise the 'cg_module' is needed in a lot
of places just for 'tcg' variable.

 Kostya


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2986 c92efa57-630b-4861-b058-cf58834340f0
2006-03-31 21:35:41 +00:00
cavazzon 3298718d32 - bug fix, SM dynamics was crashing under some combination of input
parameters, because an array not allocated was used.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2983 c92efa57-630b-4861-b058-cf58834340f0
2006-03-30 19:43:51 +00:00
cavazzon 5393dcca7b - bux fix in CP, in some particular cases the code was hanging when
colling the last print_clock, this was due to the fact that
  some processors were not starting the clock: 'fftb'


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2977 c92efa57-630b-4861-b058-cf58834340f0
2006-03-29 14:39:06 +00:00
giannozz 052216b669 More static allocations replaced by dynamic ones (nbndxx)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2975 c92efa57-630b-4861-b058-cf58834340f0
2006-03-28 19:43:35 +00:00
cavazzon a49226fe5c - fixing bug seg. fault in smcp dynamic, variable taub was not allocated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2974 c92efa57-630b-4861-b058-cf58834340f0
2006-03-28 17:48:40 +00:00
sbraccia 3bac585738 Old style write_rho added back: it is necessary for printout of wannier
functions and cannot be replaced by write_rho_xml.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2971 c92efa57-630b-4861-b058-cf58834340f0
2006-03-28 14:40:32 +00:00
sbraccia 77e210f2a4 Wannier functions were not printed when requested. Cleanup of wannier related
stuff. C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2969 c92efa57-630b-4861-b058-cf58834340f0
2006-03-28 04:02:36 +00:00
cavazzon e817d7c43c - removed old mpi wrappers reduce.f90, that was used in CP
- more changes for parallelization over images


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2965 c92efa57-630b-4861-b058-cf58834340f0
2006-03-27 17:01:30 +00:00
umari 8bda0be46e Some cleaning in cg_sub,
now pc2 in cglib and gram in cplib
correctly return the updated bec's

P.U.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2964 c92efa57-630b-4861-b058-cf58834340f0
2006-03-27 10:57:25 +00:00
cavazzon 26987d2472 - init_pool moved to mp_global (it is now used by CP too)
- further changes to support image parallelization in CP
- bug fix in XML save file for wave functions / charge density / pools .
  In siple case and combinations of procs and polls now it seem to work.
  More testing is required


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2963 c92efa57-630b-4861-b058-cf58834340f0
2006-03-26 17:14:44 +00:00
cavazzon 56f36d2ae9 - call to write_rho_xml updated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2962 c92efa57-630b-4861-b058-cf58834340f0
2006-03-25 08:48:47 +00:00
cavazzon 67131d48f0 - fixed a problem with sub. arguments, due to the two
last updates, of the two carlo


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2961 c92efa57-630b-4861-b058-cf58834340f0
2006-03-24 19:03:38 +00:00
cavazzon cff1f9680c - static arrays dimensioned with natx removed
- nproc substituted with nproc_image
- mpime substituted with me_image
- roor substituted with root_image
- some clean-ups


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2960 c92efa57-630b-4861-b058-cf58834340f0
2006-03-24 18:51:06 +00:00
sbraccia 67813cec53 Fixed a problem in the new restart file with parallelization on k-point.
The new resart doesn't work yet with parallelization on k-points because of
some errors (still to be fixed) in the way the wavefunctions are written and
read. C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2959 c92efa57-630b-4861-b058-cf58834340f0
2006-03-24 18:40:31 +00:00
cavazzon b4a1f7ff8b - again, call to a parallel sub. inside a processor specific "IF" section
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2955 c92efa57-630b-4861-b058-cf58834340f0
2006-03-24 11:22:39 +00:00
kkudin 5afe3ccf11 Completed the addition of the last print counter. It is saved in the restart
directory in file "print_counter.xml" when something is printed out to
a file like $prefix.evp.
 If, for example, iprint=10, isave=100, and the job is killed at step 150
(via OS or $prefix.EXIT), then the next printout to file $prefix.evp will
happen on step 160, and not 110 as before. This way file $prefix.evp is
fully continuous without duplications, which is useful for MD trajectories.
 Kostya


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2952 c92efa57-630b-4861-b058-cf58834340f0
2006-03-24 03:51:21 +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
giannozz 4089b8d2a1 No need to use the obsolete "io_base" module in CP
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2947 c92efa57-630b-4861-b058-cf58834340f0
2006-03-23 09:55:25 +00:00
cavazzon dd93c6ad14 - group communicator variable substituted with intra_image_comm,
first step needed to parallelize neb over images also for CP.
  Next we need to add the right communicator to all communications
- subroutine reduce substituted everywhere with mp_sum
- mp_sum for array with 4dims added in mp.f90
- workaround for xlf compiler, it has problems compiling file with
  initialization of large array in the definition line,
  see Modules/input_parameters.f90 , initialization moved to
  Modules/read_cards.f90 .


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2946 c92efa57-630b-4861-b058-cf58834340f0
2006-03-23 09:19:43 +00:00
kkudin a21dd7679e Some CG cleanup to reduce unnecessary memory usage (with an eye on BlueG)
Kostya


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2945 c92efa57-630b-4861-b058-cf58834340f0
2006-03-23 04:02:58 +00:00
kkudin 747f2e4759 Introduce logic to save the last print counter. Designed to avoid double printing
into files like *.pos and *.evp whenever the job is killed ungracefully (not
completed yet ...)
 Kostya with C.S. help


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2943 c92efa57-630b-4861-b058-cf58834340f0
2006-03-23 02:17:22 +00:00
cavazzon 5db185bbf8 - bug fixed in vofrho
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2937 c92efa57-630b-4861-b058-cf58834340f0
2006-03-22 16:51:56 +00:00
kkudin 9aef93b80e 1) link disk_io to reduce_io in CP, when disk_io='low' in CP the charge
density file is not written (perhaps the default could be reverted)
 2) added an option ion_velocities='change_step'. Here one restarts from
a file with CG while changing the timestep. The old timestep should be supplied
in tolp. The main goal is to make the [t-1] ion positions to be proportionally
smaller. This way one can go through CP->CG->CP sequence while changing the
timestep and keeping all the ionic and Nose positions & velocities fully
consistent as to keep previous equilibration. Perhaps variable cell variables
should also be rescaled in the same way.

 Option 2) is somewhat ugly in how things are specified, but practically useful
if one does not want to re-equilibrate with the time step change.

 I could not extract the timestep value from the restart file, is it not
being written?

 Kostya


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2930 c92efa57-630b-4861-b058-cf58834340f0
2006-03-17 19:36:47 +00:00
giannozz 0c7b6e2902 __AIX (IBM machines with essl) split into __AIX and __ESSL
Beware: configure not yet updated


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2924 c92efa57-630b-4861-b058-cf58834340f0
2006-03-16 18:04:33 +00:00
cavazzon 8e0057ea53 - adding changes needed to compute Self Interaction Correction
contributed by F.Baletto


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2923 c92efa57-630b-4861-b058-cf58834340f0
2006-03-16 17:58:40 +00:00
kkudin 8b44e68c26 Added an option to the CP output routine to print out various files with
atomic labels and also to print out *.pos file as XYZ
 The option is off by default, but can be enabled with nice_output_files=.true.
in print_out.f90 source.

 Kostya


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2919 c92efa57-630b-4861-b058-cf58834340f0
2006-03-16 03:41:21 +00:00
kkudin 34cadc4c60 Added a comment line to the xml_io_base.f90 to make it easy to get back
the earlier RESTARTXX name for the directory.

 Also, added a logical parameter "write_charge_density" to cp_restart.f90
Setting it to "false" gets rid of the "charge-density.xml" file. Perhaps,
this could become an input parameter at some point.

 As a side comment, running never ending CP dynamics is a bit different
from PW calculations which will finish at some point. Thus saving as little
stuff as possible is highly desirable (with options to save more).

 Kostya


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2918 c92efa57-630b-4861-b058-cf58834340f0
2006-03-16 01:58:44 +00:00
giannozz 4bcb74d408 - combined index instead of two symmetric indices for array dqrad
- the logic of the combined index for US PP is now the same everywhere
  (i.e in PW, CP, and in the pseudopotential format):
     do iv=1,N
        do jv=iv,N
           ijv=jv*(jv-1)/2+iv
  (in PW the indices are called nb, mb). In order to get ijv from (iv,jv):
     if (iv > jv) then
         ijv=iv*(iv-1)/2+jv
     else
         ijv=jv*(jv-1)/2+iv
     end if
- the above change also fixes a serious bug affecting Vanderbilt US PP
  in UPF format (only half of the qfcoef array was present, but not the
  good half)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2916 c92efa57-630b-4861-b058-cf58834340f0
2006-03-15 11:23:03 +00:00
umari a0816968e3 small change in critical case recovery.
P.U. & I.D.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2906 c92efa57-630b-4861-b058-cf58834340f0
2006-03-11 20:44:17 +00:00
cavazzon d77f5709f9 - bug fix in fill_qrl, to be further examined
- fill_qrl from cplib to pseudopot
- ortho: mxma substituted with dgemm and pmatmul (parallel)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2900 c92efa57-630b-4861-b058-cf58834340f0
2006-03-10 16:02:42 +00:00
cavazzon 69dcecd8cf - adding Task Groups fft driver (Blue Gene)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2893 c92efa57-630b-4861-b058-cf58834340f0
2006-03-09 09:57:03 +00:00
umari 3dfd7eb4cb variable entrospin is correctely assigned
However this does not affect previous results

P.U.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2891 c92efa57-630b-4861-b058-cf58834340f0
2006-03-08 16:50:57 +00:00
cavazzon 249aaccce6 - more Blue Geen stuff, task groups initialization subroutine.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2882 c92efa57-630b-4861-b058-cf58834340f0
2006-03-08 09:03:27 +00:00
giannozz dda5f85506 More USPP cleanup (or maybe mess-up) and memory reduction
Only CP compiles right now, the rest is coming soon


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2872 c92efa57-630b-4861-b058-cf58834340f0
2006-03-07 13:26:52 +00:00
giannozz 4c174a6787 Memory saving in US PP and small boxes: packed form for more arrays
PLEASE NOTE: the logic for packed index is as follows everywhere
do i=1,N
   do j=1,i
      ij = (i-1)*i/2 + j
This is equivalent to
ij = 0
do i=1,N
   do j=1,i
      ij = ij + 1
This is not (yet) the same as used in PW, though


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2871 c92efa57-630b-4861-b058-cf58834340f0
2006-03-07 10:15:27 +00:00
giannozz f9143583a4 More pseudopotential cleanup - unexpected side effects are possible
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2870 c92efa57-630b-4861-b058-cf58834340f0
2006-03-06 13:31:27 +00:00
giannozz aa7aa03999 - memory usage of arrays qradb, dqrad reduced whenever the maximum number
of beta functions is smaller than the fixed maimum nbrx
- routines for herman-skillman integration moved together to other
  integration routines in flib/ . We should one day decide which one of
  these routines should be used: they all do basically the same thing
- routine reading ultrasoft PP in the old Vanderbilt format moved to
  Modules/. More USPP cleanup coming soon.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2868 c92efa57-630b-4861-b058-cf58834340f0
2006-03-06 10:39:38 +00:00
giannozz e90b3c2658 Replaced several allocations with fixed dimensions with dimensions
calculated at run-time; combined index instead of two symmetric indices
in some PP arrays. Should save a sizable amount of memory.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2864 c92efa57-630b-4861-b058-cf58834340f0
2006-03-03 14:17:46 +00:00
giannozz b7214a5bd4 Do not allocate memory used by variable-cell if doing fixed-cell
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2862 c92efa57-630b-4861-b058-cf58834340f0
2006-03-02 18:25:40 +00:00
sbraccia 0126b93557 Removed obsolescent variables that I forgot in the yesterday's cleanup.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2861 c92efa57-630b-4861-b058-cf58834340f0
2006-03-02 15:45:57 +00:00
sbraccia da14a044fe Cleanup of NEB related stuff: unused variables and algorithms have been
removed. C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2858 c92efa57-630b-4861-b058-cf58834340f0
2006-03-01 19:57:03 +00:00
cavazzon fc702ad67b - program_name is no more used in the definition of
the environment


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2856 c92efa57-630b-4861-b058-cf58834340f0
2006-02-28 11:01:27 +00:00
sbraccia 5eee750bb7 Fixed several bugs in the code used to compute free-energy barriers (for both
CP and PW). C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2855 c92efa57-630b-4861-b058-cf58834340f0
2006-02-27 20:06:23 +00:00
cavazzon 2bebd0198c - Box grid data layout descriptor used in fft high level driver
- fix in smdinit for Box grid descriptor


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2849 c92efa57-630b-4861-b058-cf58834340f0
2006-02-23 22:10:40 +00:00
kkudin ca86586c59 Moved the calculation of current time to the proper place
Otherwise the printed time was (nstep-1)*fact, and not nstep*fact
 Kostya


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2846 c92efa57-630b-4861-b058-cf58834340f0
2006-02-23 01:41:35 +00:00
giannozz 38007b9f62 Support for FFT v.3 added (for good this time)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2845 c92efa57-630b-4861-b058-cf58834340f0
2006-02-22 17:38:10 +00:00
giannozz a58954ea14 Added __USE_3D_FFT option for testing purposes. In serial execution, it
does not use 'sticks' in the fft for wavefunctions; in parallel execution,
it uses the 3d serial fft (valid for one processor per pool only!)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2843 c92efa57-630b-4861-b058-cf58834340f0
2006-02-21 16:15:32 +00:00
cavazzon 0cbd417269 - charge density is now read and written in CP/FPMD trough xml subroutine
- CP/FPMD post processing updated, charge and states written in xsf/grd format
- CP rhoofr moved to file chargedensity.f90
- merged from_scratch subroutine


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2839 c92efa57-630b-4861-b058-cf58834340f0
2006-02-19 23:29:28 +00:00
cavazzon ce6a4f3316 - fft scatter (alltoallv), transpose (alltoall), itranspose (isend/irecv)
made interchangeable (see Module/fft_base and CPV/fftdrv for more detail)
- obsolete files removed


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2832 c92efa57-630b-4861-b058-cf58834340f0
2006-02-16 22:39:29 +00:00
giannozz 1a73aa100e NEC FFT replaced by the one in fft_scalar
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2823 c92efa57-630b-4861-b058-cf58834340f0
2006-02-15 17:11:37 +00:00
giannozz 56753779a7 Compilation problem with fftw
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2808 c92efa57-630b-4861-b058-cf58834340f0
2006-02-14 14:13:59 +00:00
cavazzon f360a61a52 - fft drivers reorganization, elimination of redundant subroutines
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2807 c92efa57-630b-4861-b058-cf58834340f0
2006-02-14 10:23:58 +00:00
cavazzon 7f20c51ca9 - various clean-ups
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2791 c92efa57-630b-4861-b058-cf58834340f0
2006-02-08 18:17:58 +00:00
cavazzon 0b6de7a082 - call to diagonalize
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2777 c92efa57-630b-4861-b058-cf58834340f0
2006-02-07 13:49:06 +00:00
cavazzon 79df35d971 - cdiagonalize updated to work with arrays with a leading
dimension different from "n"
- copy of h and v in cdiagh eliminated
- some other clean ups


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2771 c92efa57-630b-4861-b058-cf58834340f0
2006-02-05 17:25:03 +00:00
cavazzon da4450417d - module random_numbers moved from flib to Modules to avoid
circular dependency. All general purpouse modules should go in
  directory Modules!


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2769 c92efa57-630b-4861-b058-cf58834340f0
2006-02-04 14:06:28 +00:00
giannozz b592654d67 Please no DOS end-of-lines and no comments in Italian !!!
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2762 c92efa57-630b-4861-b058-cf58834340f0
2006-02-03 16:57:03 +00:00
sbraccia 06776e5fb9 Fixed some bugs affecting meta-dynamics.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2759 c92efa57-630b-4861-b058-cf58834340f0
2006-02-03 04:12:18 +00:00
umari ec9753002e Added second Berry's phase el. field
some improvements in inner_loop
P.U.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2755 c92efa57-630b-4861-b058-cf58834340f0
2006-02-01 18:01:04 +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 584b169835 oops...call to write_bz needed to be updated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2752 c92efa57-630b-4861-b058-cf58834340f0
2006-02-01 07:56:53 +00:00
cavazzon 3c8bbee2b2 *** empty log message ***
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2743 c92efa57-630b-4861-b058-cf58834340f0
2006-01-29 16:43:06 +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
giannozz fe1fe465c7 Misc cleanud and removal of old/obsolete/mysterious preprocessing
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2721 c92efa57-630b-4861-b058-cf58834340f0
2006-01-24 15:54:22 +00:00
cavazzon 0b8cdf4209 - bug fix, reading and writing wavefunctions when SIC is used
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2720 c92efa57-630b-4861-b058-cf58834340f0
2006-01-23 14:13:55 +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
giannozz 98c63ca797 - Miscellaneous fixes of compilation errors left after last changes
- support for cray-xt3 (courtesy of Axel Kohlmeyer)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2707 c92efa57-630b-4861-b058-cf58834340f0
2006-01-15 20:18:53 +00:00
sbraccia 96129c3fe7 Metadynamics cleanup. C.S.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2704 c92efa57-630b-4861-b058-cf58834340f0
2006-01-13 17:27:11 +00:00
giannozz ec9478d16c Module "qrl" no longer needed, removed
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2698 c92efa57-630b-4861-b058-cf58834340f0
2006-01-13 13:53:35 +00:00
giannozz 9d4b0c3387 Do not allocate large arrays that are not used with fixed cell
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2697 c92efa57-630b-4861-b058-cf58834340f0
2006-01-12 21:03:17 +00:00
cavazzon 1a6b00bbb6 - FPMD/CP ortho subroutines merged as much as possible.
- Many ortho auxiliary functions (tauset, rhoset, sigset, calphi, updatc)
  are now in common between FPMD/CP, and moved to module ortho_base.f90
- In FPMD, three index vectors, related to real space like charge and potential
  have been substituted with single index vector like in CP, for compatibility
  and efficiency.
- Bug fix in pwtools/matdyn.f90 a logical variable was used in place of a
  character variable


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2694 c92efa57-630b-4861-b058-cf58834340f0
2006-01-10 14:04:13 +00:00
giannozz e0a17780ba The qrl functions, i.e. Q_ij(r) split into l-components, are now fit to
the "conventional" Vanderbilt (qfunc+qfcoef) form if this is not available.
This removes a major difference between CP and PW in the treatment of USPP.
Only the 1.0.0 Vanderbilt format written by some obsolete version of the
Vanderbilt code should be affected, but beware unintended side effects!!!


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2693 c92efa57-630b-4861-b058-cf58834340f0
2006-01-10 11:20:56 +00:00
silviu 58382b701e bug fixed in orthogonalize_rrho. [silviu]
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2684 c92efa57-630b-4861-b058-cf58834340f0
2006-01-04 08:30:18 +00:00
sbraccia e8d138642f Cleanup. Some of the modifications suggested by G.Bussi implemented. C.S.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2683 c92efa57-630b-4861-b058-cf58834340f0
2006-01-04 01:31:41 +00:00
silviu 8d7ea2691d Input to cp was updated to include variable tot_magnetization, as an
alternative way of specifying the spin state. [silviu]


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2672 c92efa57-630b-4861-b058-cf58834340f0
2005-12-31 23:41:08 +00:00
umari c3c075a219 New scheme for
US+conjugate gradient: better preconditioning
ensemble dft : better algorithm

new file inner_loop.f90

P.U.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2670 c92efa57-630b-4861-b058-cf58834340f0
2005-12-29 17:23:17 +00:00
silviu 52530e921c removing subroutine poles from cplib. [silviu]
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2666 c92efa57-630b-4861-b058-cf58834340f0
2005-12-29 08:39:51 +00:00
cavazzon 6033454162 - fixed a bug in smcp: setup of variable fccc. example26 is now
working again
- calls to very old "rs" eispack driver replaced by calls do
  "dspev" lapack driver
- subroutines sigset, rhoset, tauset moved from cplib.f90 to
  ortho_base.f90, now they are used in fpmd subroutines too


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2625 c92efa57-630b-4861-b058-cf58834340f0
2005-12-20 23:54:54 +00:00
sbraccia bada3d414a Other fixes related to the XML restart file. C.S.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2604 c92efa57-630b-4861-b058-cf58834340f0
2005-12-17 21:21:19 +00:00
sbraccia 2ad9db50c5 Stop by user request (prefix.EXIT) was not working for CP. Fixed and reorganised.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2602 c92efa57-630b-4861-b058-cf58834340f0
2005-12-17 17:40:37 +00:00
giannozz 17638b6e24 Bug fix: CP yielded bad results with RRKJ3 US PP in old format
Same PP in UPF format were not affected - spotted by Matteo C.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2600 c92efa57-630b-4861-b058-cf58834340f0
2005-12-16 19:56:08 +00:00
giannozz b40aa35fb8 CP stops instead of crashing if a pseudopotential file is not found;
the type of PP format is reported in a slightly less obscure way


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2596 c92efa57-630b-4861-b058-cf58834340f0
2005-12-15 22:40:35 +00:00
sbraccia 993a67204a Some other bugs in the XML data-file fixed. C.S.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2587 c92efa57-630b-4861-b058-cf58834340f0
2005-12-13 21:58:44 +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
cavazzon 553fd0d710 - bug fix: vc-relax and ibrav=0+celldm(1)+CELL_PARAMETERS
- logic behind variable fccc and ccc cleaned up and shared
  between fpmd and cp subroutines
- rhoset, sigset, tauset cleaned-up and prepared for the
  merging of the ortho subs.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2581 c92efa57-630b-4861-b058-cf58834340f0
2005-12-13 11:50:36 +00:00
silviu 69a8cb0fa5 Added input variable to namelist SYSTEM: multiplicity. It is redundent in
principle since the same information can be specified with nelup and neldw.
However in systems containing many atoms of various kinds it can help reduce
human errors. If unspecified, this parameter is ignored. [silviu]


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2578 c92efa57-630b-4861-b058-cf58834340f0
2005-12-12 08:03:28 +00:00
silviu aba8a4d2da Added an input variable to SYSTEM namelist: tot_charge. The same information
could also be specified with a proper choise of nelec. The later option however
is more sensitive to human errors, especially when working on large systems
containing diverse elements (or when working in the middle of the night...) [silviu]


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2577 c92efa57-630b-4861-b058-cf58834340f0
2005-12-12 00:17:09 +00:00
cavazzon b0a174982d - bug fix: Lapack DSPEV was used even when ESSL were used
- Same gram subroutine both for CP and FPMD subroutines
- simpson_fpmd everywhere substituted with simpson_cp90


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2572 c92efa57-630b-4861-b058-cf58834340f0
2005-12-09 11:13:40 +00:00
giannozz 1cb5b95829 No reason to allocate large arrays for variable-cell dynamics
if it is not performed - beware: this will lead to core dumps
if those arrays are used when unnecessary


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2571 c92efa57-630b-4861-b058-cf58834340f0
2005-12-09 09:07:17 +00:00
sbraccia 2c472f1a67 Fixed some bugs in the restarting procedure of meta-dynamics. C.S.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2570 c92efa57-630b-4861-b058-cf58834340f0
2005-12-09 03:50:04 +00:00
umari 4984105ba9 Added support for nspin==2 in CG/+eDFT and berry's phase electric field
Fixed MKL support in eDFT

P.U.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2569 c92efa57-630b-4861-b058-cf58834340f0
2005-12-08 21:56:20 +00:00
sbraccia d924777f3c Small modifications. C.S.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2567 c92efa57-630b-4861-b058-cf58834340f0
2005-12-07 17:17:54 +00:00
sbraccia 61c7c9693e Fixed some bugs in the parallel I/O of meta-dynamics.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2566 c92efa57-630b-4861-b058-cf58834340f0
2005-12-07 17:16:54 +00:00
sbraccia bd5151b0a9 Extensive clean-up and reorganisation of meta-dynamics. The algorithm
implemented is the one described in PRL 92, 17061 (2004) and, at present, only
works at zero temperature.
The restart files are now written in xml format and are saved ina sub-directory
of the main "save" directory.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2562 c92efa57-630b-4861-b058-cf58834340f0
2005-12-07 04:22:30 +00:00
giannozz 5d3ce97a46 Updated for NEC-sx6 (Guido)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2560 c92efa57-630b-4861-b058-cf58834340f0
2005-12-06 17:30:54 +00:00
cavazzon 721359a455 - some updates about SIC for fpmd calculations
contributed by F.Baletto


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2559 c92efa57-630b-4861-b058-cf58834340f0
2005-12-06 14:55:23 +00:00
giannozz 26891b32ea Undefined variables were present - would have never compiled
Should we keep this ancient cray stuff or remove it altogether???


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2556 c92efa57-630b-4861-b058-cf58834340f0
2005-12-06 09:05:31 +00:00
sbraccia 217bc1ac93 Small fix in the output format.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2538 c92efa57-630b-4861-b058-cf58834340f0
2005-12-01 23:48:16 +00:00
giannozz aed2eca96f Cleanup of the Ultrasoft PP: variable "cmesh", used only for PP in the
archaic USPP format with Herman-Skilman grid, removed. The integration
is now performed used the same logic (but not yet the same routine) of
the other cases.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2536 c92efa57-630b-4861-b058-cf58834340f0
2005-12-01 17:25:22 +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
silviu 45949ffabb change variable ht type in subroutine from_scratch_fpmd to intend(INOUT). [silviu]
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2507 c92efa57-630b-4861-b058-cf58834340f0
2005-11-23 16:14:18 +00:00
silviu 4c65459fa4 upper and lower temperature bounds for velocity rescaling were not properly
defined. [silviu]


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2506 c92efa57-630b-4861-b058-cf58834340f0
2005-11-23 16:10:58 +00:00
giannozz 50b072a3cc Unused file removed
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2505 c92efa57-630b-4861-b058-cf58834340f0
2005-11-23 13:36:43 +00:00
silviu 0302c5ff0d bug fix, wave finction velocity was not set to zero when 'tzeroe' flag is on.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2504 c92efa57-630b-4861-b058-cf58834340f0
2005-11-22 16:41:18 +00:00
giannozz 387957b7ab "na" was declared twice
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2502 c92efa57-630b-4861-b058-cf58834340f0
2005-11-22 08:09:06 +00:00
silviu 3c4de1ea01 Subroutine poles uses now the minimum-image convention when calculating
the dipole moment. That way one don't have to worry about placing the
molecule/cluster in the center of the cell. [silviu]


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2499 c92efa57-630b-4861-b058-cf58834340f0
2005-11-21 23:41:29 +00:00
giannozz 039537519a First batch of alpha compilation problems
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2497 c92efa57-630b-4861-b058-cf58834340f0
2005-11-21 17:30:07 +00:00
silviu d9d3bed97a Modified subroutine 'poles' to calculate also the ionic contribution to the
dipole moment + cleanup. [silviu]


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2496 c92efa57-630b-4861-b058-cf58834340f0
2005-11-20 21:44:02 +00:00
silviu 8d81f41419 Comments were translated from Italian to English. [silviu]
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2494 c92efa57-630b-4861-b058-cf58834340f0
2005-11-19 21:29:30 +00:00
giannozz 28e440347b No reason to keep vofrho_wf (no longer used)
Subroutine "poles" (also not used) kept for now - might be useful later


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2491 c92efa57-630b-4861-b058-cf58834340f0
2005-11-18 14:28:45 +00:00
silviu 88999eda73 Updating the interface of subroutine 'poles' to return also the dipole vector. [silviu]
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2484 c92efa57-630b-4861-b058-cf58834340f0
2005-11-16 23:08:58 +00:00
silviu 235822991c Breaking long code lines to shorter ones (i.e. adding '&'),
g95 doesn't like very long lines. [silviu]


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2469 c92efa57-630b-4861-b058-cf58834340f0
2005-11-13 22:17:23 +00:00
umari 82ce6f09fc Added flag to stop calculation if (in cp.x)
ensemble DFT and NOT conjugate gradient
berry phase electric field and nspin==2
conjugate gradient and nspin==2
P.U.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2465 c92efa57-630b-4861-b058-cf58834340f0
2005-11-11 17:31:43 +00:00
giannozz 1e5f5a5002 References updated, some cleanup of unused routines
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2463 c92efa57-630b-4861-b058-cf58834340f0
2005-11-11 16:11:22 +00:00
kkudin 46d6cfd80c Added a branch to the code to make sure that "lambdam" used in CP is
initialized to something sane in code paths not using "interpolate_lambda"
 Kostya


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2457 c92efa57-630b-4861-b058-cf58834340f0
2005-11-11 00:21:03 +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
cavazzon 259a6ea9b2 - check added on SIC staff with CP
- FPMD error message fixed for SIC with nupdwn(1) = 1 and nupdwn(2) = 0


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2447 c92efa57-630b-4861-b058-cf58834340f0
2005-11-09 16:33:07 +00:00
kkudin 55e4158939 Moved smooth restart CG->CP code to a slightly different location in
order to take into account the very last step as well.
 Kostya


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2445 c92efa57-630b-4861-b058-cf58834340f0
2005-11-08 23:40:21 +00:00
giannozz 5ed89fdd33 bad output message caused a crash when issued
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2444 c92efa57-630b-4861-b058-cf58834340f0
2005-11-08 20:06:40 +00:00
kkudin d3dc252bde Added missing stuff when linking on IBM with XLF
Kostya


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2442 c92efa57-630b-4861-b058-cf58834340f0
2005-11-08 17:54:28 +00:00
sbraccia 4f03ee14b2 Fixed a bug in cpr (the eigenvalues were not always computed when the restart file was saved).
In the history sub-directory the data-files are now saved as: data-file.${iteration-number}.xml
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2440 c92efa57-630b-4861-b058-cf58834340f0
2005-11-08 16:48:06 +00:00
giannozz 8f9fae13dc The "qrl" array - used for compatibility with old Vanderbilt format -
takes 200Mb with default parameters! Reduced to almost half by using
the symmetry wrt index exchange.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2439 c92efa57-630b-4861-b058-cf58834340f0
2005-11-08 10:04:52 +00:00
umari eeb0ae8dab Uncommented lines for smooth restart CG to CP
P..U.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2435 c92efa57-630b-4861-b058-cf58834340f0
2005-11-08 01:12:02 +00:00
cavazzon 45163d093e - CP/FPMD print out routines merged, now physical quantities are
displayed with the same layout


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2434 c92efa57-630b-4861-b058-cf58834340f0
2005-11-08 00:03:27 +00:00
sbraccia 61c936b59a filenames modified so that all the files inside the "save" directory have standard names
that do not depend on the prefix.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2433 c92efa57-630b-4861-b058-cf58834340f0
2005-11-07 19:35:54 +00:00
sbraccia d55347e4dc Some cleanup: the info message about reading/writing the restart file now indicates the
restart directory (the only file users are aware of) and not the xml descriptor.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2432 c92efa57-630b-4861-b058-cf58834340f0
2005-11-07 18:56:23 +00:00
cavazzon 7065fe2757 - writing and reading restart file is now notified on standard output
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2431 c92efa57-630b-4861-b058-cf58834340f0
2005-11-07 17:31:41 +00:00
cavazzon 054216658d - Bug fix, ionic steepest descent was not working
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2430 c92efa57-630b-4861-b058-cf58834340f0
2005-11-07 16:49:32 +00:00
cavazzon 8796e485b6 charge density now is read through xml base method
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2426 c92efa57-630b-4861-b058-cf58834340f0
2005-11-06 20:57:16 +00:00
sbraccia e1d38363cd Clean-up of the xml stuff: the restart directory is now "prefix"_"ndw".save (previously RESTART"ndw")
and the xml data-file is data-file.xml (previously restart.xml). The restart dir now contains a
history sub-dir that contains a copy of the previous files data-file.xml (to facilitate post-processing).
Examples' references do not need to be regenerated.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2424 c92efa57-630b-4861-b058-cf58834340f0
2005-11-06 20:30:51 +00:00
degironc 91433749f9 More small changes to funct module, some clean up of the EXX part.
stefano


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2420 c92efa57-630b-4861-b058-cf58834340f0
2005-11-04 11:47:42 +00:00
degironc c209f8233b Modules/functionals.f90 modified.
The idea is that module funct contains data defining the DFT functional in use
and a number of functions and subroutines to manage them.
Data are PRIVATE and are (shuold be) accessed and set only by function calls.
Basic drivers to compute XC quantities are also included.

It should be the main place where definitions for and calculation of xc
functionals are centralized.

In CPV printout [A.U.] replaced by [HARTREE A.U.] in many places.

stefano


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2411 c92efa57-630b-4861-b058-cf58834340f0
2005-11-02 15:42:06 +00:00
sbraccia cfb3560db2 check_tables must be called only in the case of variable cell dynamics.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2400 c92efa57-630b-4861-b058-cf58834340f0
2005-11-01 22:40:42 +00:00
giannozz 7e71136c35 Patch from Axel Kohlmeyer: mp-sum => mp_max, fixing a serious error
in parallel execution. PLEASE CHECK


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2399 c92efa57-630b-4861-b058-cf58834340f0
2005-11-01 22:23:07 +00:00
kkudin f370b2c68b Removed excessive beautification (i.e. leading "&") in format strings
because ifort 9.0 on AMD64 complained
 Kostya


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2397 c92efa57-630b-4861-b058-cf58834340f0
2005-11-01 16:42:06 +00:00
umari 8e4be2366d Added the possibility (now it's commented)
of smooth restart CG to CP, to be used in CP molecular dynamics

P.U.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2395 c92efa57-630b-4861-b058-cf58834340f0
2005-10-31 16:52:40 +00:00
umari b8c0ba2b63 Just some cleanings
P.U.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2373 c92efa57-630b-4861-b058-cf58834340f0
2005-10-26 00:37:36 +00:00
umari 141137c251 Just added some comments
P.U.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2368 c92efa57-630b-4861-b058-cf58834340f0
2005-10-25 21:41:44 +00:00
umari e9cf6c2cde Clearer comments
P.U.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2363 c92efa57-630b-4861-b058-cf58834340f0
2005-10-25 15:44:24 +00:00
giannozz 201b68ac9a UMA => AMU everywhere . For people not speaking latin-derived languages
the connection between UMA and Atomic Mass Units is not obvious.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2359 c92efa57-630b-4861-b058-cf58834340f0
2005-10-25 13:08:29 +00:00
umari e3fa92df55 Fixed some bugs for electric field with CP
P.U.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2358 c92efa57-630b-4861-b058-cf58834340f0
2005-10-24 22:06:01 +00:00
sbraccia 740f0aad8f Few fixes and some cleanup in metadynamics. C.S.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2349 c92efa57-630b-4861-b058-cf58834340f0
2005-10-22 22:53:57 +00:00