Commit Graph

95 Commits

Author SHA1 Message Date
sbraccia 0155b790f7 Added an input variable to specify the convergence threshold for variable-cell relaxations.
C.S.


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


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2703 c92efa57-630b-4861-b058-cf58834340f0
2006-01-13 17:25:42 +00:00
silviu a09a59d8f6 variable tot_charge added to the input of pw.x [silviu]
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2673 c92efa57-630b-4861-b058-cf58834340f0
2006-01-01 09:17:24 +00:00
dalcorso 9d56f1c6c9 Added the possibility to mix scalar relativistic and fully relativistic
pseudopotentials with lspinorb=.true. (Still experimental)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2630 c92efa57-630b-4861-b058-cf58834340f0
2005-12-21 16:30:00 +00:00
giannozz 6ae8a1e665 Obsolete variable removed
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2623 c92efa57-630b-4861-b058-cf58834340f0
2005-12-20 16:26:17 +00:00
degironc 60418a6de4 in order to compile recent change for t_rev
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2462 c92efa57-630b-4861-b058-cf58834340f0
2005-11-11 10:57:01 +00:00
giannozz b4077ffd19 Set to zero new variable t_rev for symmetry with noncolinear magnetization
Since it is used and initialised only by pw.x, setting it to zero prevents
potential problems with all other codes.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2461 c92efa57-630b-4861-b058-cf58834340f0
2005-11-11 09:01:08 +00:00
smogunov e526bf01da Time reversal symmetry is also exploited in noncollinear spin case (A. Smogunov)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2453 c92efa57-630b-4861-b058-cf58834340f0
2005-11-10 09:09:20 +00:00
umari 34222d795d Changed nberrycic--->nberrycyc
Added summary of electric field stuff
Better output in c_phase_field
P.U.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2371 c92efa57-630b-4861-b058-cf58834340f0
2005-10-25 23:17:05 +00:00
giannozz 305e02a222 The current index of k-point, used in exact-exchange and electric-field
calculations, is saved in variable current_k


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2310 c92efa57-630b-4861-b058-cf58834340f0
2005-10-20 07:34:39 +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
umari c8ea6e46dc Added electric field (berry phase style)
support in pw.

in call ro routines ccgdiagg cegterg cinitcgg
added ik (integer) k-point considerd

h_epsi_her calculates V_el|Psi>
c_phase_field.f90 calculates berry phase
during a scf calculation

P.U.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2098 c92efa57-630b-4861-b058-cf58834340f0
2005-08-16 12:04:34 +00:00
giannozz 17aad401df More cleanup of the mixing
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1928 c92efa57-630b-4861-b058-cf58834340f0
2005-06-01 19:12:25 +00:00
giannozz 81dc7ba6e1 The charge mixing accepts on input charges in reciprocal space
(first step towards storing rho(G) instead of rho(r) as it is now
 Still incomplete but everything should work with no side effects)
