Commit Graph

10 Commits

Author SHA1 Message Date
giannozz b41ba40564 Harmonization of FFT grid variables with CP:
nrx1, nrx2, nrx3 => nr1x, nr2x, nr3x
  nrx1s,nrx2s,nrx3s=> nr1sx,nr2sx nr3sx


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@7091 c92efa57-630b-4861-b058-cf58834340f0
2010-09-18 16:48:39 +00:00
giannozz c60df7459d Added k-resolved dos (GuidoF) + source "normalization"
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6840 c92efa57-630b-4861-b058-cf58834340f0
2010-06-14 13:45:31 +00:00
giannozz 3a98e2d9d4 More patches from Axel:
- correct an unquoted string (iosys) in PW/input.f90:483
(this was the cause of tonight compilation failere)
- correct a few incorrect format strings
- make more use of the constants module and thus
  provide more consistent units. NOTE, this has some
  numerical changes in the outputs, as in some places
  rather low precision and inconsistent numbers were
  used for unit conversion.
- convert all(?) single precision constants to double
  using the attached little perl program.
  exceptions: efermi.f90 (as it is supposed to be rewritten
  anyways), plotbands.f90 (it uses single precision everywhere,
  which may result in saving a significant amount of memory,
  so i converted the two double precision constants to single).
Unused routine 'set_fft_grid' removed


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3602 c92efa57-630b-4861-b058-cf58834340f0
2006-12-14 08:53:47 +00:00
giannozz 379adf7694 - xlf doesn't like the syntax used to initialise arrays of strings
- gaussian cube format assumed nr1=nrx1 and so on


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2182 c92efa57-630b-4861-b058-cf58834340f0
2005-09-15 15:28:53 +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 94d6a5c291 Added copyright notice where missing (please check)
Modified copyright notice to make it compatible with script
"check_license"
efg: added missing broadcast of a variable


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1729 c92efa57-630b-4861-b058-cf58834340f0
2005-03-21 13:43:38 +00:00
giannozz 17c3a948ad PBC used in "cubefile" format (Axel)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1345 c92efa57-630b-4861-b058-cf58834340f0
2004-09-27 14:27:12 +00:00
giannozz 7ba66508fe Misc. Alpha compilation errors and warning (courtesy of G. Cantele)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1333 c92efa57-630b-4861-b058-cf58834340f0
2004-09-23 14:11:33 +00:00
giannozz 9b7ec82c2b chdens can produce "cubefile" format (Gaussian)
(contributed by Axel Kohlmeyer)
Version 2.1 tagged


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1322 c92efa57-630b-4861-b058-cf58834340f0
2004-09-20 08:37:49 +00:00