Commit Graph

152 Commits

Author SHA1 Message Date
cavazzon da4450417d - module random_numbers moved from flib to Modules to avoid
circular dependency. All general purpouse modules should go in
  directory Modules!


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2769 c92efa57-630b-4861-b058-cf58834340f0
2006-02-04 14:06:28 +00:00
giannozz 8eda231bbb - Variable cell: use Cesar Da Silva's version of the damping algorithm
(he claims it is more tested); documentation updated (sort of)
- routines find_free_unit, delete_if_present, moved from 'parser'
  to 'io_files' (it is a more natural place)
- routines int_to_char moved from 'parser' to flib/ (it is quite
  unrelated with the rest of the module)
- routine trimcheck moved from flib/ to 'io_files' (more natural place)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2753 c92efa57-630b-4861-b058-cf58834340f0
2006-02-01 17:56:16 +00:00
giannozz 8569dd18ba tolerant_cft3 is no longer needed
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2736 c92efa57-630b-4861-b058-cf58834340f0
2006-01-27 13:13:48 +00:00
kkudin 7875126e68 Added missing dependencies for IBM SP3
Kostya


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2734 c92efa57-630b-4861-b058-cf58834340f0
2006-01-26 23:35:50 +00:00
giannozz 04829cc556 - Version number updated to 3.1
- Changed format when writing a copy of the UPF file: for some reason
  the free format adds an initial blank character, causing the program
  to fail when reading (in fixed format) additional info for spin-orbit.
  Format A is now used when writing, free format when reading. (AdC)
- More preprocessing cleanup and documentation: anybody having access
  to weird machines is kindly requested to verify if things work


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2732 c92efa57-630b-4861-b058-cf58834340f0
2006-01-26 16:42:14 +00:00
sbraccia baa0ab16e4 Program ev converted to f90. C.S.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2724 c92efa57-630b-4861-b058-cf58834340f0
2006-01-25 04:20:18 +00:00
giannozz 52a5ed0f75 Ry vs cm^(-1) confusion introduced by recent changes - cleaned up
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2715 c92efa57-630b-4861-b058-cf58834340f0
2006-01-20 10:16:11 +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 00b8bc882a Better input checks
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2691 c92efa57-630b-4861-b058-cf58834340f0
2006-01-05 21:50:45 +00:00
giannozz c876c71335 Electron-phonon calculation with new algorithm works in parallel
(but not yet with pools). New versions of q2r and matdyn added.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2690 c92efa57-630b-4861-b058-cf58834340f0
2006-01-05 19:02:22 +00:00
giannozz 468e89c35a Guido's changes for NEC-SX6
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2544 c92efa57-630b-4861-b058-cf58834340f0
2005-12-02 15:44:53 +00:00
degironc e28966f45a Fixed problem with ibrav=0 in the chain ph.x -> q2r.x -> matdyn.x
If ibrav=0 ph.x write also  at(3,3) and symm_type and so do q2.x and matdyn.x
It could actually be simpler to always write/read at(3,3) and symm_type and
forget about ibrav and celldm ...

