Commit Graph

418 Commits

Author SHA1 Message Date
dalcorso fb6d1f0d62 Other routines with unused variables, and removed old unused routines.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5448 c92efa57-630b-4861-b058-cf58834340f0
2009-02-25 16:51:30 +00:00
dalcorso a2b5ab5e50 Minor partial cleanup. Many routines declared unused variables. Many others
could be cleaned.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5445 c92efa57-630b-4861-b058-cf58834340f0
2009-02-25 15:58:53 +00:00
giannozz 3386dfcdb9 Name conflict between module start_k and variable with the same name
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5433 c92efa57-630b-4861-b058-cf58834340f0
2009-02-19 09:14:51 +00:00
degironc d3ebcd964d additions to makefile files needed by the new DFT+DMFT part
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5398 c92efa57-630b-4861-b058-cf58834340f0
2009-02-12 08:09:57 +00:00
giannozz afea924d82 make.depend updated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5320 c92efa57-630b-4861-b058-cf58834340f0
2008-12-02 12:38:23 +00:00
sclauzer 753732be54 Added a simple restart mechanism for transmission calculations. The partial transmission for each scattering energy and k-point will be saved in a dedicated directory (by specifying tran_prefix), and a run can be then restated using the recover flag. Added also the possibility to stop a job smoothly using the max_seconds variable from the check_stop module.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5292 c92efa57-630b-4861-b058-cf58834340f0
2008-11-25 12:53:58 +00:00
sclauzer 75401bec87 Added the possibility to do transmission calculation for a subset of points in the energy grid (using the new input variables start_e and last_e) and for a subset of k-points (using start_k and last_k). This enables to split the whole calculation into smaller pieces, suitable for usage on the GRID. (Gabriele Sclauzero)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5275 c92efa57-630b-4861-b058-cf58834340f0
2008-11-10 10:12:55 +00:00
giannozz aa9228750b integer index should be defined before its usage (some compilers complain)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5269 c92efa57-630b-4861-b058-cf58834340f0
2008-11-04 22:19:10 +00:00
giannozz 3446c2f5e3 #ifdef __SCALAPACK moved around so that serial compilation works.
make.depend's updated


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5244 c92efa57-630b-4861-b058-cf58834340f0
2008-10-27 08:33:19 +00:00
smogunov 238c8882c4 Added the possibility to calculate and plot the scattering states (A. Smogunov).
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5235 c92efa57-630b-4861-b058-cf58834340f0
2008-10-23 13:47:43 +00:00
smogunov 6defd54dcf A bug with some array bounds fixed (A. Smogunov)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5210 c92efa57-630b-4861-b058-cf58834340f0
2008-09-24 11:30:13 +00:00
giannozz 34b5009948 Better workaround for clean_pw
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5205 c92efa57-630b-4861-b058-cf58834340f0
2008-09-19 09:53:11 +00:00
giannozz f946339d97 Some undesired changes slipped into yesterday's commit.
Workaround for crash in pwcond after recenbt changes to phonon symmetry:
a more definitive solution is needed for clean_pw, though


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5204 c92efa57-630b-4861-b058-cf58834340f0
2008-09-19 08:46:31 +00:00
cavazzon bb65b5df9b - missing Modules object files
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5192 c92efa57-630b-4861-b058-cf58834340f0
2008-09-12 16:58:08 +00:00
giannozz be76efc343 More cleanup (?): modules "uspp" and "symme" extracted from "pwcom"
everywhere. I didn't like the previous half-baked state.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5128 c92efa57-630b-4861-b058-cf58834340f0
2008-08-23 17:55:06 +00:00
smogunov ddce89a72f Automatically generated 2D k points are converted to crystallographic
coordinates and a small bug in the generation of 2D G vectors fixed
(A. Smogunov).


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5018 c92efa57-630b-4861-b058-cf58834340f0
2008-06-25 13:16:10 +00:00
smogunov 5a5f6ec1a9 Corrected and slightly modified output of complex k vectors (A. Smogunov).
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5017 c92efa57-630b-4861-b058-cf58834340f0
2008-06-25 12:50:10 +00:00
giannozz eac102ea22 Updated Makefiles. a) a target name should not coincide with a directory
name (remember tha some machines like Mac OSX have case-insensitive file
systems! ee == EE) b) some linkers require an explicit presence of all
modules in the list of files to be linked


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5001 c92efa57-630b-4861-b058-cf58834340f0
2008-06-18 15:08:53 +00:00
smogunov 42858405fe Missing broadcast of the variable nkpts (A. Smogunov)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4978 c92efa57-630b-4861-b058-cf58834340f0
2008-06-12 14:52:41 +00:00
paulatto e607e3c176 g95 does not like when you use .ne. to compare logical variables: .neqv. or
.xor. have to be used instead.

LP


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4955 c92efa57-630b-4861-b058-cf58834340f0
2008-05-29 12:27:39 +00:00
dalcorso da30151710 Bug fix: problem with orthorombic cells. (Contributed by Zhiping)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4938 c92efa57-630b-4861-b058-cf58834340f0
2008-05-16 07:14:54 +00:00
dalcorso 7dc01928de Introduced a check to avoid mixing calculations with and without spin-orbit.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4930 c92efa57-630b-4861-b058-cf58834340f0
2008-05-15 13:03:25 +00:00
dalcorso 9476f6098d Small bug fix: uninitialized printing variable.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4852 c92efa57-630b-4861-b058-cf58834340f0
2008-04-30 07:26:23 +00:00
giannozz c85f1c444e Minor changes tothe qexml file format, by AF: in particular, added the
flag reporting whether only half G-vector sphere is present (not
actually used in q-e but it may be useful for other codes). make.depend
updated


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4819 c92efa57-630b-4861-b058-cf58834340f0
2008-04-18 12:29:55 +00:00
cavazzon c3fe9dd438 - reduce substituted by mp_sum
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4793 c92efa57-630b-4861-b058-cf58834340f0
2008-04-12 16:12:49 +00:00
paulatto ba4e005094 This is a quite complex check-in, but actually not very much is done. Changelog follows.
LP

UPF file format updated completely, UPFv2 introduced:
* ld1.x can still produce old format, with the switch upf_v1_format=.true. in inputp
  this is disabled by default, but we can discuss if it should be the opposite.
* pw.x cp.x and all utilities should notice no difference
* some utilities in upftools still need to be updated, anyway conversion UPFv1 to UPFv2
  is very easy, so this should be no big issue
* starting from now to produce an UPF file you need to fill the pseudo_upf derivedd type
  and feed it to write_upf woutine in upf_module (Modules/upf.f90)
* extensive use of iotk

I have tried to make the new format as self contained as possible, e.g. there should be
minimal need for post-processing after the data is read, no more reconstruction of known
quantities, and no more odd syntax to save negligible quantity of space. Also the human
readable section is a bit richer, all the rest is more machine readable.

I hope this will not cause any throuble, and tried really hard to, all examples and all
tests works as fine as before and gives (what really looks like) the same results.

Other changes that I needed to make:
* radial grids are now allocatable, they management is a bit less of a hack too
* paw and uspp augmentation are stored in the same place
* paw print total all-electron energy if all atoms are paw, not very useful, but nice
* most of the pseudopotential-writing reading files have been renamed to  some more
  logical name, I spare you the list. E.g. read_oldpseudo -> read_pseudo_rrkj3
* paw_t derived type was only used in atomic, so I have put it there (as the pseudo_type
  module take ages to recompile it was awkward to leave it there).

PAW tests inserted in test/ there are 6 of them, as a consequence I have also put 5 paw
pseudopotentials in the pseudo/ directory.

I will update the PAW scf examples soon, by deleting them (as running a pw with a PAW
pseudopotential requires no option at all). PAW generation examples should be updated.

