Commit Graph

423 Commits

Author SHA1 Message Date
sbraccia 0caeadbd7b Machine-dependent definitions are now contained in two different files (both in /include):
1) f_defs.h  for definitions to be included in FORTRAN files ONLY
   2) c_defs.h  for definitions to be included in C       files ONLY

C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1012 c92efa57-630b-4861-b058-cf58834340f0
2004-06-25 17:25:37 +00:00
giannozz 3c6fe20275 More t3e fixes
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1000 c92efa57-630b-4861-b058-cf58834340f0
2004-06-25 14:23:15 +00:00
sbraccia e2f9ed9dc0 NEB: stdout (which is redirected on file) is always flushed.
The flush() is preprocessed (on AIX it is called flush_).
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@998 c92efa57-630b-4861-b058-cf58834340f0
2004-06-25 12:06:53 +00:00
giannozz b4da6fadb8 Various T3E compilation problems
Any kind soul replacing the calls to zgefa and zgesl with lapack calls?


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@997 c92efa57-630b-4861-b058-cf58834340f0
2004-06-25 10:12:10 +00:00
ballabio 3548162eb8 workaround for ifort bug [Gerardo]
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@996 c92efa57-630b-4861-b058-cf58834340f0
2004-06-24 10:33:29 +00:00
ballabio b81c8db26a cleanup [Gerardo]
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@993 c92efa57-630b-4861-b058-cf58834340f0
2004-06-24 09:53:32 +00:00
giannozz 43b1b240b7 No need to have a spin index in dvan
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@988 c92efa57-630b-4861-b058-cf58834340f0
2004-06-22 08:03:59 +00:00
sbraccia 3c230032bd Cleanup. In the dynamics() subroutine some minor modification of the output format.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@987 c92efa57-630b-4861-b058-cf58834340f0
2004-06-22 07:21:54 +00:00
ballabio 93a1f09187 small changes in output format, to make it easier for check_example
[Gerardo]


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@986 c92efa57-630b-4861-b058-cf58834340f0
2004-06-21 15:39:23 +00:00
giannozz 45760a7a5f More T3E glitches: getarg must be preprocessed
|| instead of | in clib/cp.h


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@985 c92efa57-630b-4861-b058-cf58834340f0
2004-06-21 14:13:24 +00:00
sbraccia 2c5587deea First clean-up of the parrallelism.
Fixed a bug in the way temporary files were labelled in the parallel case (with nporc > 10 and npool > 1).
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@983 c92efa57-630b-4861-b058-cf58834340f0
2004-06-21 10:12:52 +00:00
sbraccia 12afd7a7d0 Small change in the output: also the forces on fixed atoms are printed (previously they were set to zero before the print-out).
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@979 c92efa57-630b-4861-b058-cf58834340f0
2004-06-17 07:29:32 +00:00
ballabio 6e3a564639 missing comma in format string, fixed [Gerardo]
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@976 c92efa57-630b-4861-b058-cf58834340f0
2004-06-16 14:15:54 +00:00
giannozz 11dbe5df65 NLCC in fhi2upf, T3E compilation problems
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@975 c92efa57-630b-4861-b058-cf58834340f0
2004-06-16 13:03:28 +00:00
giannozz 14814e6394 cpmd2upf was yielding incorrect DFT if converting BLYP PPs
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@969 c92efa57-630b-4861-b058-cf58834340f0
2004-06-14 17:15:48 +00:00
dalcorso 326cb22241 io_base : added read and write of jchi and jjj (ADC)
PP : added the possibility to plot the magnetization in the
          noncolinear case (ADC)
   PWNC : clean up. openfil, restart, punch, read_conf_from_file,
          write_conf_to_file, restart_in_electrons, merged
          with those in PW. (ADC)
          io_base : noncolin, lspinorb saved in restart file.(ADC)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@965 c92efa57-630b-4861-b058-cf58834340f0
