Commit Graph

61 Commits

Author SHA1 Message Date
cavazzon 878a9ebece - more cpv/fpmd merging
- FFT grid (nr1,nr2,nr3 nr1s,nr2s,nr3s) now can be specified in the
  input


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1671 c92efa57-630b-4861-b058-cf58834340f0
2005-03-02 10:03:55 +00:00
sbraccia e3510cf3dc NEB and Fourier String dynamics: the quasi-Newton Broyden's second method has
been fully implemented: it is ~2 times faster than the quick-min optimisation scheme.
It does not make use of the input step ds (the step is automatically upgraded as in the
BFGS method). Still to be tested on difficoult cases (I ask some help from those
who have encountered convergence problems with the previous versions of NEB). C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1668 c92efa57-630b-4861-b058-cf58834340f0
2005-02-25 14:51:41 +00:00
sbraccia 198649869c Fixed other problems related to the image-parallelisation of NEB and SMD.
Documentation updated.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1616 c92efa57-630b-4861-b058-cf58834340f0
2005-02-06 11:04:03 +00:00
sbraccia 7b022ce276 Order in wavefunctions extrapolation made independent from the order in potential extrapolation.
The input keyword "potential_extrapolation" has been substituted by two separate keywords "pot_extrapolation" and "wfc_extrapolation".
Default values are still 'atomic' for the former and 'none' for the latter. Documentation updated.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1551 c92efa57-630b-4861-b058-cf58834340f0
2005-01-10 06:56:14 +00:00
cavazzon 56322ee7d7 - added ensemble dft
- added ensemble dft / conjugate gradient / electric field
  from Paolo Umari / Marzari code
- NOT YET TESTED!!


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1524 c92efa57-630b-4861-b058-cf58834340f0
2004-12-21 15:48:19 +00:00
sbraccia 3413d6cd87 Default value for dt (MD time step) set to 20 a.u.
Documentation updated.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1499 c92efa57-630b-4861-b058-cf58834340f0
2004-12-09 07:31:40 +00:00
sbraccia 0c82a0b539 Cleanup of the pwscf molecular dynamics stuff. Velocity rescaling fully implemented.
Documentation updated. Unused variables and routines removed.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1483 c92efa57-630b-4861-b058-cf58834340f0
2004-11-26 16:49:02 +00:00
sbraccia 01023df017 path optimization:
1) cleanup of the output format (more informative)
   2) some cleanup of internal routines
   3) added a couple of input variables and changed the default value
      of ds from 1.5 to 1.0.
BFGS optimization:
   1) implemented a mixed BFGS + Murtag-Sargent update of the inverse
      hessian which is generally faster than the pure BFGS
   2) trust_radius_max increased to 0.8 bohr
   3) some cleanup of internal routines
(C.S.)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1414 c92efa57-630b-4861-b058-cf58834340f0
2004-11-03 09:53:12 +00:00
sbraccia 3fd1e87edd Several improvements of the string dynamics.
Added a use_multistep input variable that allows fourier modes to be gradually included.
Added a langevin opt_scheme in which the string performs a langevin dynamics in the path space.
In the langevin scheme a canonical sampling of the initial and final configurations can also be done "on the fly" setting first_last_opt=.TRUE..
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1373 c92efa57-630b-4861-b058-cf58834340f0
2004-10-13 08:18:15 +00:00
sbraccia f50f901233 path optimizations: added the possibility to write the prefix.save file (logical varible write_save) relative to each
image (needed for post-processing). C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1290 c92efa57-630b-4861-b058-cf58834340f0
2004-09-15 12:35:54 +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
giannozz d43140a669 Fixed compilation problem in phonon (parallel)
Re-fixed bad initialization of startingpot with calculation='raman'


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1178 c92efa57-630b-4861-b058-cf58834340f0
2004-08-26 16:18:28 +00:00
sbraccia 71f59fbcb2 NEB code reorganization. All the routines involved in "path" optimization
are grouped into modules starting with "path_". The output has been slightly
restyled. In the pwscf code (only) has been implemented a version of the string
method (calculation='smd') in which the path is represented in Fourier components
and the optimization procedure is done on these components (still to be
optimized, but working).
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1119 c92efa57-630b-4861-b058-cf58834340f0
2004-08-18 15:53:01 +00:00
giannozz 80fe00f47f Initialization of startingpot in the "raman" case fixed
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1112 c92efa57-630b-4861-b058-cf58834340f0
2004-08-17 13:16:48 +00:00
sbraccia d1511995ac Removed a strange initialization (ekin_conv_thr = -1.0d0) that was causing a warning.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1090 c92efa57-630b-4861-b058-cf58834340f0
2004-07-22 07:37:15 +00:00
sbraccia 7c7c95035e Removed input variable VEC_scheme (no longer used).
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1089 c92efa57-630b-4861-b058-cf58834340f0
2004-07-21 08:02:46 +00:00
cavazzon e163a007ef - further merging of low level subroutine between FPMD and CP
( cell_move in Module/cell_base.f90 )
- More input parameters check in Module/read_namelists
- For CP, restart file is saved in working directory like in FPMD
  and not in output_dir where MD data are saved, this is because
  usually one keep MD trajectories in home dir.