Mixing for colinear and noncolinear version merged - the latter only
for 'plain' mixing. Case ngm0 != ngm not yet ready.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1926 c92efa57-630b-4861-b058-cf58834340f0
2005-05-31 20:58:48 +00:00
giannozz 7a36d99cbf Removed duplicated call to v_of_rho with charge mixing
Very minor differences with respect to previous version
in energy terms during scf are possible


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1891 c92efa57-630b-4861-b058-cf58834340f0
2005-05-23 12:40:25 +00:00
ballabio fcc1f4d437 end module --> end module name [Gerardo]
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1875 c92efa57-630b-4861-b058-cf58834340f0
2005-05-18 14:24:56 +00:00
giannozz 0bf090e4bc variable "okvan" moved to module "uspp" + minor cleanup
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1765 c92efa57-630b-4861-b058-cf58834340f0
2005-03-28 13:55:19 +00:00
degironc 12e16f8852 new PW feature:
nelup and neldw variables can be read from input and used to set up
    the occupations of spin up and spin down electrons separately.
    It can be used with both metallic and fixed occupations.
    In the former case two Fermi energies are defined, in the latter
    nelup and neldw must be both integer.
    In all cases nelec must also be explicitely defined and
    nelup + neldw = nelec must hold.

    Not fully tested, please report problems and complaints to SdG


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1717 c92efa57-630b-4861-b058-cf58834340f0
2005-03-17 14:47:46 +00:00
giannozz 38ff2bedc5 ttol => tolp
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1572 c92efa57-630b-4861-b058-cf58834340f0
2005-01-21 15:06:22 +00:00
dalcorso 6686c357dc Merging of PWNC and PW. Step II. These routines have been merged.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1540 c92efa57-630b-4861-b058-cf58834340f0
2005-01-05 16:43: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
sbraccia dedeb139ee XLF workarounds no longer needed (the bug in the compiler has been fixed).
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1348 c92efa57-630b-4861-b058-cf58834340f0
2004-09-27 16:02:17 +00:00
sbraccia 5d20c661ef Cleanup and fixes of minor errors in phonon.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1055 c92efa57-630b-4861-b058-cf58834340f0
2004-07-09 15:50:50 +00:00
dalcorso a8b7dcea58 Added the possibility to make a spin-orbit calculation with
zero magnetization. (Still to be cleaned)
Removed the routine to calculate k - -k needed just in
this case.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1034 c92efa57-630b-4861-b058-cf58834340f0
2004-07-01 15:42:40 +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
sbraccia 463137ad88 Removed references (now everywhere) to module basis for those variables already in module ions_base.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@958 c92efa57-630b-4861-b058-cf58834340f0
2004-06-14 07:30:47 +00:00
sbraccia 2058195fda Cleanup of the molecular dynamics routines. Some debug messages removed. Some duplicated variables (fixatom and if_pos) removed from pwcom (already present in ions_base). A logical variable lfixatom added in control_flags. The output of a molecular dynamics run has been slightlychanged to be (hopefully) clearer.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@951 c92efa57-630b-4861-b058-cf58834340f0
2004-06-11 16:53:16 +00:00
giannozz 25ff6785e3 More uspp variables rearrangement (beware undesired side effects!)
qq_spinorb moved into Modules/uspp.f90 as qq_so
dvan => dvan + dvan_so (for spin-orbit only)
PW/clean_pw.f90 replaces PWNC/clean_pw.f90 (PG)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@945 c92efa57-630b-4861-b058-cf58834340f0
2004-06-08 20:00:04 +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 df51dc0b2a More USPP variables moving around
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@937 c92efa57-630b-4861-b058-cf58834340f0
2004-06-01 21:22:19 +00:00
giannozz c16e3106a9 More tweaking with USPP variables
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@936 c92efa57-630b-4861-b058-cf58834340f0
2004-06-01 16:50:03 +00:00
giannozz 47c5de62f8 More USPP_related variables moved to Modules/uspp.f90
Note that lqx => lmaxq for consistency with other names
(those ending in x are static dimensioning)
Beware unexpected side effects (PG)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@933 c92efa57-630b-4861-b058-cf58834340f0
2004-05-31 17:55:33 +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
sbraccia 12079048da A new check has been added in move_ions in the case of BFGS+LSDA: if when the convergence is achieved the absolute magnetization (computed in electrons and now saved in the module lsda_mod) is less than 1.D-8 a new scf cycle is performed starting from atomic potential and wcfs and the BFGS convergence is checked again. To be tested.
Removed some unused variables from pwscf.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@905 c92efa57-630b-4861-b058-cf58834340f0
2004-05-21 11:15:39 +00:00
sbraccia 1ab31b8fdc Yet another version of the DIIS algorithm (it substitutes the previous one). This version is slower (but not dramatically) than davidson for small systems, faster for large systems (the cross-over is around 300 bands), but there is space for further improvements. A gamma-point version is also implemented (previously missing). An "holes-sniffer" is implemented to prevent holes in the eigenvalues spectrum.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@876 c92efa57-630b-4861-b058-cf58834340f0
2004-05-11 08:11:52 +00:00
giannozz 68b075c1ae Cleanup: pwcom no longer used in PP/
qgm is now a local variable as it should be


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@867 c92efa57-630b-4861-b058-cf58834340f0
2004-05-08 10:24:24 +00:00
dalcorso aef6ec462c Introduced variables for spin-orbit support. Changes on these
routines are due to the fact that dvan becomes spin dependent and has
an additional index.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@839 c92efa57-630b-4861-b058-cf58834340f0
2004-04-30 08:51:31 +00:00
giannozz d69e112706 More PP cleanup
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@828 c92efa57-630b-4861-b058-cf58834340f0
2004-04-28 10:25:36 +00:00
giannozz c8c16f1995 ...oops
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@825 c92efa57-630b-4861-b058-cf58834340f0
2004-04-27 15:42:14 +00:00
giannozz 150ae509f3 more pseudopotential cleanup
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@824 c92efa57-630b-4861-b058-cf58834340f0
2004-04-27 13:44:55 +00:00
giannozz 6c76b02482 Pseudopotential cleanup: vnl => vloc_at
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@818 c92efa57-630b-4861-b058-cf58834340f0
2004-04-26 07:25:01 +00:00
giannozz d198ebad0c ndm, mmaxx => ndmx ; 0:ndm => ndmx (starting from 0 no longer needed)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@815 c92efa57-630b-4861-b058-cf58834340f0
2004-04-23 17:10:44 +00:00
giannozz 18658b544f Cleanup: zv moved to module "basis"
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@809 c92efa57-630b-4861-b058-cf58834340f0
2004-04-21 17:14:38 +00:00
giannozz e277741dc8 First steps in USPP merge between CP and PW:
PW: nqfm => nqfx, some us variables and aainit moved to Modules/uspp.f90 (new)
CP: lx, lqx => lqmax, lix => lmaxx+1, variables moved, aainit not yet merged
invmat moved to flib/ and merged with invmat3 of CP/FPMD,
rndm and ylmr2 moved to flib/ in rranf.f90


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@793 c92efa57-630b-4861-b058-cf58834340f0
2004-04-13 21:49:51 +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 5f4676dda1 Cleanup: all references to varie replaced by references to control_flags
(also when varie is indirectly called by pwcom).
Fake module varie has been removed from pwcom.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@761 c92efa57-630b-4861-b058-cf58834340f0
2004-04-02 13:01:15 +00:00
sbraccia 764ce7f663 References to brilz replaced everywhere by cell_base.
There are still references to pwcom: please do not use pwcom in new code !!!
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@760 c92efa57-630b-4861-b058-cf58834340f0
2004-04-02 10:30:15 +00:00
cavazzon c880a0a848 - Almost all neb routines moved to Modules
- New module check_stop used by all codes
  to check for exit conditions ( maximum time
  or EXIT file )


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


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@702 c92efa57-630b-4861-b058-cf58834340f0
2004-03-08 08:43:25 +00:00