A lot of small bugfixes here & there mostly uninitialized variables or unallocated
pointers used as subrotuine arguments.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4769 c92efa57-630b-4861-b058-cf58834340f0
2008-04-03 15:50:43 +00:00
paulatto b7d046d01b Two missing objects prevented compilation of pwcond. There are more of these!
LP


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4652 c92efa57-630b-4861-b058-cf58834340f0
2008-01-24 10:38:10 +00:00
cavazzon 636712cef9 - scatter/gather like subroutines that act on fft grids,
moved from PW/para.f90 to Modules/fft_base.f90


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4614 c92efa57-630b-4861-b058-cf58834340f0
2008-01-08 09:19:31 +00:00
giannozz 231f4e72cc "error" moved from flib/ to Modules/, as suggested by Axel, into
Modules/error_handler.f90 . Not really an elegant solution, since
the module in error_handler is never used and subroutine "errore"
is not in the module, but better than it used to be. All makefiles
and make.depend updated (fixes yesterday's linking error as well).
Minor changes here and there as well.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4591 c92efa57-630b-4861-b058-cf58834340f0
2008-01-03 09:02:32 +00:00
cavazzon 2aa6533d13 - again fft_parallel Module
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4582 c92efa57-630b-4861-b058-cf58834340f0
2007-12-31 11:08:09 +00:00
dalcorso 27c2b94f1b Bug fix: PWCOND with PAW was not working any more.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4575 c92efa57-630b-4861-b058-cf58834340f0
2007-12-31 08:57:28 +00:00
degironc 0141bb6d0c update of several PAW routines.
global auxiliary variable saved%v removed and replace by a smaller local array.
ddd_PAW has now the same indexing structure as becsum.

miscellaneous:
- defined undefined variable ze2=0 in ascheqps
- ibnd_up/dw initialized in print_ks_energies.f90


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4517 c92efa57-630b-4861-b058-cf58834340f0
2007-12-11 22:46:03 +00:00
dalcorso 152827096e Pwcond does not work with pools. Added a check to stop this case.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4497 c92efa57-630b-4861-b058-cf58834340f0
2007-12-04 14:00:08 +00:00
giannozz 165498def4 Variable 'time_reversal' added. It contains information that was already
present but somewhat hidden. I hope that everything works as before
(matdyn doesn't work with spin-orbit or noncolinear case, but I think
it didn't already) but it is a good idea to check. The choice of a single
q-point in phonon via iq1,iq2,iq3 is presently disabled.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4484 c92efa57-630b-4861-b058-cf58834340f0
2007-11-29 15:39:29 +00:00
paulatto 2239472597 Fixes: ld1 test of upf types was not working anymore (same as reason as CP).
Mods: removed read_paw module and .PAW temporary format support. Makefiles and
make.depend updated accordingly.
Fixes in ld1: test of upf types was not working anymore (same as reason as CP),
added deallocation of pawsetup. As testing of PAW without generation may not
work yet I have put a big error for it.
Other: simpson_cp90 was pretending to be simpson in error messages


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4461 c92efa57-630b-4861-b058-cf58834340f0
2007-11-21 10:39:48 +00:00
dalcorso 101a627c19 Added the possibility to use paw pseudopotentials in PWCOND.
(Still experimental).


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4451 c92efa57-630b-4861-b058-cf58834340f0
2007-11-20 09:12:02 +00:00
degironc ae8be06438 also the scf potential is defined using the scf_type.
then call to v_of_r has been simplified


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4442 c92efa57-630b-4861-b058-cf58834340f0
2007-11-18 20:25:11 +00:00
cavazzon bf74ac09d1 - new file mp_base.f90 containing mpi wrapper for block communications,
like in it was in reduce sub of PW. This is to avoid large temporary
  array allocations in module mp.f90 (mp.f90 calls subs in mp_base.f90).
  On the other hands mp.f90 provide the general interfaces for different
  kind of data and data size checking.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4441 c92efa57-630b-4861-b058-cf58834340f0
2007-11-17 14:32:10 +00:00
paulatto dce5f820da Paw code moved around and unused functions removed; old grid_paw code removed.
This is the first step of code cleanup. Actually nothing should change.

rad_paw_routines -> paw_onecenter (2 functions went to paw_init)
grid_paw_variables -> paw_variables (with some additions from rad_paw_routines)
grid_paw_routines -> paw_init (merged with 2 init functions from rad_paw)

Probably there are a few random fixes around.

Next step: remove ndmx and ntpx.

LP


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4422 c92efa57-630b-4861-b058-cf58834340f0
2007-11-12 14:49:09 +00:00
degironc 93c72b5f3b make.depend again and a corrected scf_mod.f90
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4381 c92efa57-630b-4861-b058-cf58834340f0
2007-10-31 23:02:23 +00:00
degironc d5387129e5 module scf has been separated from PW/pwcom.f90 (put in PW/scf_mod.f90) in
order to reorganize the variables needed for mixing and scf cycle.
More changes will follow....


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4379 c92efa57-630b-4861-b058-cf58834340f0
2007-10-31 14:28:18 +00:00
paulatto d858b4a51b New PAW version, now completely working on radial grid. Code on FFT grid can still be compiled using __GRID_PAW flag (but may not work a
nymore). Other things working: parallel, gamma-only.

Files vxc_t, exc_t and vxcgc moved from atomic to Modules (to prevent cyclic dependencies).

Other random fixes: a kind in init_vloc, a call to infomsg in ./PH/add_for_charges.f90.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4358 c92efa57-630b-4861-b058-cf58834340f0
2007-10-22 14:54:29 +00:00
giannozz c138cf41e2 Parameter nbrx (max number of beta functions) removed. Exceptions:
- PAW (still used here and there)
- PWCOND (used in the definition of betar* functions)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4343 c92efa57-630b-4861-b058-cf58834340f0
2007-10-15 16:37:00 +00:00
giannozz 322e4078f4 Two fixes for PWCOND: pseudopotentials are dimensioned up to the actual
number "ntyp" of species, not up to the maximum "npsx"; pseudopotentials
should be deallocated if already allocated when read, or otherwise the
pwcond code will stop complaining that "array is already allocated" (not
all compilers complain, though).


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4322 c92efa57-630b-4861-b058-cf58834340f0
2007-10-07 17:34:26 +00:00
dalcorso d530648029 Fixed the compilation problem of pwcond.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4318 c92efa57-630b-4861-b058-cf58834340f0
2007-10-06 14:58:37 +00:00
giannozz e0378cf043 Various compilation problems after last changes fixed.
There is one left in PWCOND, related to arrays betar*
Misc small changes here and there


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4317 c92efa57-630b-4861-b058-cf58834340f0
2007-10-06 13:50:02 +00:00
paulatto 08fedbe2f0 SCF with Projector-Augmented Wave Pseudopotential (PAW) routines added.
This means that a lot of routines have been modified and a few files have
been added. During the year several people have contributed to this code,
mainly Guido Fratesi, Ricardo Mazzarello, Stefano de Gironcoli, Andrea Dal
Corso and me (Lorenzo Paulatto).

A brief report of modified or added files follows, further down you will
find a loger report of modifications that was necessary to merge develop_PAW
branch with the current CVS version.

Current version is not 100% functional, but it doesn't brake anything else and
can be used to generate and test PAW pseudopotential.

      *************************************
      *** Brief report of modifications ***
      *************************************
Modified files:
PW/clean_pw.f90
PW/electrons.f90
PW/print_clock_pw.f90
PW/hinit0.f90
PW/potinit.f90
PW/newd.f90
PW/summary.f90
PW/setup.f90
PW/read_pseudo.f90
PW/init_us_1.f90
PW/init_run.f90
PW/mix_rho.f90
atomic/atomic_paw.f90
atomic/write_paw_recon.f90
atomic/ld1_writeout.f90
atomic/write_resultsps.f90
atomic/ld1inc.f90
atomic/ld1_readin.f90
atomic/gener_pseudo.f90
atomic/parameters.f900
atomic/run_pseudo.f900
atomic/set_rho_core.f90
atomic/pseudovloc.f90
Modules/read_upf.f90
Modules/uspp.f90
Modules/pseudo_types.f90
Modules/parameters.f90

Added files:
PW/grid_paw_routines.f90
PW/rad_paw_routines.f90
Modules/grid_paw_variables.f90
Modules/read_paw.f90

Added files that will be removed:
PW/rad_paw_trash.f90
PW/paw_xc.f90

Examples:
examples/PAWexample contains a full test of PAW pseudopotential
for Oxygen. The test consist in these tasks:
 - 2 norm conserving, 2 US and 4 PAW pseudopotentials are
   generated and tested in ld1
 - pw test for an isolated O atom at different cutoffs
 - pw test for an O2 molecule at different O-O distance
please read examples/PAWexample/README for (a few) details.

NOTES:
1. new modifications to atomic_paw (and related) from ADC have been rolled
   back, as they were breaking a lot of things, I will reintroduce them
   later when I am sure that everything works properly.
2. the files PW/paw_xc.f90 and Modules/rad_paw_trash.f90 will be removed in
   the next few weeks.

TODO:
1. use new ld1 XC code as much as possible, and remove legacy XC routines
   from rad_paw_routines
2. full self-consistency with radial energies
3. make new Harris-Foulkes estimate paw-aware
4. provide some kind error estimate
5. FORCES and stress!! (require symmetrization of becsums)
6. cleanup

    ************************
    *** merge of PW code ***
    ************************
Versions notation:
OLD=version from 2 years ago used as reference to generate the patches
NEW=CURRENT=current trunk version
PAW=current develop_PAW version

Note: pseudo-potential input and allocation routines changed
      a lot in the last years, this is a diagram:
OLD:PW/readin ~~> PAW:PW/read_pseudo --> disappears
pops out --> PAW:PW/readin ~~> NEW:PW/read_pseudo

added files:
Modules/read_paw.f90    (contains module read_paw_module with subroutines
                         paw_io nullify_pseudo_paw, allocate_pseudo_paw and
                         deallocate_pseudo_paw previously in removed file
                         Modules/readpseudo.f90. Also contains module
                         paw_to_internal with subroutine set_pseudo_paw,
                         previously in upf_to_internal.f90)
PW/paw_xc.f90           (contains OLD=PAW xc and gcxc routines as adapting paw
                         grid code to use new routines was very error prone and
                         quite worthless, as it has to be removed anyway)

Conflicts reported by CVS during merge:
DONE */Makefiles                    (all replaced with new, redone by hand)

DONE  flib/functionals.f90          (nothing to do)

DONE Modules/functionals.f90        (RNV == replaced with NEW version)
DONE Modules/atom.f90               (trivial: duped rgrid)
DONE Modules/autopilot.f90          (trivial)
DONE Modules/bfgs_module.f90        (RNV)
DONE Modules/cell_base.f90          (RNV)
DONE Modules/check_stop.f90         (RNV)
DONE Modules/constants.f90          (RNV)
DONE Modules/constraints_module.f90 (RNV)
DONE Modules/energies.f90           (RNV)
DONE Modules/input_parameters.f90   (RNV)
DONE Modules/ions_base.f90          (RNV, has 3 new subs)
DONE Modules/ions_nose.f90          (RNV)
DONE Modules/parameters.f90         (actually RNV)
DONE Modules/path_base.f90          (RNV)
DONE Modules/path_opt_routines.f90  (RNV)
DONE Modules/path_reparametrisation.f90 (RNV)
DONE Modules/path_variables.f90     (RNV)
DONE Modules/pseudo_types.f90       (cleaned double def of paw_t)
DONE Modules/read_cards.f90         (RNV)
DONE Modules/read_namelists.f90     (checked and RNV)
DONE Modules/uspp.f90               (trivial)
DONE Modules/xml_io_base.f90        (RNV)

DONE PW/read_pseudo.f90             (merged by hand with PAW PW/readin)

DONE PW/bp_calc_btq.f90             (trivial)
DONE PW/c_bands.f90                 (actually RNV)
DONE PW/ccgdiagg.f90                (RNV)
DONE PW/cegterg.f90                 (RNV)
DONE PW/cft3s.f90                   (RNV)
DONE PW/cinitcgg.f90                (RNV)
DONE PW/c_phase_field.f90           (RNV)
DONE PW/divide_et_impera.f90        (nothing to do?)
DONE PW/exx.f90                     (RNV)
DONE PW/hinit0.f90                  (easy)
DONE PW/h_psi.f90                   (RNV)
DONE PW/init_run.f90                (easy)
DONE PW/kpoint_grid.f90             (nothing to do?)
DONE PW/newd.f90                    (required mod in newd_paw_grid, CHECK!!)
DONE PW/openfil.f90                 (actually RNV)
DONE PW/paw.f90                     (actually RNV)
DONE PW/punch.f90                   (RNV)
DONE PW/pwscf.f90                   (quite RNV)
DONE PW/set_kup_and_kdw.f90         (RNV)
DONE PW/setup.f90                   (RNV + 2 line merged by hand)
DONE PW/sgama.f9                    (actually RNV)
DONE PW/sgam_at_mag.f90             (actually RNV)
DONE PW/stop_run.f90                (actually RNV)
DONE PW/stres_gradcorr.f90          (actually RNV)
DONE PW/symrho_mag.f90              (nothing to do)
DONE PW/v_of_rho.f90                (RNV)

DONE PW/compute_fes_grads.f90       (RNV)
DONE PW/gradcorr.f90                (RNV)
DONE PW/input.f90                   (RNV)
DONE PW/pw_restart.f90              (RNV)
DONE PW/read_ncpp.f90               (actually RNV)
DONE PW/summary.f90                 (RNV + inserted new PP type)
DONE PW/wfcinit.f90                 (RNV)

the hard ones:
DONE PW/electrons.f90   (adapted code to new syntaxes, a lot of cleanup, removed
                         some PAW junk that can be readded later, removed parts
                         that were applyed twice, or had been removed in trunk,
                         the rhog allocations and usage may need fixes)
DONE PW/mix_rho.f90     (merged tauk and paw additions, a bit of cleanup and smarter
                         variables names)
DONE PW/init_us_1.f90   (qtot redefined with "triangular" index nb,mb-->ijv)

modified for compiling:
Modules/io_files.f90    (depatched)
PW/pwcom.f90            (depatched)
Modules/parameters.f90  (temporary readded cp_lmax = lmaxx+1)
PW/newd.f90             (merge was wrong, redone mostly by hand)
PW/read_ncpp.f90        (depatched)
PW/read_pseudo          (small fixes)
PW/sgam_at_mag.f90      (depatched)
PW/sgama.f90            (depatched)
PW/stres_gradcorr.f90   (depatched)

modified for running:
PW/clean_pw.f90         (added call to deallocate_paw_internals)

Modifications to PAW routines:
1. compute_onecenter_charges and compute_onecenter_charges modified to
   comply with new structure of v_xc (in v_of_rho.f90), requiring new
   g-space densities to be saved and computed --> using old xc routines
   as this code will be removed.
2. qrad size has changed, prad and ptrad had to be changed accordingly.
3. several minor modifications to use new radial grid structure.
4. infomsg arguments changed, very funny bug followed.
5. added new routine deallocate_paw_internals, called by PW/clean_pw.f90
   required to run pp.x with more than one q-point(and good programming
   practice)


    *************************
    *** merge of LD1 code ***
    *************************
2nd try: atomic code replaced with current version, then merge by hand
the files that are used by paw subsystem:
* atomic_paw.f90        (replaced with most recent version from develop_PAW
                         routine us2paw and paw2us taken from newer trunk
                         version, a lot of minor changes.)
* gener_pseudo.f90      (fixes)
* ld1inc.f90            (PAW variables added)
* ld1_readin.f90        (PAW variables added, I am not sure if lpaw should go
                         in input or inputp namelist)
* ld1_writeout.f90      (it was only necessary to add a few lines)
* pseudovloc.f90        (nothing to do)
* run_pseudo.f90        (almost nothing to do)
* set_rho_core.f90      (readded a few lines for lnc2paw)
* write_paw_recon.f90   (nothing to do)
* write_resultsps.f90   (nothing to do: trunk version is more
                         PAW-aware than PAW version)

Main problems were found in subroutines run_pseudo and gen_pseudo,
a little code had to be rewritten to comply with new variable names
and fix with merge.

TODO: fix atomic_paw routines to use minimal allocated arrays insetad
of ndmx sized ones; try to use the pawet as much as possible. Remove
test lines and other garbage. Find a fix for PAW2.

The first week of september Andrea Dal Corso uploaded a few modifications to
the atomic_paw routines. I had to rollback them as the structure of atomic_paw
has changed a lot and reimplementing them is probably easier and definitely
safer than fixing everything. I will do it soon, I swear!

LP


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4257 c92efa57-630b-4861-b058-cf58834340f0
2007-09-18 10:05:46 +00:00
degironc 6da8252f73 a radial_grid_type is introduced in Modules and used in atomic-related part
many changes but results are identical before and after.
sdg


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4127 c92efa57-630b-4861-b058-cf58834340f0
2007-08-12 00:08:53 +00:00
cavazzon e3961f11e8 - Makefile again
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4112 c92efa57-630b-4861-b058-cf58834340f0
2007-08-09 21:26:12 +00:00
dalcorso 23a8a73ac3 The variables needed to constrain the magnetization written in the punch
file. The ph.x, pwcond.x, pp.x and bands.x codes now stop if pw.x has
been run with constrained magnetization.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4083 c92efa57-630b-4861-b058-cf58834340f0
2007-07-28 16:40:41 +00:00
giannozz ac82c40ab7 configure updated (only configure.ac had been previously updated).
LD used instead of MPIF90 in Makefiles for loading. Since LD is used
anyway in iotk, it makes sense to use it. In some cases it may be
useful to have distinct options for compiling and for loading.
Minor cleanup in some routines


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3976 c92efa57-630b-4861-b058-cf58834340f0
2007-06-20 17:04:47 +00:00
dalcorso 0a51dc5f2b Added a few checks to stop the codes PH and PWCOND if lda_plus_u is true.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3965 c92efa57-630b-4861-b058-cf58834340f0
2007-06-12 13:06:59 +00:00
smogunov 59ac7f2777 A bug with memory allocation leading to the crash in some cases is fixed (A. Smogunov)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3894 c92efa57-630b-4861-b058-cf58834340f0
2007-04-04 09:00:38 +00:00
giannozz 054e721960 Misc pseudopotential cleanup: upf_to_internal merged between CP and PW;
PAW-related stuff extracted and put into the paw module; various checks
moved to more appropriate places; initialization of obsolete variables
lloc and lmax moved elsewhere; variable zp moved to uspp_param.
All PP-reading subroutines (too many) read zp, not zv; zv is set later.
Summary for pseudopotentials unified and purged of printout of
obsolete/unused/unset variables.
PW/readin.f90 renamed to something more suggestive of what it does
(PW/read_pseudo.f90). Module PW/upf_to_internal.f90 moved to Modules/,
routine upf2internal removed from CPV/read_pseudo.f90.
Harmless error in berry phase + a few bad formats in GIPAW fixed.
Dependencies and Makefiles updated.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3851 c92efa57-630b-4861-b058-cf58834340f0
2007-03-18 19:24:56 +00:00
giannozz 09bf6a7e43 Makefile updated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3785 c92efa57-630b-4861-b058-cf58834340f0
2007-02-15 11:51:27 +00:00
giannozz 3a98e2d9d4 More patches from Axel:
- correct an unquoted string (iosys) in PW/input.f90:483
(this was the cause of tonight compilation failere)
- correct a few incorrect format strings
- make more use of the constants module and thus
  provide more consistent units. NOTE, this has some
  numerical changes in the outputs, as in some places
  rather low precision and inconsistent numbers were
  used for unit conversion.
- convert all(?) single precision constants to double
  using the attached little perl program.
  exceptions: efermi.f90 (as it is supposed to be rewritten
  anyways), plotbands.f90 (it uses single precision everywhere,
  which may result in saving a significant amount of memory,
  so i converted the two double precision constants to single).
Unused routine 'set_fft_grid' removed


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3602 c92efa57-630b-4861-b058-cf58834340f0
2006-12-14 08:53:47 +00:00
giannozz 19aaac89fa More miscellanous cleanup from Axel:
- disable locales via use of LC_ALL=C in all shell scripts
   (which will hopefully make sorted lists more consistent
    between people running with different locales).
 - remove redundant files from PW, NMR_new, VdW, VIB;
   rename subroutines if their functionality is noI
   unchanged from the original source it was taken from.
 - corresponding updates to Makefiles and dependencies.
 - whitespace cleanups (eleminate remaining tabs).
 - a few more float->DBLE


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3596 c92efa57-630b-4861-b058-cf58834340f0
2006-12-12 11:02:09 +00:00
sbraccia 7432487fe6 Dependencies updated. C.S.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3593 c92efa57-630b-4861-b058-cf58834340f0
2006-12-11 14:55:42 +00:00
giannozz 1e235af88b More patches by Axel: all occurrences of "index" replaced by "idx".
"index" is an instrinsic and shouldn't be used as a variable.
control-M characters removed from qexml.f90


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3585 c92efa57-630b-4861-b058-cf58834340f0
2006-12-01 14:41:55 +00:00
giannozz 930d0ecdae dependencies updated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3558 c92efa57-630b-4861-b058-cf58834340f0
2006-11-22 08:52:07 +00:00
dalcorso 42c5d95aa0 Bug fix: pwcond was not working with multi-projector norm conserving
pseudo-potentials.
Small change in divide_class.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3509 c92efa57-630b-4861-b058-cf58834340f0
2006-11-04 15:05:20 +00:00
dalcorso 30942c0421 Write_states now writes also the charge of spinor wavefunctions.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3496 c92efa57-630b-4861-b058-cf58834340f0
2006-10-26 13:52:15 +00:00
dalcorso 6bd0edb4b5 Bug fix: the noncolinear pwcond was not working with scalar relativistic
norm conserving PP.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3495 c92efa57-630b-4861-b058-cf58834340f0
2006-10-26 09:45:54 +00:00
dalcorso b6afc58105 Experimental: pwcond calculates the scattering and Bloch states on a 3D-FFT
mesh and writes them in a file readable by the pp programs.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3490 c92efa57-630b-4861-b058-cf58834340f0
2006-10-25 15:35:53 +00:00
smogunov 121cd7899a Output of transmission eigenchannels is disabled in a test case
of the perfect conductor (all channels have transmission 1). A. Smogunov


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3466 c92efa57-630b-4861-b058-cf58834340f0
2006-10-19 09:59:18 +00:00
dalcorso b6cba4c7c9 Another check for previous commit.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3463 c92efa57-630b-4861-b058-cf58834340f0
2006-10-18 16:29:20 +00:00
dalcorso ca6f37e209 Missing check in previous commit.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3462 c92efa57-630b-4861-b058-cf58834340f0
2006-10-18 16:04:07 +00:00
dalcorso 9ce64fb6e1 Experimental feature: pwcond is used to calculate the propagating Bloch states
in all points of the FFT mesh, not just in the first and last planes.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3461 c92efa57-630b-4861-b058-cf58834340f0
2006-10-18 15:37:43 +00:00
dalcorso 77dbbceb7c Several arrays with zero dimension are not allocated in the free electrons
case.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3458 c92efa57-630b-4861-b058-cf58834340f0
2006-10-16 15:25:42 +00:00
dalcorso 048b0c5a3d Recent changes to pwcond did not work with free electrons.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3455 c92efa57-630b-4861-b058-cf58834340f0
2006-10-16 08:33:25 +00:00
giannozz 6232da2eaf getenv replaced by wrapper get_env, preprocessed only in a single file
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3452 c92efa57-630b-4861-b058-cf58834340f0
2006-10-11 14:42:42 +00:00
smogunov eab3607dee scatter_back.f90 is not needed anymore (A. Smogunov)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3450 c92efa57-630b-4861-b058-cf58834340f0
2006-10-11 09:53:13 +00:00
smogunov aad16258e6 Some optimization (A. Smogunov)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3449 c92efa57-630b-4861-b058-cf58834340f0
2006-10-11 09:31:53 +00:00
dalcorso a806c4703e Free electrons in pwcond. Small change.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3448 c92efa57-630b-4861-b058-cf58834340f0
2006-10-10 14:59:35 +00:00
giannozz 61652e343c Objects in PW, PH, CPV are stored into libraries (libpw.a, libph.a,
libcp.a respectively), used to load the executables. This removes
the need to specify all needed objects in many different makefiles.
Works with 95, ifort, xlf. Please let me know if there are problems
with more exotic or lousy compilers.

A few minor things fixed as well.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3428 c92efa57-630b-4861-b058-cf58834340f0
2006-10-03 19:26:15 +00:00
giannozz 43e4e5d38d There is no reason to generate dependencies every time. Files
make.depend are now in the CVS and shouldn't be updated unless
needed. Configure no longer runs makedeps.sh. Type 'make depend'
to regenerate dependencies.

Remove all */make.depend files before updating!


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3409 c92efa57-630b-4861-b058-cf58834340f0
2006-09-21 17:49:53 +00:00
giannozz 4421cfc590 MPI_REAL8 => MPI_DOUBLE_PRECISION
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3406 c92efa57-630b-4861-b058-cf58834340f0
2006-09-21 10:32:04 +00:00
dalcorso 8ecca440d6 j-average of KB pseudo was not implemented in read_file.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3385 c92efa57-630b-4861-b058-cf58834340f0
2006-09-13 14:38:46 +00:00
dalcorso cecdda2715 Now bands.x can classify the bands according to the irreducible
representation of the small group of k. k points on the border
of the Brillouin zone of systems with non symmorphic space groups
are not dealt with. Spin-orbit case included.

Find_mode_sym extended to all the q points, with the same limitations as
the bands.
(still experimental).


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3330 c92efa57-630b-4861-b058-cf58834340f0
2006-08-22 17:01:13 +00:00
dalcorso 047ab0cc41 Added a few routines to classify the vibrational modes of molecules
according to the irreducible representations of the point group.
(Still experimental)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3316 c92efa57-630b-4861-b058-cf58834340f0
2006-08-09 08:20:53 +00:00
giannozz 6c40185885 - outdir is set by default to the value of the $ESPRESSO_TMPDIR
environment variable, or to './' (as before) if this is not set
- pseudo_dir is set by default to the value of $ESPRESSO_PSEDIR,
  to $HOME/espresso/pseudo/ otherwise
- documentation updated to reflect the new defaults
Note that the 'capture' of $HOME/pw/pseudo using a call to 'getenv'
was already present in pwscf but it was not working (pseudo_dir was
overwritten) so nothing susceptible to create new problems was added.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3309 c92efa57-630b-4861-b058-cf58834340f0
2006-08-08 18:05:16 +00:00
dalcorso 7ec70db326 Added a routine to print the name of the point group. (Only with
verbosity="high").


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3302 c92efa57-630b-4861-b058-cf58834340f0
2006-07-31 09:05:10 +00:00
dalcorso 43ac7466b7 Bug fix: In particular cases the order of the orbitals was not correct.
(A. Smogunov and ADC) (Bug found by G. Sclauzero).


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3151 c92efa57-630b-4861-b058-cf58834340f0
2006-06-05 07:49:05 +00:00
dalcorso b20c87cc98 Clean-up of unused variables.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3132 c92efa57-630b-4861-b058-cf58834340f0
2006-05-19 15:21:27 +00:00
kkudin dfe893b58d Missing electrons_base.o
Kostya


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3125 c92efa57-630b-4861-b058-cf58834340f0
2006-05-16 21:06:38 +00:00
dalcorso 715333e7ce Introduced the possibility to generate a grid of 2D k-points.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3122 c92efa57-630b-4861-b058-cf58834340f0
2006-05-15 08:05:55 +00:00
dalcorso 269425ee76 Small change: stdout used everywhere in pwcond.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3121 c92efa57-630b-4861-b058-cf58834340f0
2006-05-15 07:57:15 +00:00
dalcorso 3d7a49afeb Missing #ifdef __PARA.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3080 c92efa57-630b-4861-b058-cf58834340f0
2006-05-05 05:33:43 +00:00
dalcorso 0178a96db4 Bug fix: The parallel version of pwcond did not run in some machines.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3076 c92efa57-630b-4861-b058-cf58834340f0
2006-05-04 13:21:09 +00:00
giannozz 3773af5b7d - bug fix: charge density incorrectly read in lsda case
- io_pot removed, replaced by read_rho, write_rho. It looks like it is
  working but more testing is needed
- Makeifles updated


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3072 c92efa57-630b-4861-b058-cf58834340f0
2006-05-03 21:08:23 +00:00
sbraccia d5af9d79f7 Makefiles updated. C.S.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3070 c92efa57-630b-4861-b058-cf58834340f0
2006-05-03 14:33:05 +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
giannozz 3733ffdb94 Old file format and related files deleted, makefiles updated accordingly
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2949 c92efa57-630b-4861-b058-cf58834340f0
2006-03-23 11:00:52 +00:00
giannozz 2272afad1b Makefile updated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2936 c92efa57-630b-4861-b058-cf58834340f0
2006-03-22 16:39:14 +00:00
dalcorso 43d7d61924 Makefile updated.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2920 c92efa57-630b-4861-b058-cf58834340f0
2006-03-16 09:28:38 +00:00
giannozz 889ed5516a Makefiles updated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2876 c92efa57-630b-4861-b058-cf58834340f0
2006-03-07 14:00:34 +00:00
cavazzon c71243d743 - Makefile updated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2840 c92efa57-630b-4861-b058-cf58834340f0
2006-02-20 09:42:59 +00:00
giannozz b4c24dc88a Update of Makefiles
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2831 c92efa57-630b-4861-b058-cf58834340f0
2006-02-16 16:48:11 +00:00
giannozz e7d47f99da Wrapper for serial 3d fft no longer needed
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2814 c92efa57-630b-4861-b058-cf58834340f0
2006-02-14 14:44:15 +00:00
giannozz 3b39f80c94 Makefile updated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2813 c92efa57-630b-4861-b058-cf58834340f0
2006-02-14 14:22:00 +00:00
giannozz 69e4e57f35 Added missing reference to random_numbers.o
Directory Raman/ removed: removed it from CVS/Entries to get rid of error.
I am experimenting a little bit with CVS so if you encounter strange
problems please let me know


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2800 c92efa57-630b-4861-b058-cf58834340f0
2006-02-10 10:27:04 +00:00
sbraccia 24a1b85544 Makefiles updated.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2766 c92efa57-630b-4861-b058-cf58834340f0
2006-02-03 18:42:08 +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 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
giannozz 23d5fc212c Makefile updated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2659 c92efa57-630b-4861-b058-cf58834340f0
2005-12-28 11:36:02 +00:00
giannozz fe36de1c1b Oops, forgotten module splinelib after yesterday's change ...
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2639 c92efa57-630b-4861-b058-cf58834340f0
2005-12-22 11:23:33 +00:00
sbraccia 209703222c Added missing dependency. C.S.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2603 c92efa57-630b-4861-b058-cf58834340f0
2005-12-17 20:02:00 +00:00
degironc c8653b45fe PWscf: defining variable tqr=.true. in system namelist, Augmentations
charges are computed in real space only in spheres around the atoms and
these patches are added to rho on the dense fft grid.

Affected routines: addusdens and newd.

Should scale linearly with system size, as opposed to the quadratic
scaling of the G-space implentation.

Experimental version:
 - no forces nor stress yet.
 - parallel version to be tested
 - not to mention phonon and the other codes ...

DISCLAIMER

There are accuracy issues to be understood better, we may need properly
modifies pseudopotentials in order to avoid (or reduce) errors when
ecutrho is still insufficient to describe all Fourier components of the
augmentation charge.
In this case (that is nearly always) also the usal G-space has errors
(negative charges for molecules and surfaces, for instance) but they are
usually small and we are used to live with them.
Some experience is needed to understand the relevance of the error related
to R-space augmentation charges.
CP has R-space augmentation with small-boxes.
They also produce some different, usually small, errors.
I think (I may be wrong) this is the origin of the fact that sometime PWscf
and CP total energies are not exactly the same.

SdG and Antonio Suriano


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2531 c92efa57-630b-4861-b058-cf58834340f0
2005-11-30 15:49:59 +00:00
dalcorso 71c38d9494 Changed symmetrization in the non-collinear case.
(A. Smogunov and ADC)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2326 c92efa57-630b-4861-b058-cf58834340f0
2005-10-21 13:01:42 +00:00
ballabio 670f4b64d5 now configure checks separately for serial and parallel compilers [Gerardo]
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2258 c92efa57-630b-4861-b058-cf58834340f0
2005-10-05 18:11:25 +00:00
giannozz 18d062242b Cleanup of obsolete stuff
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2255 c92efa57-630b-4861-b058-cf58834340f0
2005-10-04 14:08:10 +00:00
ballabio 235d96d71e separated LDFLAGS and LIBS [Gerardo]
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2247 c92efa57-630b-4861-b058-cf58834340f0
2005-09-29 13:17:39 +00:00
giannozz 49ba9b41b3 Printout restored to its correct value
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2161 c92efa57-630b-4861-b058-cf58834340f0
2005-09-07 15:06:45 +00:00
sbraccia e0e17e962b More merge between xml routines used by cp/fpmd and pwscf. Many fixes in the
pwscf set of drivers that read the xml punch file.
Now the postprocessing codes that use the read_file routine to read the punch
file should work (please check).
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2138 c92efa57-630b-4861-b058-cf58834340f0
2005-08-29 20:29:22 +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
giannozz bf4bfe222f General cleanup of intrinsic functions:
conversion to real    => DBLE
(including real part of a complex number)
conversion to complex => CMPLX
complex conjugate     => CONJG
imaginary part        => AIMAG

All functions are uppercase.
CMPLX is preprocessed by f_defs.h and performs an explicit cast:
#define CMPLX(a,b)  cmplx(a,b,kind=DP)
This implies that 1) f_defs.h must be included whenever a CMPLX is present,
2) CMPLX should stay in a single line, 3) DP must be defined.

