Commit Graph

106 Commits

Author SHA1 Message Date
giannozz f3feb6aef2 - no beta functions in PP generation? no problem !
- the present algorithm for locating zeros in find_coeff i) was absurd,
  ii) under some circumstances it could take an inordinate amount of time.
  While i) still holds, ii) should be fixed now


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2616 c92efa57-630b-4861-b058-cf58834340f0
2005-12-19 17:51:55 +00:00
moscac b75137e8b9 New way to perform Newton algorithm in ascheqps routine. It seams to
to be more efficient in crytical cases. I've tried it on pseudo-gen
examples and it works. Let me know if it creates problems in other
cases.
Adriano


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2594 c92efa57-630b-4861-b058-cf58834340f0
2005-12-15 13:34:25 +00:00
giannozz 474f169b0b Allow noninteger valence charge for half core-hole PP generation
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2593 c92efa57-630b-4861-b058-cf58834340f0
2005-12-15 10:31:59 +00:00
giannozz f5890d2f7d Useless write of pseudowavefunctions removed
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2592 c92efa57-630b-4861-b058-cf58834340f0
2005-12-14 13:31:18 +00:00
dalcorso 3b61e12ad0 Small bug fix in the guess of core radii.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2590 c92efa57-630b-4861-b058-cf58834340f0
2005-12-14 09:40:17 +00:00
degironc 334b2b347e fixing a bug in OEP atomic calculation introduced on 2005-11-05 version
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2588 c92efa57-630b-4861-b058-cf58834340f0
2005-12-14 08:20:09 +00:00
giannozz b9100e61d4 More atomic code cleanup
- el_config.f90 now contains all routines reading electronic configuration
- occ_spin.f90 contains all routines that assign spin or j top states
- more explicit message
- issue warning but do not stop if generating an USPP with zero augmentation
  charge


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2586 c92efa57-630b-4861-b058-cf58834340f0
2005-12-13 17:58:01 +00:00
giannozz fb8ed3241c - it is possible to specify j=l-1/2 and j=l+1/2 states for relativistic
calculations (rel=2) using "config" to pass the electronic configuratio
- more checks on what is read in input
- some cleanup


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2584 c92efa57-630b-4861-b058-cf58834340f0
2005-12-13 16:38:50 +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 b97c9b3fd2 Calculation of the frequency dependent atomic polarizability and van der Waals
C6 coefficients using Thomas-Fermi + vonWeizsaeker approximation for the
kinetic energy functional is implemented in atomic code.
A directory with some examples is added in atomic_doc
Contributed by Huy-Viet Nguyen (SISSA).


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2510 c92efa57-630b-4861-b058-cf58834340f0
2005-11-24 16:11:56 +00:00
giannozz 8be866773c alfa_core was not initialized
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2503 c92efa57-630b-4861-b058-cf58834340f0
2005-11-22 13:33:41 +00:00
kkudin d3dc252bde Added missing stuff when linking on IBM with XLF
Kostya


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2442 c92efa57-630b-4861-b058-cf58834340f0
2005-11-08 17:54:28 +00:00
giannozz 06d9eed0a1 Do not print unnecessary warning
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2422 c92efa57-630b-4861-b058-cf58834340f0
2005-11-04 17:22:33 +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 e34b021712 The generation of the local potential is now independent from the order of jjs.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2393 c92efa57-630b-4861-b058-cf58834340f0
2005-10-31 08:19:54 +00:00
giannozz 0ef3031e35 Documentation updated, more exoplicit messages
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2389 c92efa57-630b-4861-b058-cf58834340f0
2005-10-28 15:30:10 +00:00
giannozz ed2a46b701 Yet another obscure error message made less obscure
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2388 c92efa57-630b-4861-b058-cf58834340f0
2005-10-27 09:38:33 +00:00
giannozz a6e8c9bc12 Sloppy test could give bogus error
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2365 c92efa57-630b-4861-b058-cf58834340f0
2005-10-25 16:40:33 +00:00
giannozz 5a2972746f Oops...
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2362 c92efa57-630b-4861-b058-cf58834340f0
2005-10-25 13:34:49 +00:00
giannozz 40a040acef Write version number instead of (bogus) date
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2361 c92efa57-630b-4861-b058-cf58834340f0
2005-10-25 13:29:59 +00:00
fratesi 0ee0e224ad Removed line
file_core=' '
which was forbidding to print file with core charge.
G.F.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2279 c92efa57-630b-4861-b058-cf58834340f0
2005-10-10 10:35:48 +00:00
fratesi b2078cd14a changed rab(mesh) into rab(ndm) in variable declaration
(mesh is not yet known)
G.F.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2272 c92efa57-630b-4861-b058-cf58834340f0
2005-10-07 07:00:25 +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
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
giannozz 64c31d0ca2 Long do-loop reshuffled to prevent g95 optimisation bug
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2172 c92efa57-630b-4861-b058-cf58834340f0
2005-09-13 13:22:29 +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
degironc 5eeb9dc16d Optimized Effective Potential implemented in the atomic code
currently :
 - ONLY for all-electron calculations
 - ONLY for non-relativistic case
 - determination of the exchange potential in the tail region tends
   to be ill defined ... rmax not too large are tipically needed

 sdg


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2097 c92efa57-630b-4861-b058-cf58834340f0
2005-08-12 14:37:55 +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
dalcorso 79d7c61f7c Bug fix: the logaritmic derivative in the fully relativistic case is
working again. Major and minor components were exchanged but this
routine was not updated.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2064 c92efa57-630b-4861-b058-cf58834340f0
2005-08-01 06:56:52 +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
giannozz 7b00cf279c Misc patches from Axel
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1968 c92efa57-630b-4861-b058-cf58834340f0
2005-06-22 07:14:10 +00:00
giannozz 9e95d7c06f add check on US and NC matching radii
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1917 c92efa57-630b-4861-b058-cf58834340f0
2005-05-25 17:36:30 +00:00
ballabio dfcae1fa52 last end --> end subroutine [Gerardo]
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1860 c92efa57-630b-4861-b058-cf58834340f0
2005-05-12 15:32:15 +00:00
ballabio 69c501c5f2 more end --> end subroutine [Gerardo]
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1859 c92efa57-630b-4861-b058-cf58834340f0
2005-05-12 15:19:08 +00:00
dalcorso e110438242 Small change in the documentation and output of the atomic code.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1848 c92efa57-630b-4861-b058-cf58834340f0
2005-05-04 14:24:24 +00:00
giannozz 7d388c610e No reason to stick to formatted read in atomic code
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1796 c92efa57-630b-4861-b058-cf58834340f0
2005-04-13 12:50:03 +00:00
giannozz c627b6ed03 obsolete variable 'ipp' describing the type of PP replaced by more
self-explanatory (maybe) variables, mostly already there


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1764 c92efa57-630b-4861-b058-cf58834340f0
2005-03-27 20:05:06 +00:00
giannozz b7d3d29b11 Added missing copyright notice
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1733 c92efa57-630b-4861-b058-cf58834340f0
2005-03-21 14:33:57 +00:00
dalcorso ff5a85681a Bug fix: the printed orbital overlaps were not calculated correctly
in the fully relativistic case.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1719 c92efa57-630b-4861-b058-cf58834340f0
2005-03-17 16:21:52 +00:00
ballabio 765729b8b3 merged make.sys and make.rules together
there was no reason they should be two different files
everybody must rerun configure
[Gerardo]


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1690 c92efa57-630b-4861-b058-cf58834340f0
2005-03-08 18:44:10 +00:00
dalcorso 2f2f8ade41 The atomic code writes on output the total magnetization in the lsda case.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1667 c92efa57-630b-4861-b058-cf58834340f0
2005-02-25 13:09:56 +00:00
giannozz 94b84b5e31 *** empty log message ***
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1653 c92efa57-630b-4861-b058-cf58834340f0
2005-02-22 08:21:24 +00:00
giannozz f109832e50 rab = dr/dx is now a global variable, always calculated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1649 c92efa57-630b-4861-b058-cf58834340f0
2005-02-17 14:27:59 +00:00
giannozz a0f0c200a4 Generate correct radial grid also with Vanderbilt grid (starting from zero)
and stop immediately: the grid is not yet implemented


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1648 c92efa57-630b-4861-b058-cf58834340f0
2005-02-17 13:53:14 +00:00
giannozz 0e55fc0e8b The Dirac and non-Dirac cases are more similar now (psi_dir and psi
merged, reversed order of major and minor orbitals)
Please check for collateral damages!


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1647 c92efa57-630b-4861-b058-cf58834340f0
2005-02-16 16:09:08 +00:00
giannozz 495f90d6c6 Slightly better SIC convergence; minor corrections here and there
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1646 c92efa57-630b-4861-b058-cf58834340f0
2005-02-16 10:20:21 +00:00