- added pseudopotential for wannier dynamics example
- added Wannier postprocessing (from Manu Sharma )
- fixed a small bug for FPMD and 'diis' electron dynamics


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1083 c92efa57-630b-4861-b058-cf58834340f0
2004-07-19 17:19:16 +00:00
cavazzon 45f757ca52 - New kind of calculation cp-wf added
- varius fix for CP with wannier functions,
  now I'm able to run Sharma examples,
  but the code is still not fully tested
- fix in readpp for pseudo different from UPF


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1050 c92efa57-630b-4861-b058-cf58834340f0
2004-07-07 15:23:47 +00:00
sbraccia e66dbb9524 Cleanup: removed unused variables.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1040 c92efa57-630b-4861-b058-cf58834340f0
2004-07-05 06:50:22 +00:00
deinzer b36b5527d0 Cleanup: 'dispersion' removed from PW, is now entirely in PH
module disp moved from pwcom to phcom
         variable nqx changed to nqmax


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1032 c92efa57-630b-4861-b058-cf58834340f0
2004-06-30 17:56:05 +00:00
cavazzon 8bc397b888 added new input variables for string dynamics in CP code,
as implemented by Yosuke Kanai


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1021 c92efa57-630b-4861-b058-cf58834340f0
2004-06-28 17:42:18 +00:00
sbraccia f9ac58b70f diis_module.f90 recoded.
The following variant of the DIIS Residual Minimization Method, based
on three steps, has been implemented :
1) At the first "scf" step of the first "ionic" step, the diagonalization
   starts with an initialization procedure. Two (or more) sweeps on all
   the bands are performed. A sweep consists in two (or more if required)
   unconstrained trial steps (steepest descent steps) followed by a
   subspace rotation. If convergence is not achieved in this phase a
   final trial step is done.
   In all the other cases the initialization procedure consists in a
   subspace rotation followed by a trial step.
2) Diagonalization based on the DIIS algorithm is performed on the lowest
   ( nbnd - 2 ) bands. Orthogonalization of the eigenvectors is done at
   each step. The possibility of orthogonalizing a given band only to
   those inside an energy window is also implemented.