All occurrences of real, float, dreal, dfloat, dconjg, dimag, dcmplx
removed - please do not reintroduce any of them.
Tested only with ifc7 and g95 - beware unintended side effects

Maybe not the best solution (explicit casts everywhere would be better)
but it can be easily changed with a script if the need arises.
The following code might be used to test for possible trouble:

program test_intrinsic

  implicit none
  integer, parameter :: dp = selected_real_kind(14,200)
  real (kind=dp) :: a = 0.123456789012345_dp
  real (kind=dp) :: b = 0.987654321098765_dp
  complex (kind=dp) :: c = ( 0.123456789012345_dp, 0.987654321098765_dp)

  print *, '      A = ', a
  print *, ' DBLE(A)= ', DBLE(a)
  print *, '      C = ', c
  print *, 'CONJG(C)= ', CONJG(c)
  print *, 'DBLE(c),AIMAG(C)  = ', DBLE(c), AIMAG(c)
  print *, 'CMPLX(A,B,kind=dp)= ', CMPLX( a, b, kind=dp)

end program test_intrinsic

Note that CMPLX and REAL without a cast yield single precision numbers on
ifc7 and g95 !!!


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2133 c92efa57-630b-4861-b058-cf58834340f0
2005-08-26 17:44:42 +00:00
dalcorso e3b06fa54d Merging of gradcorr.f90 and gradcorr_nc.f90.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2128 c92efa57-630b-4861-b058-cf58834340f0
2005-08-24 16:47:19 +00:00
ballabio 89c79b7302 compilation fix [Gerardo]
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2103 c92efa57-630b-4861-b058-cf58834340f0
2005-08-17 12:05:15 +00:00
degironc e4ed1c4bff unused PW/dndtau.f90 removed, makefile updated accordingly
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2096 c92efa57-630b-4861-b058-cf58834340f0
2005-08-09 16:58:38 +00:00
degironc ac7906dc29 - makefile update after yesterday changes
- variable "ishybrid" added to Modules/funct.f90 to manage hybrid functionals
- duplicated subroutines in upftools/nclib.f90 removed


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2095 c92efa57-630b-4861-b058-cf58834340f0
2005-08-09 07:34:23 +00:00
dalcorso 1ae80e2066 Angular momentum projection of eigenchannels generalized to the noncolinear
case.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2091 c92efa57-630b-4861-b058-cf58834340f0
2005-08-08 14:13:04 +00:00
giannozz e0d3021cc5 Updated Makefile with better dependencies (AK)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2089 c92efa57-630b-4861-b058-cf58834340f0
2005-08-03 17:00:07 +00:00
sbraccia a066a10dc8 Fixed dependencies from metagga.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2029 c92efa57-630b-4861-b058-cf58834340f0
2005-07-15 13:21:32 +00:00
giannozz e3bb8be1db New routine input_from_file called everywhere
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1948 c92efa57-630b-4861-b058-cf58834340f0
2005-06-09 07:35:50 +00:00
giannozz 1045299ff0 Makefiles updated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1929 c92efa57-630b-4861-b058-cf58834340f0
2005-06-02 20:06:41 +00:00
degironc a82b80548a Experimental version with some (incomplete and probably wrong) exact
exchange stuff.
These features can be obtained by compiling with -DEXX added to DFLAGS
in make.sys
***** DO NOT USE FOR ANY PRODUCTION RUN. *****

