Commit Graph

123 Commits

Author SHA1 Message Date
nn245 d85ca20874 Some cleanup to simplify machine-parsing (N. Nemec)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6580 c92efa57-630b-4861-b058-cf58834340f0
2010-03-31 10:04:40 +00:00
giannozz f0fc81c48e programs started with mp_global_start should end with mp_global_end. Not a
big deal: it avoids leaving allocated object at stop


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6451 c92efa57-630b-4861-b058-cf58834340f0
2010-02-25 20:03:07 +00:00
giannozz 53d957de73 Forgetten in testerday commit
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6404 c92efa57-630b-4861-b058-cf58834340f0
2010-02-13 09:35:33 +00:00
giannozz c22a10cc2f All makefiles simplified, make.depend updated, fixed an inconsistency in
XSpectra coming from recent changes


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6379 c92efa57-630b-4861-b058-cf58834340f0
2010-02-09 15:21:51 +00:00
obm c122ffed47 1) For TDDFPT purposes, subroutine newd does too many things at once, and accepts too few parameters.
I have splitted them and collected all in a module. Usual calls to newd is not changed, apart from necessity
to include the module, newq is the part I use for calculating response charge density.
2) Some gamma only additions to PH/dv_of_drho.f90 proved to be unnecessary, removing. I am still trying to
find an efficient/minimal impact way to cast this subroutine to use real instead of complex input.

As usual, I have tested before posting, however be sure to check before in your applications.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6322 c92efa57-630b-4861-b058-cf58834340f0
2010-01-27 18:50:07 +00:00
giannozz a57597c9c6 Fixed compilation problem in gipaw. Reduntant "trnvect" routine replaced
by "cryst_to_cart" (pelase check for unintended side effects)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6303 c92efa57-630b-4861-b058-cf58834340f0
2010-01-16 06:43:54 +00:00
giannozz 6c5888721f Cleanup of matrix crystal to cartesian transformations
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6295 c92efa57-630b-4861-b058-cf58834340f0
2010-01-15 07:36:54 +00:00
giannozz 655b713f25 More symmetry cleanup: symtns => symmatrix (works in cartesian coordinates,
supersedes GIPAW/sym_cart_tensor.f90) - GIPAW and VdW untested


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6288 c92efa57-630b-4861-b058-cf58834340f0
2010-01-11 22:48:10 +00:00
giannozz 940e2465f8 More symmetry cleanup: symz => symtensor in module symme, acting on
cartesian coordinates (no longer crystal axis). GIPAW untested.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6286 c92efa57-630b-4861-b058-cf58834340f0
2010-01-10 19:51:53 +00:00
giannozz 976fdf6f4e More minor cleanup (this time "harmless", not "harmful"!)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6123 c92efa57-630b-4861-b058-cf58834340f0
2009-11-09 18:53:05 +00:00
giannozz 90a501d84e variables ortho_para and use_task_group moved from control_flags to
mp_global, which seems to me a more appropriate place. Many changes
but little stuff. Hopefully harmful, but no guarantee: please check!


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6122 c92efa57-630b-4861-b058-cf58834340f0
2009-11-09 16:07:19 +00:00
giannozz fcb09dd617 More initialization cleanup: clock and stack initialization moved into
environment_start; a few useless wrappers removed


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6115 c92efa57-630b-4861-b058-cf58834340f0
2009-11-08 10:11:24 +00:00
giannozz 805b860d62 Merge of initial printout between CP and PW: CPV/environment.f90 moved
to Modules/environment.f90 and generalized to PW and other codes.
PW/startup.f90 is kept as a wraper for now. The initial message in CP
looks now like the one in PW (please check if it satisfactory). The
compilation date has disappeared from info printed by CP: was it useful?
Makefiles and make.depends updated. ld1 does not depend any longer upon
files in PW/ . Miscellaneous cleanup.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6111 c92efa57-630b-4861-b058-cf58834340f0
2009-11-06 17:28:19 +00:00
dalcorso ffc76c84c0 Small cleanup. add_vuspsi does not use psi.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6002 c92efa57-630b-4861-b058-cf58834340f0
2009-10-14 14:32:37 +00:00
degironc 190839d0c6 more becp simplifications.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5956 c92efa57-630b-4861-b058-cf58834340f0
2009-09-19 08:32:22 +00:00
degironc fb6d84f554 In an attempt to unifying the management of becp-like variables in various cases
(gamma_only, noncolin and generic k) a derived data-type bec_type is introduced
in becmod with component %r (for gamma real case), %nc (for non colinear case)
and %k (for the generic k case) .
The changes were tivial (rbecp -> becp%r, becp->becp%k, becp_nc->becp%nc) but
pervasive... I tried my best to test that everything is ok