latgen modified so that it deals properly with ibrav=0 case.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2543 c92efa57-630b-4861-b058-cf58834340f0
2005-12-02 14:51:57 +00:00
giannozz 1320546f9a Yet anoher bad call to sgama
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2474 c92efa57-630b-4861-b058-cf58834340f0
2005-11-14 11:22:06 +00:00
dalcorso 7b7e0ae358 To compile previous commit.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2454 c92efa57-630b-4861-b058-cf58834340f0
2005-11-10 10:16:05 +00:00
giannozz e116cda6d7 More explicit error message
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2421 c92efa57-630b-4861-b058-cf58834340f0
2005-11-04 17:20:00 +00:00
dalcorso 71c38d9494 Changed symmetrization in the non-collinear case.
(A. Smogunov and ADC)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2326 c92efa57-630b-4861-b058-cf58834340f0
2005-10-21 13:01:42 +00:00
giannozz 9291b6914e Erroneous errors
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2311 c92efa57-630b-4861-b058-cf58834340f0
2005-10-20 08:01:20 +00:00
giannozz 213db45e20 Case ibrav=5 was not properly done
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2286 c92efa57-630b-4861-b058-cf58834340f0
2005-10-12 15:51:42 +00:00
ballabio 670f4b64d5 now configure checks separately for serial and parallel compilers [Gerardo]
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2258 c92efa57-630b-4861-b058-cf58834340f0
2005-10-05 18:11:25 +00:00
ballabio 235d96d71e separated LDFLAGS and LIBS [Gerardo]
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2247 c92efa57-630b-4861-b058-cf58834340f0
2005-09-29 13:17:39 +00:00
cavazzon e7bf22f916 - Workaround: PGI compiler 6.0.1 doesn't like open do construct like
do
    enddo
  substituted with
    do while( .true. )
    end do


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2198 c92efa57-630b-4861-b058-cf58834340f0
2005-09-20 12:58:03 +00:00
giannozz aa0f6e133b Correct or less strange, normalisation for phonon DOS
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2163 c92efa57-630b-4861-b058-cf58834340f0
2005-09-09 10:58:27 +00:00
giannozz 2ad0dd8fe4 Added auxiliary codes by Eyvaz Isaev for Fermi energy visualisation
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2143 c92efa57-630b-4861-b058-cf58834340f0
2005-08-30 16:35:08 +00:00
giannozz c5d1a452de Added message explaining why there is no LO-TO splitting
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2137 c92efa57-630b-4861-b058-cf58834340f0
2005-08-29 10:11:07 +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 e0d3021cc5 Updated Makefile with better dependencies (AK)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2089 c92efa57-630b-4861-b058-cf58834340f0
2005-08-03 17:00:07 +00:00
giannozz 2a4498f65f uffa...
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2071 c92efa57-630b-4861-b058-cf58834340f0
2005-08-01 12:27:00 +00:00
giannozz 9f0c950648 Ooops..
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2070 c92efa57-630b-4861-b058-cf58834340f0
2005-08-01 10:34:37 +00:00
giannozz 87601ed664 Message on FFT check is less confuding and less difficult to parse
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2066 c92efa57-630b-4861-b058-cf58834340f0
2005-08-01 09:18:28 +00:00
giannozz e6ae3738b0 Visualization of normal modes (sort of) for xcrysden added
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2054 c92efa57-630b-4861-b058-cf58834340f0
2005-07-28 12:59:29 +00:00
cavazzon f54d453300 - intrinsic functions cmplx and sum were declared as complex(kind=dp)
and PGI complains (and doesn't compile) about that


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2042 c92efa57-630b-4861-b058-cf58834340f0
2005-07-25 13:43:29 +00:00
giannozz 0a6cf4552d Updated documentation for simplified interatomic force constants calculation
A file containing information on the q-point grid is written by ph.x
and read by q2r.x, thus making the process less clumsy
The phonon code does not restart automatically any longer unless instructed
to do so by setting input variable "recover"
Misc cleanup


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2039 c92efa57-630b-4861-b058-cf58834340f0
2005-07-20 14:57:21 +00:00
sbraccia 8b5e3af0de Removed unnecessary supercell file. NEB does not use pbc.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2013 c92efa57-630b-4861-b058-cf58834340f0
2005-07-11 11:10:11 +00:00
giannozz b65e7c5c4e Minor changes in the output
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1981 c92efa57-630b-4861-b058-cf58834340f0
2005-06-28 07:55:57 +00:00
giannozz b074a0f13d g95 doesn't like any longer iargc to be defined external
Filenames from command line read in a single routine (get_file)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1974 c92efa57-630b-4861-b058-cf58834340f0
2005-06-22 10:08:02 +00:00
giannozz 1b2291d239 More dynamical allocation and more cleanup
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1954 c92efa57-630b-4861-b058-cf58834340f0
2005-06-09 18:11:45 +00:00
giannozz 95b7589337 Static allocation replaced by dynamical allocation, cleanup
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1953 c92efa57-630b-4861-b058-cf58834340f0
2005-06-09 14:29:51 +00:00
giannozz e9929db574 re-enable ASR on Z*, indent
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1950 c92efa57-630b-4861-b058-cf58834340f0
2005-06-09 09:27:51 +00:00
giannozz e3bb8be1db New routine input_from_file called everywhere
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1948 c92efa57-630b-4861-b058-cf58834340f0
2005-06-09 07:35:50 +00:00
giannozz a9799a0120 Improved Acoustic Sum Rule By Nicolas&Nicola merged
No warranty that it works: it just compiles


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1941 c92efa57-630b-4861-b058-cf58834340f0
2005-06-07 17:22:48 +00:00
ballabio 58e011d62d end --> end program [Gerardo]
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1870 c92efa57-630b-4861-b058-cf58834340f0
2005-05-17 17:20:29 +00:00
ballabio dfcae1fa52 last end --> end subroutine [Gerardo]
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1860 c92efa57-630b-4861-b058-cf58834340f0
2005-05-12 15:32:15 +00:00
giannozz 4a81ed2cdc Check for negative frequencies added
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1812 c92efa57-630b-4861-b058-cf58834340f0
2005-04-18 16:44:03 +00:00
giannozz 2a4b01e46c missing modules added
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1776 c92efa57-630b-4861-b058-cf58834340f0
2005-03-30 21:36:04 +00:00
giannozz 20a64d1126 tetra should be integer (courtesy of Pascal Thibaudeau)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1754 c92efa57-630b-4861-b058-cf58834340f0
2005-03-24 14:36:53 +00:00
giannozz 28d4c570b4 Compilation problems with SGI (Pascal Thibaudeau)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1703 c92efa57-630b-4861-b058-cf58834340f0
2005-03-11 14:23:37 +00:00
ballabio 765729b8b3 merged make.sys and make.rules together
there was no reason they should be two different files
everybody must rerun configure
[Gerardo]


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1690 c92efa57-630b-4861-b058-cf58834340f0
2005-03-08 18:44:10 +00:00
giannozz d82397995a dynmat.x can read Raman results from phcg.x
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1665 c92efa57-630b-4861-b058-cf58834340f0
2005-02-24 18:12:04 +00:00
giannozz 6eea9342fb Raman coefficients produced by phcg can be read by dynmat
Misspells and minor corrections


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1655 c92efa57-630b-4861-b058-cf58834340f0
2005-02-23 11:18:20 +00:00