3) The topmost two bands are converged using a standard
   conjugate-gradient procedure. This ensures that eventual holes
   left by the DIIS algorithm can be identified and filled.
   If two holes have been found this procedure is repeated on the
   topmost two bands (previously optimized with the DIIS algorithm).
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1014 c92efa57-630b-4861-b058-cf58834340f0
2004-06-26 16:48:36 +00:00
deinzer 595bda9fe8 First step to calculate all dyn. matrices needed for the entire dispersion
in one step with pw.
A new calculation is possible called 'dispersion'
in the phonon card new input parameters are:
nq1, nq2, nq3 : number of q points in the direction
tr2_ph : threshold for the phonon calculation (see also INPUT_PH)
Therefore tr2_ph has been moved from phcom.f90 to Module disp in pwcom.f90
UP TO NOW ONLY THE Q POINTS FOR THE DYN. MATRICES ARE CALCULATED AND PRINTED.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@944 c92efa57-630b-4861-b058-cf58834340f0
2004-06-08 16:20:41 +00:00
giannozz 4a5732790a Part of the variables for ultrasoft pseudopotentials have been moved to a
new module uspp_param, shared between PW and CP (in file Modules/uspp.f90)
The flag newpseudo is no longer used to decide whether states with oc=0 are
bound or not: for those states, and only for the old RRKJ format, oc is set
to a negative value, and this signals that they are not bound. Not elegant
but simpler than it used to be. The converter to UPF format did not include
those states anyway. Beware unexpected side effects!


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@914 c92efa57-630b-4861-b058-cf58834340f0
2004-05-26 11:04:07 +00:00
deinzer f1874de924 Changes in pw to calculate the Raman tensor via the 2n+1 theorem.
A new calculation called 'raman' is now available.
For each k point additional points at k+b will be generated and a nscf
calculation will be performed.
The b vectors are small vectors either in cartesian coordinates or along the
direction along to the nearest neighbours.
A new input card named raman is introduced.
New variables:
b_length:  the length of the b vectors
lcart:     if .true. cartesian direction (default)
           if .false. in direction to the nearest neighbours


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@911 c92efa57-630b-4861-b058-cf58834340f0
2004-05-25 14:22:43 +00:00
dalcorso 9fcf9c7a69 startingwfc should be atomic in a nscf calculation.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@858 c92efa57-630b-4861-b058-cf58834340f0
2004-05-06 12:42:45 +00:00
dalcorso 11c8bd5947 Missing changes added.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@849 c92efa57-630b-4861-b058-cf58834340f0
2004-05-03 14:23:10 +00:00
sbraccia e4c70c0af2 NEB: 1) a backup copy of the restart file is written at each iteration on the scratch
directory.
     2) velocities can be reset (reset_vel keyword) when restarting from file.
Cleanup of bfgs stuff.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@847 c92efa57-630b-4861-b058-cf58834340f0
2004-05-03 08:48:48 +00:00
dalcorso 40bbe919a3 Reading of a spin-orbit (UPF?) pseudopotential written by the atomic code.
Added the variable lspinorb in input.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@841 c92efa57-630b-4861-b058-cf58834340f0
2004-04-30 13:16:03 +00:00
sbraccia fbfa8e8d2e Setting startingwfc="file" in the case of nscf calculations was a bad idea.
I apologize.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@840 c92efa57-630b-4861-b058-cf58834340f0
2004-04-30 12:40:51 +00:00
sbraccia 18d09b6ead Again on the default value of starting***: in the case of a non scf calculation
they are both set to "file".
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@838 c92efa57-630b-4861-b058-cf58834340f0
2004-04-30 07:05:31 +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 cb4704bfda - missing use of iverbosity
- xlf complains for expession like: if ( logical_val == .false. )


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@766 c92efa57-630b-4861-b058-cf58834340f0
2004-04-03 14:42:28 +00:00
degironc 3deee25b0d 2 Apr 2004 A new (experimental) feature is added to LDA+U method.
The +U part of the functional can be built using
              for the projection on localized orbitals some simple
              Wannier functions generated by the post-processing
              code poormanwannier.f90 (pmw.x) from the LDA band
              structure. (SdG)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@764 c92efa57-630b-4861-b058-cf58834340f0
2004-04-02 16:05:17 +00:00
sbraccia 27985f2974 Default value for the neb-time-step (ds) updated.
Crrected csme other small errors in the INPUT_PW file.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@763 c92efa57-630b-4861-b058-cf58834340f0
2004-04-02 15:53:16 +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
sbraccia 2a99b6fdac 1) An experimental parallelization of NEB images has been implemented.
This required a deep modification of the parallelism in PWscf:
there are two new communicators (intra_image_comm and inter_image_comm) and the
existing "pool" communicators (intra_pool_comm and inter_pool_comm) are now vectors
of length given by the number of parallel images. #ifdef __PARA is no longer
needed because all "parallel" variables are always initialized for a serial run
and all parallel routines are, in the case of a serial run, dummy routines.
The wrappers to MPI routines used only by PWscf are in the PW/para.f90 file.
The others (mp_***) are in the Modules/mp.f90. All explicit referencies to mpif.h
should be replaced by an "USE parallel_include" (in a serial run parallel_include
is simply a dummy module).

2) The extrapolation of both potential and wavefunctions has been rewritten in
order to be smarter than before: on the basis of the required extrapolation
order, on the basis of the history and on the basis of which files are really
present on the disk, the algorithm chooses the extrapolation order.
All the algorithms in which ions are moved can use the extrapolation.