stefano


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5937 c92efa57-630b-4861-b058-cf58834340f0
2009-09-16 15:26:25 +00:00
giannozz 122ea3c25f Missing reference to new module
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5919 c92efa57-630b-4861-b058-cf58834340f0
2009-09-10 07:01:30 +00:00
giannozz a13cd1f18b Misplaced routines re-placed, Makefiles updated:
Modules/vxccg.f90 split into atomic/vxcgc.f90 and flib/radial_gradients.f90
Modules/metagga.f90 moved to flib/metagga.f90


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5884 c92efa57-630b-4861-b058-cf58834340f0
2009-09-04 13:40:13 +00:00
giannozz 182874fc4e environment variable ESPRESSO_TMPDIR is caught by gipaw as well; I don't
see any reason not to have the same behavior as the other codes


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5875 c92efa57-630b-4861-b058-cf58834340f0
2009-08-31 18:56:25 +00:00
dceresoli 06cc4048f9 Nicer output. (D.C.)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5849 c92efa57-630b-4861-b058-cf58834340f0
2009-08-14 16:13:56 +00:00
dceresoli 278d48d9d5 Workaround: NMR calculations when ibrav=0 and celldm(1) is small.
Now it's perfect. (D.C.)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5848 c92efa57-630b-4861-b058-cf58834340f0
2009-08-14 16:10:25 +00:00
giannozz 54d31284f8 Removed SHMEM, Makefiloes and make.depend updated; lenght => length ; misc
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5814 c92efa57-630b-4861-b058-cf58834340f0
2009-08-04 14:34:32 +00:00
giannozz 244b5e412e Last remains of T3E support removed
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5812 c92efa57-630b-4861-b058-cf58834340f0
2009-08-03 15:48:16 +00:00
giannozz afec752184 End of this set of not-so-fundamental changes. Summary:
1) no more f_defs.h file to be included in fortran files
2) all CMPLX explicitly defined as CMPLX(...,KIND=dp)
3) blas/lapack names in lowercase (not all of them, actually)
4) documentation accordingly updated (plus unrelated changes to user_guide)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5805 c92efa57-630b-4861-b058-cf58834340f0
2009-08-03 09:19:02 +00:00
giannozz 5975a0d477 More of the same
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5803 c92efa57-630b-4861-b058-cf58834340f0
2009-08-03 08:15:09 +00:00
giannozz 134f077ee9 There were a few occurrences of "cmplx(a,b)" (lowercase, not preprocessed).
This is a very bad thing since the result is returned in single precision.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5783 c92efa57-630b-4861-b058-cf58834340f0
2009-07-31 16:37:18 +00:00
giannozz fdd5b2ca68 More references to removed file
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5743 c92efa57-630b-4861-b058-cf58834340f0
2009-07-23 12:18:16 +00:00
giannozz 86186c5c7d Small change to the installation mechanism: the list of locations for
modules is provided by the Makefile in each subdirectory, rather than
by make.sys. No big advantage but neater solution than before


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5737 c92efa57-630b-4861-b058-cf58834340f0
2009-07-22 17:18:42 +00:00
giannozz 04fda6d053 Makefiles updated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5608 c92efa57-630b-4861-b058-cf58834340f0
2009-06-15 08:28:43 +00:00
calandra 8979f43d4b Corrected bug in paw_gipaw. In the case that
the reconstruction data are not included in the pseudo
the program cores.

