Commit Graph

64 Commits

Author SHA1 Message Date
degironc dd49eab404 EXX: Gamma-specific part implemented,
kind of parallel implementation (untested)

SdG


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2101 c92efa57-630b-4861-b058-cf58834340f0
2005-08-17 08:43:37 +00:00
degironc 03592615e1 more EXX experimental stuff
stefano


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1978 c92efa57-630b-4861-b058-cf58834340f0
2005-06-27 13:11:33 +00:00
giannozz 24973f1941 Call to subroutine tweights was not updated after recent changes.
Fixed spin-up and spin-down occupancies should now work for tetrahedra
Who knows what bfield(3) is ?


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1900 c92efa57-630b-4861-b058-cf58834340f0
2005-05-24 17:17:27 +00:00
dalcorso 1512b88c03 Introduced a check: gamma_only and noncolin not implemented yet.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1854 c92efa57-630b-4861-b058-cf58834340f0
2005-05-11 15:28:23 +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 002bb2ae2b Input variables for imposing constraints on local and global magnetic
moments have been changes

i_cons, mcons have been removed from input (still there in the code)

added variables:
constrained_magnetization='none','atomic','atomic direction','total'
fixed_magnetization(3) (value of the total magnetization to be fixed)
B_field are introduced (if non zero is the value of the added magnetic field)

for 'atomic' or 'atomic direction' constraint the input magnetization
as defined by starting_magnetization, angle1, angle2 or the cosine of angle1
is used to define the constraint.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1747 c92efa57-630b-4861-b058-cf58834340f0
2005-03-23 17:20:26 +00:00
dalcorso 34dcd9cb6c Added another check for i_cons.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1721 c92efa57-630b-4861-b058-cf58834340f0
2005-03-18 10:52:01 +00:00
dalcorso 37a254eb00 Introduced some experimental constraints on the magnetization.
With i_cons = 3; A penalty functional is added to the
               total energy to constrain each component of the
               total magnetization.
               (Only in noncolinear version)

With i_cons = 4; a fixed magnetic field is added to the
               exchange and correlation magnetic field.
               (Only in noncolinear version)

With i_cons = 5; Uses the two Fermi energies feature to fix the
               magnetization as in the constrained-moment approach.
               mcons(3,1) fix the value of the total magnetization.
               (Only with nspin=2)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1720 c92efa57-630b-4861-b058-cf58834340f0
2005-03-18 10:42:56 +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 e922f580fe Tetrahedra + nscf: always use the correct sysmmetry, or otherwise
the calculation of Efermi (performed at the beginning) will fail.
Same for smearing + nscf: needed for DOS calculations. Since Efermi
is calculated anyway in nscf, calculate and print a good value.
Beware: this may change once again the number of k-points used in a
nscf calculation if not all the symmetry is present ...


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1640 c92efa57-630b-4861-b058-cf58834340f0
2005-02-11 15:47:00 +00:00
dalcorso dff57459f8 Fixed a bug in the j-average of KB pseudopotentials. Added some consistency
checks.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1598 c92efa57-630b-4861-b058-cf58834340f0
2005-01-31 15:04:50 +00:00
cazzato a6ad18850a iswitch flag removed; appropriate flags (as lscf, lmd, lphonon, etc.) should be used
in particular (modenum.ne.0) stands for iswitch = -4 now: is it OK?
unused show_memory routine also removed
documentation updated


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1503 c92efa57-630b-4861-b058-cf58834340f0
2004-12-10 15:20:46 +00:00
giannozz 48dcf8f613 Re-introduce check on occupancy in lsda calculations
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1467 c92efa57-630b-4861-b058-cf58834340f0
2004-11-23 13:22:47 +00:00
sbraccia e6aa41ea47 Again on the old parallel variables.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1424 c92efa57-630b-4861-b058-cf58834340f0
2004-11-04 13:35:00 +00:00
sbraccia 6bee9bc30d Fixed a bug in a check perfomed when occupations are read from input.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1326 c92efa57-630b-4861-b058-cf58834340f0
2004-09-20 11:02:54 +00:00
giannozz 935473389d Bad check with fixed occupations
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1325 c92efa57-630b-4861-b058-cf58834340f0
2004-09-20 10:51:04 +00:00
sbraccia 5cbaab87d3 Other small fix. C.S.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1306 c92efa57-630b-4861-b058-cf58834340f0
2004-09-17 06:35:36 +00:00
sbraccia e56014f122 Other minor changes. C.S.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1304 c92efa57-630b-4861-b058-cf58834340f0
2004-09-17 06:03:02 +00:00
sbraccia ece3b573f0 Minor changes. C.S.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1303 c92efa57-630b-4861-b058-cf58834340f0
2004-09-16 17:17:53 +00:00
sbraccia 40067ec52d Other small modifications in the inequivalent points generation. C.S.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1294 c92efa57-630b-4861-b058-cf58834340f0
2004-09-15 15:30:27 +00:00
sbraccia 9b95a37561 Setup: inequivalent k-points not generated only in berry or band-structure calculations. C.S.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1288 c92efa57-630b-4861-b058-cf58834340f0
2004-09-15 12:06:19 +00:00
sbraccia ad29eabc42 Allocation of evc when starting from atomic wavefunctions modified so that evc contain only the real
number bands and not all the atomic wfcs (they can be much more than the number of bands).
setup.f90 for collinear and noncollinear case unified.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1282 c92efa57-630b-4861-b058-cf58834340f0
2004-09-14 15:25:27 +00:00
sbraccia 30f8c1fea0 Fixed several bugs in the routines for "path-optimization":
"reset_vel" input variable was read but not used
parallelization on images was not properly working
clueanup in the way ATOMIC_POSITIONS card is read.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1151 c92efa57-630b-4861-b058-cf58834340f0
2004-08-23 06:51:19 +00:00
sbraccia ec1d92e838 Workaround for a bug of the PGI compiler (5.1-5).
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1100 c92efa57-630b-4861-b058-cf58834340f0
2004-07-27 08:47:08 +00:00
sbraccia 0caeadbd7b Machine-dependent definitions are now contained in two different files (both in /include):
1) f_defs.h  for definitions to be included in FORTRAN files ONLY
   2) c_defs.h  for definitions to be included in C       files ONLY

