Commit Graph

23 Commits

Author SHA1 Message Date
giannozz a3a39fc998 Cleanup: uniform spelling for "Quantum ESPRESSO", removal of f_defs.h,
CMPLX is explicitly typed, blas/lapack are lowercase (consistently with
the convention: FORTRAN COMMANDS = uppercase, all the rest lowercase)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5789 c92efa57-630b-4861-b058-cf58834340f0
2009-08-01 14:26:46 +00:00
cavazzon e3061676f1 - Few additions to implement the possibility to add external forces to ions
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5062 c92efa57-630b-4861-b058-cf58834340f0
2008-07-22 16:48:11 +00:00
giannozz 45ae58d60b All occurrences of d0, d+N, d-N, replaced with fortran-90 style _DP.
Please do not re-introduce old-style syntax. A uniform syntax allows
if the need arises to change the precision in less than no time.
Courtesy of Pascal Thibeaudeau. Modules/ directory only.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3964 c92efa57-630b-4861-b058-cf58834340f0
2007-06-11 17:13:15 +00:00
giannozz 42371342b2 More uninitialized variables
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3630 c92efa57-630b-4861-b058-cf58834340f0
2006-12-22 17:13:14 +00:00
cavazzon ff5bb1c54f - cleanups
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3293 c92efa57-630b-4861-b058-cf58834340f0
2006-07-27 13:01:59 +00:00
cavazzon 721359a455 - some updates about SIC for fpmd calculations
contributed by F.Baletto


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2559 c92efa57-630b-4861-b058-cf58834340f0
2005-12-06 14:55:23 +00:00
cavazzon 45163d093e - CP/FPMD print out routines merged, now physical quantities are
displayed with the same layout


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2434 c92efa57-630b-4861-b058-cf58834340f0
2005-11-08 00:03:27 +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
umari babef31e95 removed re-definition of eht in subroutine print_energy
it caused the appearance of 'electrostati energy = 0.00'
in output file

P. U.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2164 c92efa57-630b-4861-b058-cf58834340f0
2005-09-09 21:37:14 +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 260828432d - FPMD: pseudopotential variable wsg, wnl, fnl substituted with
dion, beta, bec everyware.
- subroutines formfn, compute_beta, nlsm1, nlsm2, ecc ... now are common
  between FPMD and CPV, a lot of clean ups!
- Changes in stdout: relevant physical quantities ( positions velocities an cell )
  are now printed with the seme format of the corresponding input card,
  like in PW, as was suggested by SdG.
- exemple23 updated to reflect the new input namelist "wannier"
- Subroutine init_run now is used in FPMD too.
- WARNING in the stress computed with CP, for a pseudo with core-corrections,
  a contribution is missing! Not yet fixed, I need to talk with PG for the
  box staff.
- WARNING the examples reference are not updated, I'm on the IBM sp, and
  I prefer to update them from a linux machine.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2110 c92efa57-630b-4861-b058-cf58834340f0
2005-08-22 14:14:13 +00:00
sbraccia d6742230b2 Added a routine that initialise the cp code (previously done in cpr). This routine is called by
cpr_loop. This has required some variables previously local to cpr to be moved into modules.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2016 c92efa57-630b-4861-b058-cf58834340f0
2005-07-12 20:08:01 +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
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 1b938fa669 - work on FPMD for the merging with CP ( grid dimension )
- bug fix ( ion randomization )
- SIC updated
carlo


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1378 c92efa57-630b-4861-b058-cf58834340f0
2004-10-14 08:38:05 +00:00
cavazzon cfe8431837 fix for compilation of CP
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1023 c92efa57-630b-4861-b058-cf58834340f0
2004-06-29 10:13:59 +00:00
cavazzon 8bc397b888 added new input variables for string dynamics in CP code,
as implemented by Yosuke Kanai


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1021 c92efa57-630b-4861-b058-cf58834340f0
2004-06-28 17:42:18 +00:00
cavazzon d2e97fbaa5 cleanup
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@995 c92efa57-630b-4861-b058-cf58834340f0
2004-06-24 10:30:00 +00:00
cavazzon 20b7d4642e more energy components added for SIC
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@994 c92efa57-630b-4861-b058-cf58834340f0
2004-06-24 10:13:56 +00:00
cavazzon a3e02b9d06 Self interaction correction (SIC)
tentatively added to FPMD,
work still in progress


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@758 c92efa57-630b-4861-b058-cf58834340f0
2004-04-01 16:30:59 +00:00
sbraccia d5030e787e Unit stdout (set in io_global.f90) is used to write on standard output
instead of 6 or *.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@364 c92efa57-630b-4861-b058-cf58834340f0
2003-11-04 10:26:03 +00:00
cavazzon a85db0682b More merging: modules energies and control_flags of FPMD and CPV
merged and moved to Modules
Basic modules descriptors and parallel_types moved from FPMD to Modules


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@225 c92efa57-630b-4861-b058-cf58834340f0
2003-06-09 21:27:20 +00:00