These are both unstable features: I need the help of everybody to test them.

C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@742 c92efa57-630b-4861-b058-cf58834340f0
2004-03-24 09:36:50 +00:00
sbraccia f94c73e766 Fixed a couple of bugs in the way default values were set (bugs inserted by me in a previous fix).
The same bug is present in the 2.0.1 version and in the patch-2-0p2.
This should be the ultimate fix for defaults-related problems.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@741 c92efa57-630b-4861-b058-cf58834340f0
2004-03-20 15:43:47 +00:00
sbraccia c9c711e147 Fixed a problem with startingpot default value in the case of nscf and phonon calculations.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@716 c92efa57-630b-4861-b058-cf58834340f0
2004-03-12 17:45:30 +00:00
sbraccia c609bca56b Fixed a bug spotted by Konstantin Kudin:
when a calculation was restarted wfc were always read by file
(no matter whether the startingwfc keyword was set or not).
The same was true for the potential.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@714 c92efa57-630b-4861-b058-cf58834340f0
2004-03-12 10:51:49 +00:00
degironc 34c7972a6d documentation about default value for etot_conv_thr and forc_conv_thr
was wrong in INPUT_PW.
more (100) energy-volume points allowed in ev.f


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@691 c92efa57-630b-4861-b058-cf58834340f0
2004-03-03 11:31:08 +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
sbraccia 0224c2a9ad wfc-extrapolation extended to all "relax" algorithms.
Molecular Dynamics based algorithm partially rewritten:
both standard and damped MD are performed with the velocity Verlet
scheme (with or without constrains).
Renata's subroutines are used only in the framework of variable
cell.
constrain.f90 file is no longer needed: cnstrains are set in the
input file (see CONSTRAINTS CARD) with the same input format used
in FPMD. An arbitrary number of constrains can be set.
In the case of constrained relaxation the damped MD
algorithm is used instead of BFGS.
When restart_mode = "from_scratch" many reastr files are removed
from the scratch directory.
Several other modifications here and there. (C.S.)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@675 c92efa57-630b-4861-b058-cf58834340f0
2004-02-26 11:50:36 +00:00
cavazzon 1e09b84177 some more checks when allocating large arrays,
to know why and where the program stops
when there is no more memory


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@599 c92efa57-630b-4861-b058-cf58834340f0
2004-02-15 10:15:06 +00:00
degironc ce9d9804c9 14 feb 2004 LDA+U: variable starting_ns_eigenvalue has been added in
order to allow to specify how to fill starting ns occupation
             matrices. Useful when the default choice take the wrong
             (or not desired) path.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@598 c92efa57-630b-4861-b058-cf58834340f0
2004-02-14 08:39:34 +00:00
giannozz 0b1a5c9fd8 Extensive module cleanup: DP moved from wrong place (parameters) to the
correct place (kinds); module "varie" replaced by "control_flags" (not
yet in pwcom, though) - many many files changed.
64-bit cpus (Opteron, maybe Itanium) should now work if __LINUX64 is defined


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@513 c92efa57-630b-4861-b058-cf58834340f0
2004-01-23 15:08:03 +00:00
sbraccia b59ad69456 Again some problems with ethr: the diagonalization threshold can now be read by the input file (diago_thr_init).
This value of ethr is overwritten (with a warning message) in the case of a phonon calculation (lphonon flag added). If diago_thr_init is not specified in the input file it is automatically set in setup.f90 (for example in the case of a nscf calculation ethr = tr2 / nelec).
I hope this policy is appropriate for all kind of calculations.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@511 c92efa57-630b-4861-b058-cf58834340f0
2004-01-23 09:50:00 +00:00
cavazzon df489b96bf NEB dynamics added to the FPMD code
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@480 c92efa57-630b-4861-b058-cf58834340f0
2004-01-13 09:49:29 +00:00
giannozz 5a8c4a05dc Tabs removed (again)
NEB/ removed from makedeps.sh
plotrho: added possibility to have contour lines of various type
A few undefined variables defined (again)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@465 c92efa57-630b-4861-b058-cf58834340f0
2004-01-05 18:11:01 +00:00