Stefano and Antonio


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1883 c92efa57-630b-4861-b058-cf58834340f0
2005-05-19 12:25:25 +00:00
ballabio 69c501c5f2 more end --> end subroutine [Gerardo]
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1859 c92efa57-630b-4861-b058-cf58834340f0
2005-05-12 15:19:08 +00:00
sbraccia 33156ffb70 Removed unnecessary dependencies and fixed a bug spotted by Axel Kohlmeyer.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1835 c92efa57-630b-4861-b058-cf58834340f0
2005-04-27 21:56:55 +00:00
giannozz def35656c0 Some cleanup (delta_e does only what is useful and where it is useful)
minor fixes here and there


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1815 c92efa57-630b-4861-b058-cf58834340f0
2005-04-19 14:18:34 +00:00
sbraccia 71ff0f5039 cinitcgg_nc removed. Fixed a couple of bugs in the cg diagonalisation.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1808 c92efa57-630b-4861-b058-cf58834340f0
2005-04-15 16:17:35 +00:00
sbraccia e29f425ea9 Added missing dependencies and removed those unnecessary. C.S.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1774 c92efa57-630b-4861-b058-cf58834340f0
2005-03-30 16:08:40 +00:00
dalcorso 6b91568ab1 V_of_rho and v_of_rho_nc merged.
Constraints on the magnetization moved to the routine add_bfield.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1766 c92efa57-630b-4861-b058-cf58834340f0
2005-03-29 09:05:42 +00:00
giannozz 50decb486f Added copyright notice where missing (please check)
Modified copyright notice to make it compatible with script
"check_license"


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1730 c92efa57-630b-4861-b058-cf58834340f0
2005-03-21 14:01:19 +00:00
cavazzon 908e1f314e - a dependency from module timestep.o was missing
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1713 c92efa57-630b-4861-b058-cf58834340f0
2005-03-15 15:48:01 +00:00
smogunov 59940c1826 Check on the transmission matrix unitarity is added (A.Smogunov)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1697 c92efa57-630b-4861-b058-cf58834340f0
2005-03-09 17:44:51 +00:00
ballabio 765729b8b3 merged make.sys and make.rules together
there was no reason they should be two different files
everybody must rerun configure
[Gerardo]


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1690 c92efa57-630b-4861-b058-cf58834340f0
2005-03-08 18:44:10 +00:00
dalcorso e5a1697c28 Bug fix: In some cases, the left and right crossing orbitals were not ordered
correctly.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1684 c92efa57-630b-4861-b058-cf58834340f0
2005-03-08 09:14:37 +00:00
dalcorso 968f26a7a4 Added a check on info to stop the program if the linear system is not
solved correctly.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1683 c92efa57-630b-4861-b058-cf58834340f0
2005-03-08 09:06:08 +00:00
smogunov ade6db7fba Total transmission is multiplied by 2 in the spin-unpolarized case (A.Smogunov)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1658 c92efa57-630b-4861-b058-cf58834340f0
2005-02-24 10:46:34 +00:00
smogunov 064d48a81d Modified the transmission code PWCOND so that now it works
with the separate files describing the leads and the scattering region (more accurate
description of the complex bands of the leads) as well as with the unique file
containing the scattering region + the leads. Added an option allowing to save on
a text file (machine independent) the data needed for PWCOND run.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1590 c92efa57-630b-4861-b058-cf58834340f0
2005-01-28 17:10:20 +00:00
giannozz f6c7dd48e0 Added optimized support for ALTIX machines - contributed by Martin Hilgeman
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1545 c92efa57-630b-4861-b058-cf58834340f0
2005-01-07 12:57:41 +00:00
dalcorso dadadae120 Merging of PWNC and PW. pw.x should now work for collinear,
noncolinear and spin-orbit cases. pwnc.x is no more needed and the
directory PWNC and all its files will be removed.
Step one: added to PW the noncolinear routines that have not been
merged, changes on all the Makefiles.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1537 c92efa57-630b-4861-b058-cf58834340f0
2005-01-05 16:26:09 +00:00
dalcorso 9fe7b284e9 electrons.f90 : charge_new is not checked with potential mixing.
make_pointlists.f90 : small change
local.f90 : Bug fix. PWCOND was not working in parallel machines with
            the recently introduced variables me_pool and root_pool.
            (contributed by A. Smogunov)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1535 c92efa57-630b-4861-b058-cf58834340f0
