Commit Graph

270 Commits

Author SHA1 Message Date
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 a2d1c4dc84 Info on k-point grid is needed by electron-phonon calculation with
Malgorzata's algorithm


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2751 c92efa57-630b-4861-b058-cf58834340f0
2006-01-31 21:49:33 +00:00
giannozz 50ae06d1d7 Restart with new format works (sort of: charge density and wavefunctions
are not yet read from xml file) in parallel execution


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2745 c92efa57-630b-4861-b058-cf58834340f0
2006-01-30 16:17:30 +00:00
giannozz 44aa98ae4d Masses read from input by ph.x were overwritten by masses read from data file
(new format). The latter are now used only if masses are not read from input.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2737 c92efa57-630b-4861-b058-cf58834340f0
2006-01-27 14:21:31 +00:00
sbraccia a5eeeee8c5 All functions used to generate random number collected in a single module. Added two routines
random numbers from a normal distribution.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2725 c92efa57-630b-4861-b058-cf58834340f0
2006-01-25 04:24:49 +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 80ad81b265 1) phonon: workaround for serious bug in parallel execution
(waiting for a better solution)
2) time_max => max_second : bad name but the same everywhere


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2699 c92efa57-630b-4861-b058-cf58834340f0
2006-01-13 15:38:56 +00:00
giannozz c876c71335 Electron-phonon calculation with new algorithm works in parallel
(but not yet with pools). New versions of q2r and matdyn added.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2690 c92efa57-630b-4861-b058-cf58834340f0
2006-01-05 19:02:22 +00:00
dalcorso e3e9e215ca Compilation problems.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2682 c92efa57-630b-4861-b058-cf58834340f0
2006-01-03 16:05:59 +00:00
giannozz 68f1660a48 Electron-phonon calculation using Malgorzata's technique
Still preliminary and undocumented


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2654 c92efa57-630b-4861-b058-cf58834340f0
2005-12-28 10:55:17 +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
giannozz 54dd9521fb Cleanup
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2627 c92efa57-630b-4861-b058-cf58834340f0
2005-12-21 11:20:28 +00:00
sbraccia 27b407c2a3 Various fixes to the xml data-file (thanks to A.Ferretti).
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2583 c92efa57-630b-4861-b058-cf58834340f0
2005-12-13 14:45:35 +00:00
giannozz caf132c972 calculation of derivatives of exchange-correlation functional moved to
Modules/functionals.f90 and flib/functionals.f90 and lsda_functionals.f90
Duplicated routine dmxc.f90 removed. Atomic code does not depend any
longer on PH/.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2551 c92efa57-630b-4861-b058-cf58834340f0
2005-12-04 16:36:03 +00:00
degironc e28966f45a Fixed problem with ibrav=0 in the chain ph.x -> q2r.x -> matdyn.x
If ibrav=0 ph.x write also  at(3,3) and symm_type and so do q2.x and matdyn.x
It could actually be simpler to always write/read at(3,3) and symm_type and
forget about ibrav and celldm ...

latgen modified so that it deals properly with ibrav=0 case.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2543 c92efa57-630b-4861-b058-cf58834340f0
2005-12-02 14:51:57 +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
giannozz 00410fefe5 Initialize t_rev to zero, just in case
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2470 c92efa57-630b-4861-b058-cf58834340f0
2005-11-14 08:48:45 +00:00
giannozz 2c5e0edb0f Incorrect call to 'sgama' after last changes
When you change the calling sequence of a routine,
please change it in all places where it is called!


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2460 c92efa57-630b-4861-b058-cf58834340f0
2005-11-11 08:22:04 +00:00
degironc 91433749f9 More small changes to funct module, some clean up of the EXX part.
stefano


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2420 c92efa57-630b-4861-b058-cf58834340f0
2005-11-04 11:47:42 +00:00
degironc c209f8233b Modules/functionals.f90 modified.
The idea is that module funct contains data defining the DFT functional in use
and a number of functions and subroutines to manage them.
Data are PRIVATE and are (shuold be) accessed and set only by function calls.
Basic drivers to compute XC quantities are also included.

It should be the main place where definitions for and calculation of xc
functionals are centralized.

In CPV printout [A.U.] replaced by [HARTREE A.U.] in many places.

