Commit Graph

30 Commits

Author SHA1 Message Date
cavazzon 0ffdcccc5c - removed unused subs.
- clean-ups
- fix a bug in the computation of Center of Mass displacement


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3839 c92efa57-630b-4861-b058-cf58834340f0
2007-03-05 18:02:22 +00:00
cavazzon 42e937f196 - unused subroutine removed
- more interfaces
- cp/fpmd "from_restart" merged
- cp/fpmd "movecell" merged
- clean-ups


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3836 c92efa57-630b-4861-b058-cf58834340f0
2007-03-05 10:16:05 +00:00
cavazzon e255615328 - more merging: now there is only one dforce routine.
- developing: some input parameters damped to file qe_input.xml


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3819 c92efa57-630b-4861-b058-cf58834340f0
2007-02-26 14:48:03 +00:00
cavazzon 08c786d8a2 - cleanup, module cell_module substituted by cell_base + interfaces
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3439 c92efa57-630b-4861-b058-cf58834340f0
2006-10-06 17:21:32 +00:00
giannozz ff405e66ec Cleanup in constants: factem => 1/k_boltzmann
Some unused formats removed


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3380 c92efa57-630b-4861-b058-cf58834340f0
2006-09-12 17:11:36 +00:00
cavazzon 1ed7d55a46 - fixed a bug in FPMD + constrained dynamics.
The error was present only when input atomic
  positions were not sorted as the input species


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3372 c92efa57-630b-4861-b058-cf58834340f0
2006-09-11 11:06:42 +00:00
cavazzon e817d7c43c - removed old mpi wrappers reduce.f90, that was used in CP
- more changes for parallelization over images


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2965 c92efa57-630b-4861-b058-cf58834340f0
2006-03-27 17:01:30 +00:00
cavazzon cff1f9680c - static arrays dimensioned with natx removed
- nproc substituted with nproc_image
- mpime substituted with me_image
- roor substituted with root_image
- some clean-ups


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2960 c92efa57-630b-4861-b058-cf58834340f0
2006-03-24 18:51:06 +00:00
cavazzon 34a10dc44c - bug fix, the center of mass cdmi was defined first in real
variables and then in scaled variable. Now the scaled
  center of mass is stored in variable "cdms".
  This patch affect only the standard output.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2520 c92efa57-630b-4861-b058-cf58834340f0
2005-11-25 09:07:09 +00:00
giannozz 201b68ac9a UMA => AMU everywhere . For people not speaking latin-derived languages
the connection between UMA and Atomic Mass Units is not obvious.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2359 c92efa57-630b-4861-b058-cf58834340f0
2005-10-25 13:08:29 +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
cavazzon 59b4f60f8b - FPMD/CP variable "nbnd" and "nelec" are computed automatically if
not specified in the input, like in PW
- FPMD/CP directory for restart file now could be specified with
  the input parameter "scradir" in the control namelist
- FPMD: NEB is working again!


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2051 c92efa57-630b-4861-b058-cf58834340f0
2005-07-27 16:09:03 +00:00
sbraccia 054ff73d71 Fixed another error in the implementation of SHAKE: masses in hartree are twice the masses in rydberges.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2001 c92efa57-630b-4861-b058-cf58834340f0
2005-07-07 19:54:04 +00:00
sbraccia d29702d85a Constrained dynamics made compatible with fixed ions (if_pos).
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1984 c92efa57-630b-4861-b058-cf58834340f0
2005-06-29 21:22:27 +00:00
sbraccia 504a2945a1 Fixed some bugs in the implementation of SHAKE. MD in PWscf is performed with standard Verlet
algorithm to have a single implementation of SHAKE (velocity Verlet uses RATTLE).
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1979 c92efa57-630b-4861-b058-cf58834340f0
2005-06-27 20:21:19 +00:00
ballabio 5996fbf309 more end subroutine --> end subroutine name [Gerardo]
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1872 c92efa57-630b-4861-b058-cf58834340f0
2005-05-18 09:10:54 +00:00
ballabio 348adb1cc1 end --> end function [Gerardo]
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1868 c92efa57-630b-4861-b058-cf58834340f0
2005-05-17 16:46:38 +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
sbraccia 126086cdc9 Added the possibility of enforcing constraints on the ionic coordination (still exeperimental).
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1845 c92efa57-630b-4861-b058-cf58834340f0
2005-05-02 23:14:06 +00:00
cavazzon 54b83781e9 - clean-ups, removed old FPMD constraints, and old FPMD formf
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1843 c92efa57-630b-4861-b058-cf58834340f0
2005-05-01 20:53:24 +00:00
sbraccia 868a421d64 New SHAKE module implemented also in FPMD. The three codes (PW,CP,FPMD) now use the same
algorithms for constrained dynamics. C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1842 c92efa57-630b-4861-b058-cf58834340f0
2005-04-30 20:41:48 +00:00
sbraccia d3ee389928 Added the possibility of performing constrained dynamics in the cp code. Constraints on planar angles are implemented in
both pwscf and cp. Both the constraints can be set in the input, with the option of specifying the target.
The electronic step of the cp dynamics has been moved from cpr.f90 to the new subroutine move_electrons.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1837 c92efa57-630b-4861-b058-cf58834340f0
2005-04-28 23:30:51 +00:00
cavazzon 193516156e - clean-ups, comments and merging
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1829 c92efa57-630b-4861-b058-cf58834340f0
2005-04-22 15:23:19 +00:00
cavazzon 8bf1d7a48f - more CP/FPMD merging, clean-ups.
- Standard output hopfully made more clear and common between CP/FPMD
 - common CP/FPMD initialization
 - fix for nat checking in cploop


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1775 c92efa57-630b-4861-b058-cf58834340f0
2005-03-30 18:08:01 +00:00
cavazzon b8a7f0bd86 - FPMD/CP90 ionic and electronic nose' thermostat merged
- clean-up


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1763 c92efa57-630b-4861-b058-cf58834340f0
2005-03-26 15:29:07 +00:00
giannozz 88f8d004a0 At least some versions of the pgi compiler don't like the "external"
definition with "::" as in "EXTERNAL :: cclock"


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1569 c92efa57-630b-4861-b058-cf58834340f0
2005-01-17 18:33:37 +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 89ab8f3e55 - FPMD files added to CPV directory
- FPMD directory is no more needed


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1479 c92efa57-630b-4861-b058-cf58834340f0
2004-11-25 14:51:47 +00:00