Commit Graph

14 Commits

Author SHA1 Message Date
cavazzon 85f89cc3d3 - new simplified fft interface and simplified call tree
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4578 c92efa57-630b-4861-b058-cf58834340f0
2007-12-31 11:01:33 +00:00
giannozz ce10c8550c reduce_io => tksw; unused variable tvlocw removed
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3808 c92efa57-630b-4861-b058-cf58834340f0
2007-02-22 08:45:23 +00:00
cavazzon 5d3881262a - Task Groups parallelization strategy for CP
generalized to all architectures


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3608 c92efa57-630b-4861-b058-cf58834340f0
2006-12-16 17:27:33 +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
cavazzon 2f2b88494a - same eletronic occupations array between FPMD/CPV
- lot of subroutines taken out from modules and
   corresponding interface added


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3305 c92efa57-630b-4861-b058-cf58834340f0
2006-08-03 17:47:35 +00:00
cavazzon 6a3a3538c7 - more BGL porting
- some fixes for self interaction correction


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3018 c92efa57-630b-4861-b058-cf58834340f0
2006-04-13 21:38:16 +00:00
cavazzon dd93c6ad14 - group communicator variable substituted with intra_image_comm,
first step needed to parallelize neb over images also for CP.
  Next we need to add the right communicator to all communications
- subroutine reduce substituted everywhere with mp_sum
- mp_sum for array with 4dims added in mp.f90
- workaround for xlf compiler, it has problems compiling file with
  initialization of large array in the definition line,
  see Modules/input_parameters.f90 , initialization moved to
  Modules/read_cards.f90 .


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2946 c92efa57-630b-4861-b058-cf58834340f0
2006-03-23 09:19:43 +00:00
cavazzon f360a61a52 - fft drivers reorganization, elimination of redundant subroutines
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2807 c92efa57-630b-4861-b058-cf58834340f0
2006-02-14 10:23:58 +00:00
giannozz fe1fe465c7 Misc cleanud and removal of old/obsolete/mysterious preprocessing
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2721 c92efa57-630b-4861-b058-cf58834340f0
2006-01-24 15:54:22 +00:00
cavazzon 1a6b00bbb6 - FPMD/CP ortho subroutines merged as much as possible.
- Many ortho auxiliary functions (tauset, rhoset, sigset, calphi, updatc)
  are now in common between FPMD/CP, and moved to module ortho_base.f90
- In FPMD, three index vectors, related to real space like charge and potential
  have been substituted with single index vector like in CP, for compatibility
  and efficiency.
- Bug fix in pwtools/matdyn.f90 a logical variable was used in place of a
  character variable


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2694 c92efa57-630b-4861-b058-cf58834340f0
2006-01-10 14:04:13 +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 76d962f368 missing license statement added
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2093 c92efa57-630b-4861-b058-cf58834340f0
2005-08-08 15:41:27 +00:00
sbraccia ab9fcd0dd3 META-GGA implemented (by Xiaofei Wang) in the CP code for norm-conserving pseudopotentials only.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2019 c92efa57-630b-4861-b058-cf58834340f0
2005-07-13 18:22:42 +00:00