stefano


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2411 c92efa57-630b-4861-b058-cf58834340f0
2005-11-02 15:42:06 +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 95b19a6b48 Replace two pointers that ifort doesn't seem to like with allocatable
arrays with the "target" option


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2249 c92efa57-630b-4861-b058-cf58834340f0
2005-10-03 16:39:15 +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
dalcorso fc5536622d Bug fix: The recent changes to the conduction band projection
was not working with US-PP.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2218 c92efa57-630b-4861-b058-cf58834340f0
2005-09-24 14:48:22 +00:00
giannozz 10efda8391 Do not stop if Fermi energy cannot be calculated in a non scf run:
just issue a warning and continue
Minor output changes


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2177 c92efa57-630b-4861-b058-cf58834340f0
2005-09-14 13:54:24 +00:00
giannozz 1e42e05f69 error (..., -1) => infomsg
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2142 c92efa57-630b-4861-b058-cf58834340f0
2005-08-30 16:27:58 +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
giannozz 3ecea7dd3c Missing dependency added
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2130 c92efa57-630b-4861-b058-cf58834340f0
2005-08-25 13:35:04 +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
giannozz 60bc521341 Makefiles updated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2126 c92efa57-630b-4861-b058-cf58834340f0
2005-08-24 14:39:52 +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
ballabio 091085a057 renamed module efield -> efield_mod to solve a conflict [Gerardo]
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2102 c92efa57-630b-4861-b058-cf58834340f0
2005-08-17 11:53:09 +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
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
giannozz 17c3a0ae3d q_points: unit iudyn was undefined on entry
el-ph: reduced number of (in)significant figures printed


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2067 c92efa57-630b-4861-b058-cf58834340f0
2005-08-01 09:23:50 +00:00
cavazzon 8803543c2b - variable iudyn was associated (with use) and declared in the
same subroutine


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2041 c92efa57-630b-4861-b058-cf58834340f0
2005-07-25 13:08:49 +00:00
giannozz 0a6cf4552d Updated documentation for simplified interatomic force constants calculation
A file containing information on the q-point grid is written by ph.x
and read by q2r.x, thus making the process less clumsy
The phonon code does not restart automatically any longer unless instructed
to do so by setting input variable "recover"
Misc cleanup


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2039 c92efa57-630b-4861-b058-cf58834340f0
2005-07-20 14:57:21 +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
sbraccia 8b5e3af0de Removed unnecessary supercell file. NEB does not use pbc.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2013 c92efa57-630b-4861-b058-cf58834340f0
2005-07-11 11:10:11 +00:00
cavazzon b5fa8ee14b - cell_base, added support for cell input units, ex: CELL_PARAMETERS (angstrom)
- core charge, same module between CPV and FPMD
- Makefile: added dependency between "mods" and "libiotk"
- Makefile: fix for dependencies in PH and Gamma when __NEWPUNCH is defined


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1995 c92efa57-630b-4861-b058-cf58834340f0
2005-07-04 10:34:44 +00:00
degironc 285119fa34 seqopn.f90 and diropn.f90 modified in such a way that the name of
all files open by seqopn.f90 and diropn.f90 in the TMP_DIR have the
general form "prefix"."extension" where extension is the only part of
the filename passed as an argument. This should avoid conflicts between
different jobs running at the same time and sharing the same TMP_DIR
(provided they have different prefixes ...)

All examples (from 1 to 26) give the same output as before on my pc.
Please let me know if you notice unexpected behaviours.

stefano

PS: example26 apparently does nothing (even giving the command run_example 7)..
As it uses cp.x which does not use seqopn/diropn routines this behaviour
cannot be due to the present changes.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1963 c92efa57-630b-4861-b058-cf58834340f0
2005-06-17 13:27:38 +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
sbraccia 8d44a2a8fd The new subroutine flush_unit() is used everywhere. C.S.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1904 c92efa57-630b-4861-b058-cf58834340f0
2005-05-25 02:58:35 +00:00
giannozz fc903c5a57 No reason to have different length and naming convention for files
used (or not used) by mixing


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1885 c92efa57-630b-4861-b058-cf58834340f0
2005-05-19 21:17:42 +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
giannozz 7b1936bcd4 Minor changes to printout of Raman coeffcients
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1876 c92efa57-630b-4861-b058-cf58834340f0
2005-05-18 17:47:38 +00:00