2005-01-05 14:11:48 +00:00
cavazzon e32ce9b074 - common xc and gga functionals subroutines for all code PW/CP/FPMD
- Few more functionals has been added to file more_functionals.f90
  since in PW BLYP/LSDA were not implemented .
  In the same file, temporary, are stored old CP90 subroutines
  for testing purpose ( in CP functionals were vectorized!! ).
  The small program PP/xctest.f90 can be used to make a comparative
  test between new and old routines, in case someone suspect a problem
  there.
- buon anno!


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1533 c92efa57-630b-4861-b058-cf58834340f0
2004-12-31 11:14:32 +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
degironc a46d223957 make.depend files are gererated by configure and are therefore always seen
as Modified by CVS. I think they should not be part of the CVS tree (SdG).


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1501 c92efa57-630b-4861-b058-cf58834340f0
2004-12-10 12:12:40 +00:00
cavazzon 89ab8f3e55 - FPMD files added to CPV directory
- FPMD directory is no more needed


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1479 c92efa57-630b-4861-b058-cf58834340f0
2004-11-25 14:51:47 +00:00
cavazzon 4d205dc09b - updated dependencies and Makefiles
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1475 c92efa57-630b-4861-b058-cf58834340f0
2004-11-24 16:13:26 +00:00
cavazzon 155f29dd8c - cpmplete experimental common CP/FPMD XML-like restart .
CP and FPMD are now linked to a common XML-like
  restart subroutine (see Module/cp_restart.f90 ).


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1469 c92efa57-630b-4861-b058-cf58834340f0
2004-11-24 10:56:23 +00:00
ballabio 196e5a093f use "sort -d" to obtain machine-independent results, update
dependencies [Gerardo]


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1462 c92efa57-630b-4861-b058-cf58834340f0
2004-11-22 14:38:36 +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
giannozz 1104a4b9b3 More small Makefile fixes
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1437 c92efa57-630b-4861-b058-cf58834340f0
2004-11-10 09:54:33 +00:00
ballabio 8a6525f4fe renamed .dependencies to make.depend, added them to CVS [Gerardo]
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1434 c92efa57-630b-4861-b058-cf58834340f0
2004-11-09 10:53:55 +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 b1f2db7398 Old parallel variables (such as me mypool) removed from PWCOND.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1423 c92efa57-630b-4861-b058-cf58834340f0
2004-11-04 13:08:25 +00:00
giannozz b2f1252ed0 Electron-phonon coefficient calculation should work also after a restart
(to be tested). Makefile and ChangeLog cleanup

