Commit Graph

296 Commits

Author SHA1 Message Date
dalcorso fec02690a1 Cleanup.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5543 c92efa57-630b-4861-b058-cf58834340f0
2009-05-01 13:05:52 +00:00
dalcorso 493b6d8894 In the paw case Q pseudization is done elsewhere. No need to make it here.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5542 c92efa57-630b-4861-b058-cf58834340f0
2009-05-01 13:01:32 +00:00
dalcorso 4e4f8bd51d Output shortened.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5541 c92efa57-630b-4861-b058-cf58834340f0
2009-05-01 12:53:06 +00:00
dalcorso e36788bbbe Use rmatch_augfun also in the US case.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5540 c92efa57-630b-4861-b058-cf58834340f0
2009-05-01 12:44:37 +00:00
ccavazzoni 74b4c93220 - outdated dependencies
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5506 c92efa57-630b-4861-b058-cf58834340f0
2009-04-05 08:02:28 +00:00
dalcorso a9ca72c570 Added a check to avoid the possibility of an infinite loop.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5499 c92efa57-630b-4861-b058-cf58834340f0
2009-04-03 09:28:54 +00:00
paulatto 8140bf6589 UPFv2.0.1 introduced with a check for bug reported by ADC on 2009/03/16
(In the new UPF-PP format some components of qrad were not written in the
UPF file) in order to force re-generation of bad pseudos.
LP


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5495 c92efa57-630b-4861-b058-cf58834340f0
2009-04-02 16:11:13 +00:00
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 8fb44cb805 Small bug fix: problem with format.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5446 c92efa57-630b-4861-b058-cf58834340f0
2009-02-25 16:30:04 +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 8cab67540f First attempt towards an easier to plot format for atomic pseudo-wavefunctions.
Not sure it works in all cases, though. The format of file_wavefunctionsps
is basically unchanged, but all-electron wavefunctions are added in the
right side of the file, with the same ordering and lables


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5386 c92efa57-630b-4861-b058-cf58834340f0
2009-02-06 18:17:17 +00:00
giannozz 5367f42e42 More explicit error message
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5384 c92efa57-630b-4861-b058-cf58834340f0
2009-02-04 20:57:48 +00:00
giannozz 3b55e4d268 Uninitialized variables related to 1/r pseudopotentials
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5363 c92efa57-630b-4861-b058-cf58834340f0
2009-02-01 14:27:53 +00:00
giannozz 6f52984cd2 Only one random number generator is used everywhere ("randy", which
seems to be the most uniform). Beware all kinds of unexpected side
effects.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5272 c92efa57-630b-4861-b058-cf58834340f0
2008-11-05 20:25:20 +00:00
paulatto 2a83455012 Little voodoo change in paw_onecenter to prevent extremely uncommond but
strange problems with more recent versions of openmpi libraries.

Removed unnecessary debug prints from gener_pseudo