Christos Gougoussis and Matteo Calandra


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5578 c92efa57-630b-4861-b058-cf58834340f0
2009-06-05 08:04:28 +00:00
giannozz 61e0932bd9 Added wrapper module
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5509 c92efa57-630b-4861-b058-cf58834340f0
2009-04-05 08:35:49 +00:00
giannozz 3675de688a #ifdef __INTEL moved inside clib/stack.c .The C code used to be compiled
in all cases, causing problems in at least one obscure software configuration


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5482 c92efa57-630b-4861-b058-cf58834340f0
2009-03-25 15:11:41 +00:00
seitsonen 08ab4575f2 Removed the scaling of the pseudo wave functions after a discussion
with Matteo Calandra.

       apsi (Ari P Seitsonen, IMPMC/Paris)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5442 c92efa57-630b-4861-b058-cf58834340f0
2009-02-24 10:13:34 +00:00
giannozz 89d2fb1433 Compilation problem after last addition
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5406 c92efa57-630b-4861-b058-cf58834340f0
2009-02-13 12:11:14 +00:00
seitsonen 2130704503 Moved the initialisation of 'paw_recon[nsp]' into a new location where it
is more logical and easier to catch errors. Thanks to error report from
Christos Gougoussis and Matteo Calandra (IMPMC, Paris).

       apsi = Ari P Seitsonen


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5393 c92efa57-630b-4861-b058-cf58834340f0
2009-02-09 17:01:29 +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
seitsonen 25f9915a6d Replaced ALLOCATABLE's within derived types (not allowed by the standard
FORTRAN90) via POINTER's.

       Ari P Seitsonen


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5268 c92efa57-630b-4861-b058-cf58834340f0
2008-11-04 18:59:11 +00:00
giannozz cc889cdc67 Forgotten one occurrence of "startingwfc" (apparently unused)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5180 c92efa57-630b-4861-b058-cf58834340f0
2008-09-06 07:43:43 +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
giannozz 8cd13cb00b Common "symme" moved to a separate file; some cleanup. Symmetries of the
Bravais lattice are written (but not yet read nor used) to the xml file


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5125 c92efa57-630b-4861-b058-cf58834340f0
2008-08-22 15:53:34 +00:00
ceresoli e4ba8c9081 Unlimited stack also for GIPAW. (D.C.)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5112 c92efa57-630b-4861-b058-cf58834340f0
2008-08-06 22:25:55 +00:00
matteo.calandra 51d6d8b2af Eliminated debug writing forgotten in init_gipaw_1.f90
with the label 'ZZZ' probably inserted by Ari at some point
to debug the code.

Matteo Calandra


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5030 c92efa57-630b-4861-b058-cf58834340f0
2008-06-30 14:44:47 +00:00
giannozz 78b10d88dc Makefile updated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5023 c92efa57-630b-4861-b058-cf58834340f0
2008-06-26 20:09:44 +00:00
ceresoli 0589e6fbd6 10^3 factor missing in conversion. (D.C.)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4972 c92efa57-630b-4861-b058-cf58834340f0
2008-06-10 19:36:32 +00:00
seitsonen 72de161238 'paw_recon[]%paw_betar[]' was not initialised and caused 'NaN's with IBM
compilers. Corrected thanks to Christos Gougoussis (IMPMC, Paris).

       Ari P Seitsonen (IMPMC, Paris)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4965 c92efa57-630b-4861-b058-cf58834340f0
2008-06-04 13:33:18 +00:00
giannozz 0c5e11b12d Initial message made more explicit (after a suggestion by Guido F.).
make.depend updated


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4828 c92efa57-630b-4861-b058-cf58834340f0
2008-04-21 14:25:39 +00:00
cavazzon 9db23427ad - reduce replaced with mp_sum
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4821 c92efa57-630b-4861-b058-cf58834340f0
2008-04-18 16:53:54 +00:00
giannozz f72402340d xlf doesn't like the second comma in "write (unit, format), arguments"
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4782 c92efa57-630b-4861-b058-cf58834340f0
2008-04-06 20:37:21 +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
ceresoli a92708fa1f more on phsical constants... (D.C.)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4768 c92efa57-630b-4861-b058-cf58834340f0
2008-04-02 15:13:19 +00:00