C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1012 c92efa57-630b-4861-b058-cf58834340f0
2004-06-25 17:25:37 +00:00
sbraccia d1579c66ec Removed references (not yet 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@953 c92efa57-630b-4861-b058-cf58834340f0
2004-06-12 13:44:18 +00:00
dalcorso 1922f218c6 npol set to 1 in PW.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@938 c92efa57-630b-4861-b058-cf58834340f0
2004-06-02 08:24:00 +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
giannozz a75c83beb2 Merged noncolinear and colinear symmetries (routines sgama, irrek).
Variable degspin removed, constant degspin=2 left.
Please check for unintended effects!


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@906 c92efa57-630b-4861-b058-cf58834340f0
2004-05-21 16:19:20 +00:00
dalcorso 958c86f3f7 Support for s.o.: changes to PW routines:
init_us_1 : dvan coefficients are recalculated
            qq_spinorb coefficients are defined
setup : added code to average a s.o. pseudopotential and use it as a
        standard pseudopotential. (Still not working with US)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@845 c92efa57-630b-4861-b058-cf58834340f0
2004-05-03 08:08:59 +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
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 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 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
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
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 0c4b3101cd General cleanup of the parallelization routines of PWscf: they have all been moved in the para.f90 file.
All explicit includes of mpif.h replaced by USE include_parallel.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@721 c92efa57-630b-4861-b058-cf58834340f0
2004-03-15 09:43:02 +00:00
giannozz 420c6b2cf9 Another fix for Berry Phase calculation with low symmetry
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@615 c92efa57-630b-4861-b058-cf58834340f0
2004-02-18 16:14:38 +00:00
sbraccia b27856a264 Corrected a misleading warning.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@515 c92efa57-630b-4861-b058-cf58834340f0
2004-01-23 17:00:45 +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
sbraccia 47ddca9eaf Fixed some problems with ethr. Comments have been added here and there.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@498 c92efa57-630b-4861-b058-cf58834340f0
2004-01-21 14:41:25 +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
sbraccia 2f4d7baded PW, Gamma and NEB are now unified.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@449 c92efa57-630b-4861-b058-cf58834340f0
2003-12-10 14:57:07 +00:00
sbraccia 24ce939aeb Unit stdout (set in Modules/io_global.f90) is used to write on standard output
instead of 6 or *.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@365 c92efa57-630b-4861-b058-cf58834340f0
2003-11-04 10:53:05 +00:00
sbraccia a83a253232 nbnd = NINT( nelec ) / 2.D0 => nbnd = NINT( nelec / 2.D0 )
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@352 c92efa57-630b-4861-b058-cf58834340f0
2003-10-29 13:00:41 +00:00
sbraccia e2644e0f79 USE pwcom has been splitted in several USE ..., ONLY : ...
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@351 c92efa57-630b-4861-b058-cf58834340f0
2003-10-29 11:34:53 +00:00