Commit Graph

277 Commits

Author SHA1 Message Date
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
paulatto 189db5755f A few more verbose error messages and a bit of cleanup.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4656 c92efa57-630b-4861-b058-cf58834340f0
2008-01-24 16:55:47 +00:00
cavazzon 71ed8c1c24 - wrong extra token "," present in a write statement
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4645 c92efa57-630b-4861-b058-cf58834340f0
2008-01-23 17:17:23 +00:00
paulatto 7cfe0d4544 fix
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4640 c92efa57-630b-4861-b058-cf58834340f0
2008-01-23 14:28:44 +00:00
degironc 8feac19aff A new option (lloc=-2) is introduced in order to define a local potential
(expanded in l=0 Bessel functions) that is smooth AND satisfies the
condition V''(0)=0 .
According to TM this condition makes the pseudo optimally smooth and
helps making it transferable...
In any case the resulting potential seams to be less deep than the ones
obtained with lloc=-1 which should help avoiding ghost states.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4639 c92efa57-630b-4861-b058-cf58834340f0
2008-01-22 22:40:27 +00:00
paulatto 1ff7ac8dd9 Error messages a bit more verbose.
LP


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4626 c92efa57-630b-4861-b058-cf58834340f0
2008-01-15 15:44:04 +00:00
paulatto 617aec1ad5 default which_augfun changed from AE to BESSEL for PAW, as using AE would produce
unusable dataset (if not using lnc2paw). Documentation changed accordingly.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4622 c92efa57-630b-4861-b058-cf58834340f0
2008-01-14 08:46:26 +00:00
degironc f6e10ea61b some changes in atomic code.
- compute_phius: if (verbosity=="high") some additional info is written.

- find_qi: improved solution search close to asintotes. It should be able
      to find the lowest solutions even for large logarithmic derivatives.

- ld1_readin: 'US requires at least two energies per channel' is now a
      rather visible WARNING rather than an error in order to allow to
      play with single projectors (according to Bloechl it may be useful
      to locate the position where to put the second projector).

- set_psi_in: normalization of scattering states changed in order to avoid
      very large wfc when a node happens to be close to the matching radius.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4621 c92efa57-630b-4861-b058-cf58834340f0
2008-01-13 21:55:08 +00:00
cavazzon b739a98bae - removing modules: pfft pffts para_const
they contains only copies of variables contained in
  fft data structures: dfftp dffts


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4605 c92efa57-630b-4861-b058-cf58834340f0
2008-01-05 19:27:35 +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
dalcorso 2ccc81ee03 Missing routine in previous commit.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4544 c92efa57-630b-4861-b058-cf58834340f0
2007-12-20 15:46:00 +00:00
dalcorso fbb6ad1f96 PAW Q pseudization could not work in the US-PP case. Substituted with a
different pseudization in the US case (still experimental).


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4543 c92efa57-630b-4861-b058-cf58834340f0
2007-12-20 15:36:19 +00:00
degironc 5bf570513b bfgs minimization has been added to the vc-relax calculation.
Scaled (crystal) coordinates (+ cell if needed) are used in the relazation.
In the normal case it shouls behave exactly as usual.
CVSexample has been updated adding an example for this feature...
Once reasonably tested and robust it may be better to move these cases in
exanple03 that contains other relaxation examples.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4536 c92efa57-630b-4861-b058-cf58834340f0
2007-12-19 14:41:24 +00:00
dalcorso 8fa9da661f Bug fix. In unfortunate cases the routine used a non initialized variable.
(Thanks to L. Paulatto).


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4535 c92efa57-630b-4861-b058-cf58834340f0
2007-12-19 14:07:33 +00:00
paulatto 3f4cc01569 Trying to simplify paw self-consistency I have put becsum into the scf type, this requires a bit of a hack.
Symmetrization of becsum simplified a bit introducing mapping to "triangular" composite index.
Read upf now uses default (*) format for paw part.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4529 c92efa57-630b-4861-b058-cf58834340f0
2007-12-14 14:22:10 +00:00
dalcorso 248eca4ff1 Cleanup.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4525 c92efa57-630b-4861-b058-cf58834340f0
2007-12-14 08:28:54 +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 c26e5c0666 Small changes just to avoid multiple output with several processors.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4504 c92efa57-630b-4861-b058-cf58834340f0
2007-12-05 16:16:59 +00:00
dalcorso 84f14633a7 Improvements on yesterday commit.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4474 c92efa57-630b-4861-b058-cf58834340f0
2007-11-23 17:35:15 +00:00
dalcorso 83fd204abb The atomic code can now test the PAW.UPF pseudopotentials.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4466 c92efa57-630b-4861-b058-cf58834340f0
2007-11-22 11:14:31 +00:00