LP


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5061 c92efa57-630b-4861-b058-cf58834340f0
2008-07-22 12:41:30 +00:00
paulatto e5419c311d Removed unnecessary call (augmentation for PAW is computed later).
LP


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5028 c92efa57-630b-4861-b058-cf58834340f0
2008-06-28 13:21:02 +00:00
seitsonen 9239bace4f Changed the format of the version of UPF from 'a3' (was: "0.1") to 'a1',
in reality integer, because this is the format that some one changed for
reading in: less flexible, but easier. This should fix the "incompatibility"
that some people have experienced when performing calculations with GIPAW;
does not affect other calculations!

       apsi = Ari P Seitsonen


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4991 c92efa57-630b-4861-b058-cf58834340f0
2008-06-17 09:00:53 +00:00
degironc aa21287088 New feature, density counter-charge correction (I.Dabo+N.marzari), added.
It allows to treat a molecular system in open boundary conditions.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4973 c92efa57-630b-4861-b058-cf58834340f0
2008-06-11 10:47:40 +00:00
sclauzer 011b4565d1 Added subroutine compute_relpert in atomic/ in order to compute
relativistic corrections to AE eigenvalues in perturbation theory.
The option is activated with the flag relpert and is available
only for non-relativistic, spin-unpolarized AE calculations.
Minor modifications to scf and all_electron were needed to access SIC potentials,
that now are global and allocated in all_electron (no more in scf).
G. Sclauzero


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4957 c92efa57-630b-4861-b058-cf58834340f0
2008-05-30 09:43:42 +00:00
dalcorso 5ec1b8367e Routine write_fake_pseudo extracted from ld1.f90 and named write_ae_pseudo.
Initialized some uninitialized variables that are written in the UPF file.
A bug fix: the list of the wavefunctions was not written correctly by
pseudo_header.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4941 c92efa57-630b-4861-b058-cf58834340f0
2008-05-17 10:36:59 +00:00
degironc 680300adb0 calculation on OEP was problematic for one-electron case
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4902 c92efa57-630b-4861-b058-cf58834340f0
2008-05-09 15:55:01 +00:00
giannozz dbc8e7ebe8 make.depend updated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4858 c92efa57-630b-4861-b058-cf58834340f0
2008-05-02 13:14:09 +00:00
dalcorso 05fcf885e4 Misleading output corrected.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4854 c92efa57-630b-4861-b058-cf58834340f0
2008-04-30 14:02:57 +00:00
dalcorso 12b9b8d5b6 Bug fix: after the recent commits the atomic code was unable to make the
test of a paw pseudopotential.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4849 c92efa57-630b-4861-b058-cf58834340f0
2008-04-29 13:36:38 +00:00
cavazzon 1ddc5f0539 - pseudo_type/grid nullification still was giving problem (gfortran).
- Logic now changed, variables are nullified as soon as they are
  instantiated. radial_grid rgrid made allocatable
- all tests passed with ifort. xlf, pgi, gfortran will follow


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4838 c92efa57-630b-4861-b058-cf58834340f0
2008-04-27 08:58:55 +00:00
paulatto cf72423040 nullify_pseudo_upf: modified according to advice from Nathalie, plus added a few missing "nullify"
fixed a few overflows in atomic (atomic/atomic_paw.f90, atomic/partial_wave_expansion.f90)
fixed a few wrong format specifiers (Modules/write_upf_v2.f90)
try to make error messages from self-consistency in atomic easier to interpret and fix
    (atomic/ascheqps.f90)
added a mechanism to save the configuration used to generate it in the INFO section of
a pseudopotential.

LP


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4836 c92efa57-630b-4861-b058-cf58834340f0
2008-04-24 15:26:26 +00:00
paulatto 3f53529e78 bugfix, as radial grids are now only allocated up to mesh.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4820 c92efa57-630b-4861-b058-cf58834340f0
2008-04-18 12:36:15 +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
paulatto 651f6ec9c3 On popular request: added the possibility to save all-electron and pseudo
wavefunctions in the UPF (only v2) file. Pseudopotential and documentation
changed accordingly.
LP


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4811 c92efa57-630b-4861-b058-cf58834340f0
2008-04-16 10:12:11 +00:00
paulatto bdf4c53d8c bugfixes
LP


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4803 c92efa57-630b-4861-b058-cf58834340f0
2008-04-15 13:45:10 +00:00
giannozz d35b8c9871 Minor compilation problems: 1) do loops with real bounds are dangerous and
some compilers complain 2) optimize_ohi.o non existent


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4797 c92efa57-630b-4861-b058-cf58834340f0
2008-04-13 14:35:43 +00:00
paulatto 9e54c7448f Some more bugfixes and updates in UPF file formats, now it should be almost
finished.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4787 c92efa57-630b-4861-b058-cf58834340f0
2008-04-09 14:51:58 +00:00
paulatto ec93b289d9 Removed missing object compute_chi_num
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4775 c92efa57-630b-4861-b058-cf58834340f0
2008-04-04 16:22:57 +00:00
giannozz f577757c85 Changes by Andrea Ferretti to make the qexml format more rational:
version number added to the file, so that we have a way to deal with
incompatible changes in the future; miscellaneous tags put into a
CONTROL files; field IONS made uniform with the rest of the file;
rationalization of the names of tag STARTING_MAG (now MAGNETIZATION_INIT),
uniform tag structure (as for IONS above). Some of these changes are
incompatible with the previous format, but it will still possible to
read files from previous versions, though. Only third-party software
reading the qexml format may be affected, but it is unlikely that there
is any (in addition to those by AF)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4774 c92efa57-630b-4861-b058-cf58834340f0
2008-04-04 14:34:52 +00:00
paulatto 49e4c0ad23 More bugfixes and pseudos updated accordingly. Paw tests updated again to reduce time a bit..
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4773 c92efa57-630b-4861-b058-cf58834340f0
2008-04-04 14:01:35 +00:00
paulatto 3fd2de8d61 Bugfixes, removed unnecessary pseudo-upf_meta_info type, paw tests and datasets updated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4771 c92efa57-630b-4861-b058-cf58834340f0
2008-04-04 09:12:30 +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
seitsonen b8985b69d4 Added the possibility for obtaining the information for (GI)PAW
reconstruction. Most significant changes:
 - Added variable 'lgipaw_reconstruction' (also in namelist 'inputp')
 - Made 'lpaw' optional in 'write_pseudo_paw()' (in 'write_upf.f90')
 - New file/routine 'calculate_gipaw_orbitals()'

       apsi


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4750 c92efa57-630b-4861-b058-cf58834340f0
2008-03-19 15:44:19 +00:00
seitsonen eebd2ea745 Introduced new variables to store
- the reference energies for the test configurations (enltsc[,])
  - variables to store data for the (GI)PAW reconstruction (wfc_??_recon[,])

       apsi


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4746 c92efa57-630b-4861-b058-cf58834340f0
2008-03-18 14:24:55 +00:00
giannozz 4dc4266f0b Misc small changes for Alpha compilation warning, by G. Cantele
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4731 c92efa57-630b-4861-b058-cf58834340f0
2008-03-06 20:02:06 +00:00
paulatto 5fd01399ea Added the possibility to pseudize real augmentation augmentation functions for
PAW (which_augfun='PSQ'): it reuses the routine pseudo_q writen by ADC for the
ultrasoft case.