2004-06-14 15:22:24 +00:00
dalcorso 5b2fd8fbe3 Bug fix: the modified newd was wrong in the spin-orbit case.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@962 c92efa57-630b-4861-b058-cf58834340f0
2004-06-14 12:58:51 +00:00
sbraccia 463137ad88 Removed references (now everywhere) to module basis for those variables already in module ions_base.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@958 c92efa57-630b-4861-b058-cf58834340f0
2004-06-14 07:30:47 +00:00
giannozz cd8401630c oops...
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@957 c92efa57-630b-4861-b058-cf58834340f0
2004-06-13 14:11:23 +00:00
giannozz 23c9378b0d Changes to newd.f90, please verify that spin-orbit still works
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@955 c92efa57-630b-4861-b058-cf58834340f0
2004-06-13 10:07:42 +00:00
giannozz ffcadc34c1 Modules becmod, rbecmod (one variable each) merged into a single module
(with two variables...) - More USPP merge


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@954 c92efa57-630b-4861-b058-cf58834340f0
2004-06-12 20:37:01 +00:00
sbraccia d1579c66ec Removed references (not yet everywhere) to module basis for those variables already in module ions_base.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@953 c92efa57-630b-4861-b058-cf58834340f0
2004-06-12 13:44:18 +00:00
sbraccia 2058195fda Cleanup of the molecular dynamics routines. Some debug messages removed. Some duplicated variables (fixatom and if_pos) removed from pwcom (already present in ions_base). A logical variable lfixatom added in control_flags. The output of a molecular dynamics run has been slightlychanged to be (hopefully) clearer.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@951 c92efa57-630b-4861-b058-cf58834340f0
2004-06-11 16:53:16 +00:00
sbraccia 0e02ba9e28 Fixed a couple of ambiguities:
flib/rranf.f90: variable irand was not initialized.
PW/v_of_rho.f90: at line 146  CALL xc( arhox, ex, ec, vx, vc )  =>  CALL xc( arhox, ex, ec, vx(1), vc(1) )
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@950 c92efa57-630b-4861-b058-cf58834340f0
2004-06-11 07:48:24 +00:00
giannozz c821ed5236 Compilation fixes
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@949 c92efa57-630b-4861-b058-cf58834340f0
2004-06-10 17:19:58 +00:00
giannozz e380409c6b Several small bugs in restart, found by AdC and David Prendergast
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@948 c92efa57-630b-4861-b058-cf58834340f0
2004-06-10 16:45:00 +00:00
giannozz 25ff6785e3 More uspp variables rearrangement (beware undesired side effects!)
qq_spinorb moved into Modules/uspp.f90 as qq_so
dvan => dvan + dvan_so (for spin-orbit only)
PW/clean_pw.f90 replaces PWNC/clean_pw.f90 (PG)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@945 c92efa57-630b-4861-b058-cf58834340f0
2004-06-08 20:00:04 +00:00
deinzer 595bda9fe8 First step to calculate all dyn. matrices needed for the entire dispersion
in one step with pw.
A new calculation is possible called 'dispersion'
in the phonon card new input parameters are:
nq1, nq2, nq3 : number of q points in the direction
tr2_ph : threshold for the phonon calculation (see also INPUT_PH)
Therefore tr2_ph has been moved from phcom.f90 to Module disp in pwcom.f90
UP TO NOW ONLY THE Q POINTS FOR THE DYN. MATRICES ARE CALCULATED AND PRINTED.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@944 c92efa57-630b-4861-b058-cf58834340f0
2004-06-08 16:20:41 +00:00
sbraccia 84b9de5210 Some bugs fixed in NEB
1) Modules/neb_base.f90: the neb error is computed as done in structural
optimizations (convergence when the largest component of the force vector is
less than a threshold).  The rescaling of the elstic constants has been
modified so that they can not be smaller than a minimum value (set to 0.05).
2) PW/compute_scf.f90: a bug in the way startingpot and startingwfc were used
inside neb has been fixed (now scf should be faster).
3) PW/pwscf.f90: cleanup of module-dependencies.
4) pwdocs/INPUT_PW: documentation updated (a detailed explanation of how to
specify initial configurations has been added).
5) PW/neb_routines.f90: file no longer needed


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@943 c92efa57-630b-4861-b058-cf58834340f0
2004-06-07 07:43:53 +00:00
dalcorso 2dc7e51528 Small changes. (a double return in ylmr2 and the error message in sph_ind).
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@942 c92efa57-630b-4861-b058-cf58834340f0
2004-06-04 16:05:57 +00:00
fabris 8f8bb37989 Quantities of a LDA+U calculation are again written on file ".save",
similarly to what was previously done by the "saveall" routine but
according to the new format. Two subroutines have been added to
"io_base" (write_restart_ldaU and read_restart_ldaU) which are called
by "restart".


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@939 c92efa57-630b-4861-b058-cf58834340f0
2004-06-02 10:29:02 +00:00
dalcorso 1922f218c6 npol set to 1 in PW.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@938 c92efa57-630b-4861-b058-cf58834340f0
2004-06-02 08:24:00 +00:00
giannozz df51dc0b2a More USPP variables moving around
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@937 c92efa57-630b-4861-b058-cf58834340f0
2004-06-01 21:22:19 +00:00
giannozz c16e3106a9 More tweaking with USPP variables
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@936 c92efa57-630b-4861-b058-cf58834340f0
2004-06-01 16:50:03 +00:00
giannozz 620cd1e1e9 oops...
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@934 c92efa57-630b-4861-b058-cf58834340f0
2004-06-01 08:19:10 +00:00
giannozz 47c5de62f8 More USPP_related variables moved to Modules/uspp.f90
Note that lqx => lmaxq for consistency with other names
(those ending in x are static dimensioning)
Beware unexpected side effects (PG)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@933 c92efa57-630b-4861-b058-cf58834340f0
2004-05-31 17:55:33 +00:00
dalcorso 489795748e Cleanup of PWNC.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@928 c92efa57-630b-4861-b058-cf58834340f0
2004-05-31 12:54:27 +00:00
giannozz ee61e86345 iargc explicitely declared
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@926 c92efa57-630b-4861-b058-cf58834340f0
2004-05-28 10:29:52 +00:00
deinzer 7071fc40a4 Added missing use statements when compiled with -DDEBUG
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@925 c92efa57-630b-4861-b058-cf58834340f0
2004-05-27 18:26:16 +00:00
moscac 899a487ff5 minus_q = .false. in non collinear calculation case and other small
modifications.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@919 c92efa57-630b-4861-b058-cf58834340f0
2004-05-27 14:36:04 +00:00
giannozz 4a5732790a Part of the variables for ultrasoft pseudopotentials have been moved to a
new module uspp_param, shared between PW and CP (in file Modules/uspp.f90)
The flag newpseudo is no longer used to decide whether states with oc=0 are
bound or not: for those states, and only for the old RRKJ format, oc is set
to a negative value, and this signals that they are not bound. Not elegant
but simpler than it used to be. The converter to UPF format did not include
those states anyway. Beware unexpected side effects!


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@914 c92efa57-630b-4861-b058-cf58834340f0
2004-05-26 11:04:07 +00:00
deinzer f1874de924 Changes in pw to calculate the Raman tensor via the 2n+1 theorem.
A new calculation called 'raman' is now available.
For each k point additional points at k+b will be generated and a nscf
calculation will be performed.
The b vectors are small vectors either in cartesian coordinates or along the
direction along to the nearest neighbours.
A new input card named raman is introduced.
New variables:
b_length:  the length of the b vectors
lcart:     if .true. cartesian direction (default)
           if .false. in direction to the nearest neighbours


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@911 c92efa57-630b-4861-b058-cf58834340f0
2004-05-25 14:22:43 +00:00
giannozz 27bd27a816 Ambiguous definition of bfgs removed
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@909 c92efa57-630b-4861-b058-cf58834340f0
2004-05-25 06:56:51 +00:00
degironc 2cc18d09d3 24 May 2004 density/potential mixing procedure in presence of an electric
field has been changed.
              - Density mixing is now available.
              - Explicit mixing of the dipole moment in potential mixing has
                been removed (in my opinion it was spurious).
              If anybody experiences bad convergence with the present scheme
              please let me know. (SdG)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@908 c92efa57-630b-4861-b058-cf58834340f0
