Commit Graph

17 Commits

Author SHA1 Message Date
dalcorso 3c2396904b PAW extended to the noncollinear / spin-orbit case. (Still experimental)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6786 c92efa57-630b-4861-b058-cf58834340f0
2010-05-23 11:50:22 +00:00
paulatto 4819902840 Last minute fix: precision of radial integrals kicked up a notch,
except for s-only elements where it has been reduced. Examples updated
accordingly.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4904 c92efa57-630b-4861-b058-cf58834340f0
2008-05-13 12:20:15 +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
giannozz 0ced6054f9 More PGI weirdness from Andrea Ferretti - initialization of derived-type
variables should be avoided: it is not supported by all compilers.
Please test for unexpected side effects of removal of initial values!


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4695 c92efa57-630b-4861-b058-cf58834340f0
2008-02-13 15:52:51 +00:00
paulatto 69c94cadb8 Various bugfixes:
becsum is now saved on file, to allow restart with PAW; it still needs some testing.

As a consequence read/write of lda+U ns coeffs have been unified with becsum and rho.
Subroutines read_rho and write_rho from "io_rho_xml.f90" are now managed by an interface:
if param #1 is rho(nrxx,nspin) it will call the old subrt; if param #1 is of scf_type
it will save becsum and ns too in separate files (xml is not used, but can be added
easily now).

Fixed uninitialized variable in dynamics_module caused crashes in parallel MD.

Added error handling in paw part of read_upf.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4683 c92efa57-630b-4861-b058-cf58834340f0
2008-02-08 14:56:52 +00:00
paulatto ccc6a71a8f Bugfix: PAW should work in parallel with pools
Bugfix: PAW stress should work in parallel, even with pools
Bugfix: vc-bfgs should have a consistent convergence threshold (by SdG)
        (its existence should be reported in INPUT_PW too!)

Note: I had to move some initialization from allocate_nlpot to a new function
      pre_init that I've put in PW/setup.f90; it's called by setup and read_file
Note: the scf_mod part of PAW is now much better, becsum and rho%bec are NOT
      the same any more (rho%bec is mixed and recollected among pools,
      becsum is not).

LP


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4657 c92efa57-630b-4861-b058-cf58834340f0
2008-01-24 17:02:01 +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
paulatto c292822bde A few modification aiming at the solution of PAW convergence problems, not yet definitive.
Precision of dylmr2 increased a bit, maybe it's not necessary
mix_rho messed up a bit, included the possibility to normalize mixing matrix (disabled by default)
Added a currently unused function in paw_init to increase integration precision on the fly


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4498 c92efa57-630b-4861-b058-cf58834340f0
2007-12-04 14:20:36 +00:00
giannozz 9fe21891e2 gfortran hacks - not nice but not too invasive either
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4460 c92efa57-630b-4861-b058-cf58834340f0
2007-11-20 17:44:41 +00:00
paulatto 68bd232899 A lot of little improvements and little new features have been added to PAW
routines, actually results should be the same, and execution time should be
a lot shorter.
 * each atom type now integrated to a different max(l)
 * max(l) tuned in order to exclude the non local channel of pseudo-
   potential, if it's empty
 * several implementation optimization
 * all occurences of ALLOCATABLE changed to POINTER inside derived types
 * added original Bloechl shape for augmentation charge, at the moment it
   is not useful but if someone wants to implement analylitical correction
   to overlaps...
 * PAW now uses UPF format, the format is still being tested: it will
   probably change a bit in the near future
 * as a consequence radial grids are now pointed from upf type and can be
   updated directly in read_upf, upf_to_internal don't have to set the grid
   anymore (at the moment only for pseudos read from upf files)
 * added a non-destructive check for abs(zeta)>1. in vxc_t
LP


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4449 c92efa57-630b-4861-b058-cf58834340f0
2007-11-19 16:20:26 +00:00
giannozz 28b4e9ba19 Minor cleanup; max number of species brought back to 10
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4447 c92efa57-630b-4861-b058-cf58834340f0
2007-11-19 14:51:15 +00:00
giannozz be4afd197a startingwfc='atomic-safe' was ignored (the variable was 6 characters!)
Now it works (i.e. it does something, as opposed to doing nothing)
with a more descriptive and less promising name: startingwfc='atomic+random'
Some cleanup of Berry phase and electric fields stuff - shouldn't change
anything. More descriptive message about surviving static dimensions.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4439 c92efa57-630b-4861-b058-cf58834340f0
2007-11-16 17:35:48 +00:00
paulatto 4e96b9de36 All pseudopotential data required for PAW is now dynamically allocated inside the upf structure. Parameters ndmx and nbrx are no more ne
cessary for PAW, the latter has been moved to GIPAW/gipaw_module.f90, as it is only used there.

Added a little trick to free some memory after the initialization is completed (only for parallel .and. PAW, but similar method could be
 used for US too; is it worth the hassle?)

Minor changes in paw_symmetrize (added parallel) and paw_newd.

LP


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4431 c92efa57-630b-4861-b058-cf58834340f0
2007-11-13 15:15:28 +00:00
paulatto cf203a3a31 Step many of many: removed a log time unused array, there are still a few static arrays but they are much less memory greedy then the on
es I have removed today.

read_paw has been cleaned up a lot. The various option to cut-off atomic functions has been removed as current one works well enough.

make.depend updated again for some reason.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4427 c92efa57-630b-4861-b058-cf58834340f0
2007-11-12 17:31:27 +00:00
paulatto ba104ee27e Step 2 of many: rho core and local potential moved to upf.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4426 c92efa57-630b-4861-b058-cf58834340f0
2007-11-12 17:19:46 +00:00
paulatto 513379419b Step 1 of many: paw augmentation functions moved to upf structure
(I apologise for the many check-ins I'll do, but I have to keep track of changes.)
LP


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4424 c92efa57-630b-4861-b058-cf58834340f0
2007-11-12 16:20:55 +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