LP


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4724 c92efa57-630b-4861-b058-cf58834340f0
2008-02-23 14:26:05 +00:00
dalcorso 37e3657464 Bug fix: the previous bug fix to this routine produced an instability in
some cases.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4722 c92efa57-630b-4861-b058-cf58834340f0
2008-02-20 15:21:07 +00:00
paulatto 40ab3e104e Minor fix on previous commit...
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4692 c92efa57-630b-4861-b058-cf58834340f0
2008-02-12 10:57:10 +00:00
paulatto 3786c0ec89 BUGFIX: fixed some possible crash/stop due to tests of local channel.
LP


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4691 c92efa57-630b-4861-b058-cf58834340f0
2008-02-12 10:24:16 +00:00
giannozz c8517bff3e Dependencies updated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4688 c92efa57-630b-4861-b058-cf58834340f0
2008-02-11 11:40:59 +00:00
degironc 71bdb977ac better estimate of the range of beta functions
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4672 c92efa57-630b-4861-b058-cf58834340f0
2008-02-02 09:26:37 +00:00
degironc 1b67fc9534 calculate also the Fourier expansion of betas, NC and US partial waves
and the convergence of their norm as a function of the maximum q in the
expansion


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4671 c92efa57-630b-4861-b058-cf58834340f0
2008-02-02 07:44:17 +00:00
degironc f8783a2a34 added a routine that calcuate a quality index for partial wave expansion
of radial solutions at fixed energies in terms of partial waves.
It is computed on the same energy range as the logarithmic derivatives and
indicate how well the psuedo wfc are given by a linear combinationo of partial waves as assumed by the PAW formalism.

A more reasonable (less unreasonable) estimate of the suggested charge density
cutoff for augmentation charges in the paw case is given


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4670 c92efa57-630b-4861-b058-cf58834340f0
2008-02-02 07:25:52 +00:00
paulatto 6d1f959847 Modified unsafe versione intended for testing only slipped in CVS.
Restored to previous versione, sorry for the inconvenience.

LP


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4665 c92efa57-630b-4861-b058-cf58834340f0
2008-01-29 15:22:44 +00:00
dalcorso 5a17c94f8c Now the atomic code stops if the solution of the PS-KS equation fails
during the generation-test.
Corrected the bug noticed by Lazaro Calderin.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4664 c92efa57-630b-4861-b058-cf58834340f0
2008-01-29 14:55:30 +00:00