2004-05-24 16:00:40 +00:00
giannozz a75c83beb2 Merged noncolinear and colinear symmetries (routines sgama, irrek).
Variable degspin removed, constant degspin=2 left.
Please check for unintended effects!


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@906 c92efa57-630b-4861-b058-cf58834340f0
2004-05-21 16:19:20 +00:00
sbraccia 12079048da A new check has been added in move_ions in the case of BFGS+LSDA: if when the convergence is achieved the absolute magnetization (computed in electrons and now saved in the module lsda_mod) is less than 1.D-8 a new scf cycle is performed starting from atomic potential and wcfs and the BFGS convergence is checked again. To be tested.
Removed some unused variables from pwscf.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@905 c92efa57-630b-4861-b058-cf58834340f0
2004-05-21 11:15:39 +00:00
degironc 43f7dade64 set value of gamma_only=lgamma after read_restart_header
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@898 c92efa57-630b-4861-b058-cf58834340f0
2004-05-18 16:32:51 +00:00
sbraccia 21e28121e6 Several minor bugs in the NEB machinery (mainly related to the restart procedure) have been fixed: this required a partial reorganization of the restart-file (prefix.neb) that is no longer compatible with the previous one. Now the restart mechanism is much more robust.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@894 c92efa57-630b-4861-b058-cf58834340f0
2004-05-17 11:41:42 +00:00
sbraccia 2c3f33a941 Cleanup.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@892 c92efa57-630b-4861-b058-cf58834340f0
2004-05-17 06:28:37 +00:00
sbraccia b45aed3301 Division by zero without any check: added an error message.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@891 c92efa57-630b-4861-b058-cf58834340f0
2004-05-17 06:27:55 +00:00