Commit Graph

23 Commits

Author SHA1 Message Date
giannozz 039537519a First batch of alpha compilation problems
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2497 c92efa57-630b-4861-b058-cf58834340f0
2005-11-21 17:30:07 +00:00
kkudin 7cb1a59cc8 Fixed the "massive" Nose-Hoover chains' restart information, now the number
of chains is saved as well. The XML file got an extra variable.
 Kostya


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2301 c92efa57-630b-4861-b058-cf58834340f0
2005-10-18 00:32:50 +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
cavazzon 08a4556d85 - added a subroutine to write the charge density in XML plane by plane
- minor fixes to PW/pw_restart
- Added the possibility to restart using CP from a PW run (at gamma),
  working but still sperimental.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2131 c92efa57-630b-4861-b058-cf58834340f0
2005-08-26 09:28:33 +00:00
sbraccia 39aa8f58be Dynamics with wannier functions: variables wf_dt and wfdt unified. Added a check on
the input value of calwf.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2119 c92efa57-630b-4861-b058-cf58834340f0
2005-08-23 18:42:25 +00:00
sbraccia 78bdfd0237 Added to cp a subroutine to stop the code (similar to stop_pw).
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2011 c92efa57-630b-4861-b058-cf58834340f0
2005-07-10 21:42:23 +00:00
sbraccia 24957a6321 Cleanup of module dependencies.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2000 c92efa57-630b-4861-b058-cf58834340f0
2005-07-06 23:11:25 +00:00
sbraccia eaa2293534 Added a card for plotting wannier functions (and related stuff).
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1991 c92efa57-630b-4861-b058-cf58834340f0
2005-07-01 20:39:45 +00:00
sbraccia 2d5fa8a23e Added a namelist for cp-dynamics with wannier functions (and related stuff).
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1990 c92efa57-630b-4861-b058-cf58834340f0
2005-07-01 14:26:10 +00:00
ballabio fcc1f4d437 end module --> end module name [Gerardo]
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1875 c92efa57-630b-4861-b058-cf58834340f0
2005-05-18 14:24:56 +00:00
ballabio 74467026df more end subroutine --> end subroutine name [Gerardo]
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1873 c92efa57-630b-4861-b058-cf58834340f0
2005-05-18 09:38:45 +00:00
sbraccia a00aac0e25 header containing the GPL license added where missing and made omogeneous.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1865 c92efa57-630b-4861-b058-cf58834340f0
2005-05-16 19:19:04 +00:00
cavazzon 0219a46b4c - CP clean-ups: eigr, ei1, ei2, ei3, eigrb, ... arrays
now have the same layout (equal to the layout they have in PW)
- iotk files in Modules have been removed


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1801 c92efa57-630b-4861-b058-cf58834340f0
2005-04-14 21:08:53 +00:00
cavazzon bd437a16d3 - Nose' chain from K.Kudin added to CVS
TO BE CHECKED!!
- iotk_multitype_integer splitted into two files to
  workaround compiler problem (IBM xlf) with small simbol stack
- new module with SIC variables


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1712 c92efa57-630b-4861-b058-cf58834340f0
2005-03-15 14:35:47 +00:00
cavazzon 1733abe068 - more CP90/FPMD merging: fft high level driver, iosys, exchange-correlation
- some subroutine shortened and simplyfied to make compilation easy


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1559 c92efa57-630b-4861-b058-cf58834340f0
2005-01-15 10:53:46 +00:00
cavazzon 56322ee7d7 - added ensemble dft
- added ensemble dft / conjugate gradient / electric field
  from Paolo Umari / Marzari code
- NOT YET TESTED!!


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1524 c92efa57-630b-4861-b058-cf58834340f0
2004-12-21 15:48:19 +00:00
cavazzon 1b6d4786c3 - more CP/FPMD merging
- CP/FPMD specific modules moved back from Modules to CPV


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1482 c92efa57-630b-4861-b058-cf58834340f0
2004-11-26 10:12:26 +00:00
cavazzon 155f29dd8c - cpmplete experimental common CP/FPMD XML-like restart .
CP and FPMD are now linked to a common XML-like
  restart subroutine (see Module/cp_restart.f90 ).


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1469 c92efa57-630b-4861-b058-cf58834340f0
2004-11-24 10:56:23 +00:00
giannozz 4e539aa517 Obtianed => Obtained
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1269 c92efa57-630b-4861-b058-cf58834340f0
2004-09-13 14:02:01 +00:00
cavazzon 1be2feeb88 - more mergings between CP and FPMD
- initialization (both code uses the same ggen)
- now FPMD initializes the small-boxes too (required for untrasoft pseudo)
- print out


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1186 c92efa57-630b-4861-b058-cf58834340f0
2004-08-27 10:20:42 +00:00
cavazzon 74f0035ab0 wfcpr.f90 merged into cpr.f90
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1061 c92efa57-630b-4861-b058-cf58834340f0
2004-07-12 14:46:35 +00:00
cavazzon f60529dd9f a lot of wannier staff moved to separate subroutines,
in order to make a single file out of wfcpr.f90 and cpr.f90


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1060 c92efa57-630b-4861-b058-cf58834340f0
2004-07-10 18:16:05 +00:00