Per favore scrivete qualcosa nel ChangeLog quando fate qualcosa
e verificate che tutto compile quando aggiungete roba - PG


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1413 c92efa57-630b-4861-b058-cf58834340f0
2004-11-01 17:48:04 +00:00
dalcorso 71296de3df Updated makefiles.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1411 c92efa57-630b-4861-b058-cf58834340f0
2004-11-01 10:52:41 +00:00
dalcorso 8cee8b3816 pwcond can now deal with spinor wavefunctions and with
fully relativistic PPs with spin-orbit. Initial
implementation (still quite experimental).
Several improvements to the pwcond code. Now much faster.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1407 c92efa57-630b-4861-b058-cf58834340f0
2004-11-01 09:26:40 +00:00
giannozz 1648ab6bf2 Patches from Axel Kohlmayer:
- iotk_scan in iotk_module had a mixed up 'intent' statement.
- sun ultra fire 3 compiler warnings
- cleanup in filename length (brought to 256)
- cleanup in include files


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1399 c92efa57-630b-4861-b058-cf58834340f0
2004-10-26 09:32:48 +00:00
dalcorso 1bbb967592 Added a routine to print the CPU times in pwcond.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1382 c92efa57-630b-4861-b058-cf58834340f0
2004-10-15 08:46:03 +00:00
ballabio 7bece4b4eb cleanup and some reorganization [Gerardo]
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1217 c92efa57-630b-4861-b058-cf58834340f0
2004-09-02 17:07:31 +00:00
giannozz d06f20ea1b Makefiles and examples updated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1169 c92efa57-630b-4861-b058-cf58834340f0
2004-08-25 09:54:04 +00:00
giannozz 9b2ddc028c More compilation problems
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1124 c92efa57-630b-4861-b058-cf58834340f0
2004-08-18 16:22:16 +00:00
dalcorso 620d5183b9 22 Jul 2004 Two bugs fixed. Now PWCOND is working as before.
Bugs introduced when 0:ndm => ndmx (23 Apr)
             and to correct another problem (31 May). (ADC)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1092 c92efa57-630b-4861-b058-cf58834340f0
2004-07-22 14:09:54 +00:00
giannozz d6ef9f5b6a NEB+NEC=bug (fixed)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1046 c92efa57-630b-4861-b058-cf58834340f0
2004-07-06 13:49:28 +00:00
giannozz 0f8be5da8e indeces => indices
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1045 c92efa57-630b-4861-b058-cf58834340f0
2004-07-05 21:09:07 +00:00
giannozz cf4129b4d2 Misc. cleanup; a few redundant routines moved to flib;
added example for phonon DOS; version number updated to 2.1 (PG)

Please start testing and debugging the next version, i.e., this one.
Note that reference data have to be updated for all examples.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1039 c92efa57-630b-4861-b058-cf58834340f0
2004-07-02 16:24:48 +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
giannozz c292271667 parallel_include added
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1005 c92efa57-630b-4861-b058-cf58834340f0
2004-06-25 15:33:42 +00:00
giannozz b4da6fadb8 Various T3E compilation problems
Any kind soul replacing the calls to zgefa and zgesl with lapack calls?


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@997 c92efa57-630b-4861-b058-cf58834340f0
2004-06-25 10:12:10 +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
giannozz ffcadc34c1 Modules becmod, rbecmod (one variable each) merged into a single module
(with two variables...) - More USPP merge


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@954 c92efa57-630b-4861-b058-cf58834340f0
2004-06-12 20:37:01 +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
dalcorso 6c60bd441a Bug fix: now PWCOND works also when nrx1 or nrx3 is different from nr1
or nr3 (Contributed by A. Smogunov).


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@929 c92efa57-630b-4861-b058-cf58834340f0
2004-05-31 14:01:05 +00:00
dalcorso 489795748e Cleanup of PWNC.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@928 c92efa57-630b-4861-b058-cf58834340f0
2004-05-31 12:54:27 +00:00
giannozz ee61e86345 iargc explicitely declared
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@926 c92efa57-630b-4861-b058-cf58834340f0
2004-05-28 10:29:52 +00:00
ballabio 18e476f2a6 again more "program -in input" [Gerardo]
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@924 c92efa57-630b-4861-b058-cf58834340f0
2004-05-27 17:29:01 +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
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
giannozz 097c76c675 Makefile and doc update
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@877 c92efa57-630b-4861-b058-cf58834340f0
2004-05-11 08:46:53 +00:00
dalcorso ff207d8c52 Added two routines for s.o.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@843 c92efa57-630b-4861-b058-cf58834340f0
2004-04-30 14:58:05 +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 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 c90e9062bd more 0:ndm => 1:ndm
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@816 c92efa57-630b-4861-b058-cf58834340f0
2004-04-24 11:58:24 +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 aaec53ef14 sorry...
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@812 c92efa57-630b-4861-b058-cf58834340f0
2004-04-22 14:41:54 +00:00
giannozz 118fd9975c funct.f90 and which_dft moved to Modules/functionals.f90
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@811 c92efa57-630b-4861-b058-cf58834340f0
2004-04-22 14:28:37 +00:00
giannozz 0c2d41eeec dylmr2.f90 moved to flib/
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@804 c92efa57-630b-4861-b058-cf58834340f0
2004-04-20 14:45:00 +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
giannozz 7a626aea22 Cleanup: dsum removed
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@762 c92efa57-630b-4861-b058-cf58834340f0
2004-04-02 13:22:33 +00:00
cavazzon 9b67f06d87 - date_and_tim moved to flib and used by all code,
- cleanup in clib
- tictac substituted by start_clock/stop_clock
- other cleanup


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@751 c92efa57-630b-4861-b058-cf58834340f0
2004-03-28 21:36:28 +00:00
cavazzon 31b6ad65d4 Subroutine PW/error.f90 moved to flib/ directory,
and linked by all codes.
Now in case of severe error, errore writes its message also to the file 'CRASH'
that is closed before aborting, this to avoid information loss in those
systems that do not flush open streams, when the code is stopped through
a call to MPI_ABORT


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@750 c92efa57-630b-4861-b058-cf58834340f0
2004-03-27 23:54:17 +00:00
sbraccia cbc1f05d29 All references to mpif.h and to the subroutine check.f90 removed by the PWscf and related codes.
If noone disagrees I'll remove the routine check.f90 and all the routines moved in para.f90.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@730 c92efa57-630b-4861-b058-cf58834340f0
2004-03-16 18:14:34 +00:00
giannozz 36f3a976b3 Makefile cleanuo. In upftools executables are *.x as everywhere.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@728 c92efa57-630b-4861-b058-cf58834340f0
2004-03-15 15:59:52 +00:00
sbraccia 2bcd9132c5 Problems in parallel version of PWNC and PWCOND fixed.
Other refernces to mpif.h removed.
In rdiaghg and cdiaghg #ifdef HAS_ZHEGVX removed (that routine is present in all lapack distributions).
wfcs extrapolation extended to NEB.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@727 c92efa57-630b-4861-b058-cf58834340f0
2004-03-15 15:25:20 +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 9254bf4340 More postprocessing is working at Gamma point.
A few ifort8 compilation glitches fixed. Manual updated.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@717 c92efa57-630b-4861-b058-cf58834340f0
2004-03-12 18:38:54 +00:00
sbraccia 492f080ce3 Calls to poolbcast replaced by calls to mp_bcast(*,MPI_COMM_ROW).
PW/broadcast.f90 PW/poolbcast.f90 removed.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@707 c92efa57-630b-4861-b058-cf58834340f0
2004-03-08 17:21:27 +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
ballabio be905d8d8e removed dependencies on ../PW/neb_variables.o [Gerardo]
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@690 c92efa57-630b-4861-b058-cf58834340f0
2004-03-01 17:13:37 +00:00
sbraccia b893fdb844 oops ...
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@679 c92efa57-630b-4861-b058-cf58834340f0
2004-02-26 15:24:50 +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 f1d5346afd oops..
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@554 c92efa57-630b-4861-b058-cf58834340f0
2004-02-03 12:20:11 +00:00
giannozz 8867d0c47e Makefiles updated after last changes
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@542 c92efa57-630b-4861-b058-cf58834340f0
2004-01-30 10:08:32 +00:00
dalcorso 25b998bb3e Again ionode_id correction.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@536 c92efa57-630b-4861-b058-cf58834340f0
2004-01-28 09:41:10 +00:00
dalcorso 1a4a57dc03 ionode_id defined from io_global. Fix for parallel case.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@532 c92efa57-630b-4861-b058-cf58834340f0
2004-01-27 16:22:57 +00:00
degironc f10d5b1866 LDA+U forces and stress are now much faster (yet not optimal)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@517 c92efa57-630b-4861-b058-cf58834340f0
2004-01-24 14:44:20 +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
giannozz 183a01bc5e Check on undefined variables, out-of-bound arrays
Several implicit none re-added, pwcom modules split


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@466 c92efa57-630b-4861-b058-cf58834340f0
2004-01-06 10:53:30 +00:00
sbraccia 2329f56973 D3, PP, PWCOND Makefiles adapted to the new PW routines.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@453 c92efa57-630b-4861-b058-cf58834340f0
2003-12-10 16:42:27 +00:00
ballabio ff247c327d Cleanup [Gerardo]
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@439 c92efa57-630b-4861-b058-cf58834340f0
2003-12-02 15:47:00 +00:00
cavazzon 9ce7263953 - bug (alpha compiler) reported by Sergey has been fixed
- module filnam in pwcom moved to io_files module
- module units in pwcom moved to io_file

From now on, all file names and their unit and attributes (i.e. reclen)
should be defined in Modules/io_files.f90


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@382 c92efa57-630b-4861-b058-cf58834340f0
2003-11-09 18:30:08 +00:00
cavazzon c5d8ff2f66 - unit 6 replaced by stdout in CPV
- ^M removed from pseudo files
- wavefunctions arrais moved to module
  wavefunctions_module, common to all codes
  this is required to reduce duplicated subroutine
- new lapack subroutine, called from PWCOND,
  added to lib/lapack.f lib/lapack_ibm.f


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@381 c92efa57-630b-4861-b058-cf58834340f0
2003-11-09 10:42:50 +00:00
sbraccia b89e097a59 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@366 c92efa57-630b-4861-b058-cf58834340f0
2003-11-04 11:30:32 +00:00
giannozz 57d733a8b0 Added SAVE to all modules
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@336 c92efa57-630b-4861-b058-cf58834340f0
2003-10-17 12:03:47 +00:00
giannozz 954c309df9 Makefile tweaking for sp3 with old compiler
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@332 c92efa57-630b-4861-b058-cf58834340f0
2003-10-15 14:34:37 +00:00
cavazzon 1d34b5c0a8 non collinear spin version of PW,
contributed by Adriano Mosca Conte,
added to the repository.
The non collinear code has required
a new module "wavefunctions" containing
"psic" and "evc", that no longer belong
to pwcom.

use: cvs update -d

there's a new example (example13), that is not
yet complete, I'm waiting for the appropriate
pseudopotential from Adriano


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@322 c92efa57-630b-4861-b058-cf58834340f0
2003-10-03 14:01:11 +00:00
dalcorso 9dfd6fd2bb Program for complex bands and conductance calculation.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@319 c92efa57-630b-4861-b058-cf58834340f0
2003-09-24 10:03:55 +00:00