Commit Graph

558 Commits

Author SHA1 Message Date
kkudin e1892cacd6 Reduce some communication.
Kostya


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3032 c92efa57-630b-4861-b058-cf58834340f0
2006-04-21 00:48:57 +00:00
umari dd75acd333 Added support for stress calculation in CPV with conjugate gradient
The metallic case and dynamics still need to be checked.

P.U.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3030 c92efa57-630b-4861-b058-cf58834340f0
2006-04-20 13:43:18 +00:00
dalcorso 99168cc147 - domag and t_rev written in the punch files.
- temporary (?) fix for the fact that title is not written in the punch file.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3024 c92efa57-630b-4861-b058-cf58834340f0
2006-04-18 13:26:19 +00:00
cavazzon 25b02439aa - fix for NLCC contribution to forces and stress
- more BGL porting
- clean-ups


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3020 c92efa57-630b-4861-b058-cf58834340f0
2006-04-18 07:33:11 +00:00
cavazzon aa6c592052 - lambdas are synchronized every isave steps.
Possible solution of the bad energy conservation
  observed in parallel run on some machine with USPP


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3019 c92efa57-630b-4861-b058-cf58834340f0
2006-04-14 10:55:31 +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 54ee92ff6c - fix problem that was causing smd to crash
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3011 c92efa57-630b-4861-b058-cf58834340f0
2006-04-10 14:02:12 +00:00
cavazzon ab37050da2 - bug fix, fpmd wasn't able to manage pseudo with radial grid
starting from 0.
- more static array removed
- clean-ups and mergings


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3010 c92efa57-630b-4861-b058-cf58834340f0
2006-04-09 23:38:56 +00:00
giannozz 45b01da348 YABIS (Yet Another Bug In Stress): CP + US case hopefully fixed (was
bad only for l > 0 terms in q functions: same problem of sign as in NCPP).
There are still minor discrepancies between the stress in PW and CP/FPMD,
also in the norm-conserving case. The discrepancies are small but not
so small to be negligible. More investigation is needed...


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3008 c92efa57-630b-4861-b058-cf58834340f0
2006-04-07 14:54:20 +00:00
cavazzon 2078ed9aca - Fix bug in fpmd, reading pseudo with radial grid starting
from 0.0


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3005 c92efa57-630b-4861-b058-cf58834340f0
2006-04-06 20:35:15 +00:00
cavazzon de345b52c3 - important bug fix, core correction in CP was not properly set,
the bug was introduced with the reorganization of the fft.
- NEB working with CP/FPMD (new calculation fpmd-neb added to check
  all the scf engines)
- Clean-ups


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2993 c92efa57-630b-4861-b058-cf58834340f0
2006-04-02 21:29:28 +00:00
cavazzon 0a736de497 - important bug fix, one of the component of the stress in CP (not fpmd),
was carrying a wrong sign. Now checked and working with NCPP,
  to be further checked with USPP. The stress was wrong when using
  PP with nonlocality P or greather.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2987 c92efa57-630b-4861-b058-cf58834340f0
2006-04-01 15:43:55 +00:00
kkudin 61ed894516 Add printout of CG subroutines' timings when CG is used. Note that for
aesthetical reasons one may want to move logical 'tcg' from 'cg_module'
to 'control_flags' since otherwise the 'cg_module' is needed in a lot
of places just for 'tcg' variable.

 Kostya


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2986 c92efa57-630b-4861-b058-cf58834340f0
2006-03-31 21:35:41 +00:00
cavazzon 3298718d32 - bug fix, SM dynamics was crashing under some combination of input
parameters, because an array not allocated was used.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2983 c92efa57-630b-4861-b058-cf58834340f0
2006-03-30 19:43:51 +00:00
cavazzon 5393dcca7b - bux fix in CP, in some particular cases the code was hanging when
colling the last print_clock, this was due to the fact that
  some processors were not starting the clock: 'fftb'


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2977 c92efa57-630b-4861-b058-cf58834340f0
2006-03-29 14:39:06 +00:00
giannozz 052216b669 More static allocations replaced by dynamic ones (nbndxx)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2975 c92efa57-630b-4861-b058-cf58834340f0
2006-03-28 19:43:35 +00:00
cavazzon a49226fe5c - fixing bug seg. fault in smcp dynamic, variable taub was not allocated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2974 c92efa57-630b-4861-b058-cf58834340f0
2006-03-28 17:48:40 +00:00
sbraccia 3bac585738 Old style write_rho added back: it is necessary for printout of wannier
functions and cannot be replaced by write_rho_xml.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2971 c92efa57-630b-4861-b058-cf58834340f0
2006-03-28 14:40:32 +00:00
sbraccia 77e210f2a4 Wannier functions were not printed when requested. Cleanup of wannier related
stuff. C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2969 c92efa57-630b-4861-b058-cf58834340f0
2006-03-28 04:02:36 +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
umari 8bda0be46e Some cleaning in cg_sub,
now pc2 in cglib and gram in cplib
correctly return the updated bec's

P.U.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2964 c92efa57-630b-4861-b058-cf58834340f0
2006-03-27 10:57:25 +00:00
cavazzon 26987d2472 - init_pool moved to mp_global (it is now used by CP too)
- further changes to support image parallelization in CP
- bug fix in XML save file for wave functions / charge density / pools .
  In siple case and combinations of procs and polls now it seem to work.
  More testing is required


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2963 c92efa57-630b-4861-b058-cf58834340f0
2006-03-26 17:14:44 +00:00
cavazzon 56f36d2ae9 - call to write_rho_xml updated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2962 c92efa57-630b-4861-b058-cf58834340f0
2006-03-25 08:48:47 +00:00
cavazzon 67131d48f0 - fixed a problem with sub. arguments, due to the two
last updates, of the two carlo


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2961 c92efa57-630b-4861-b058-cf58834340f0
2006-03-24 19:03:38 +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
sbraccia 67813cec53 Fixed a problem in the new restart file with parallelization on k-point.
The new resart doesn't work yet with parallelization on k-points because of
some errors (still to be fixed) in the way the wavefunctions are written and
read. C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2959 c92efa57-630b-4861-b058-cf58834340f0
2006-03-24 18:40:31 +00:00
cavazzon b4a1f7ff8b - again, call to a parallel sub. inside a processor specific "IF" section
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2955 c92efa57-630b-4861-b058-cf58834340f0
2006-03-24 11:22:39 +00:00
kkudin 5afe3ccf11 Completed the addition of the last print counter. It is saved in the restart
directory in file "print_counter.xml" when something is printed out to
a file like $prefix.evp.
 If, for example, iprint=10, isave=100, and the job is killed at step 150
(via OS or $prefix.EXIT), then the next printout to file $prefix.evp will
happen on step 160, and not 110 as before. This way file $prefix.evp is
fully continuous without duplications, which is useful for MD trajectories.
 Kostya


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2952 c92efa57-630b-4861-b058-cf58834340f0
2006-03-24 03:51:21 +00:00
cavazzon e92ac1f08a - static array substituted with dynamic array, to reduce
memory requirements


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2951 c92efa57-630b-4861-b058-cf58834340f0
2006-03-23 18:00:12 +00:00
giannozz 4089b8d2a1 No need to use the obsolete "io_base" module in CP
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2947 c92efa57-630b-4861-b058-cf58834340f0
2006-03-23 09:55:25 +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
kkudin a21dd7679e Some CG cleanup to reduce unnecessary memory usage (with an eye on BlueG)
Kostya


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2945 c92efa57-630b-4861-b058-cf58834340f0
2006-03-23 04:02:58 +00:00
kkudin 747f2e4759 Introduce logic to save the last print counter. Designed to avoid double printing
into files like *.pos and *.evp whenever the job is killed ungracefully (not
completed yet ...)
 Kostya with C.S. help


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2943 c92efa57-630b-4861-b058-cf58834340f0
2006-03-23 02:17:22 +00:00
cavazzon 5db185bbf8 - bug fixed in vofrho
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2937 c92efa57-630b-4861-b058-cf58834340f0
2006-03-22 16:51:56 +00:00
kkudin 9aef93b80e 1) link disk_io to reduce_io in CP, when disk_io='low' in CP the charge
density file is not written (perhaps the default could be reverted)
 2) added an option ion_velocities='change_step'. Here one restarts from
a file with CG while changing the timestep. The old timestep should be supplied
in tolp. The main goal is to make the [t-1] ion positions to be proportionally
smaller. This way one can go through CP->CG->CP sequence while changing the
timestep and keeping all the ionic and Nose positions & velocities fully
consistent as to keep previous equilibration. Perhaps variable cell variables
should also be rescaled in the same way.

 Option 2) is somewhat ugly in how things are specified, but practically useful
if one does not want to re-equilibrate with the time step change.

 I could not extract the timestep value from the restart file, is it not
being written?

 Kostya


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2930 c92efa57-630b-4861-b058-cf58834340f0
2006-03-17 19:36:47 +00:00
giannozz 0c7b6e2902 __AIX (IBM machines with essl) split into __AIX and __ESSL
Beware: configure not yet updated


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2924 c92efa57-630b-4861-b058-cf58834340f0
2006-03-16 18:04:33 +00:00
cavazzon 8e0057ea53 - adding changes needed to compute Self Interaction Correction
contributed by F.Baletto


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2923 c92efa57-630b-4861-b058-cf58834340f0
2006-03-16 17:58:40 +00:00
kkudin 8b44e68c26 Added an option to the CP output routine to print out various files with
atomic labels and also to print out *.pos file as XYZ
 The option is off by default, but can be enabled with nice_output_files=.true.
in print_out.f90 source.

 Kostya


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2919 c92efa57-630b-4861-b058-cf58834340f0
2006-03-16 03:41:21 +00:00
kkudin 34cadc4c60 Added a comment line to the xml_io_base.f90 to make it easy to get back
the earlier RESTARTXX name for the directory.

 Also, added a logical parameter "write_charge_density" to cp_restart.f90
Setting it to "false" gets rid of the "charge-density.xml" file. Perhaps,
this could become an input parameter at some point.

 As a side comment, running never ending CP dynamics is a bit different
from PW calculations which will finish at some point. Thus saving as little
stuff as possible is highly desirable (with options to save more).

 Kostya


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2918 c92efa57-630b-4861-b058-cf58834340f0
2006-03-16 01:58:44 +00:00
giannozz 4bcb74d408 - combined index instead of two symmetric indices for array dqrad
- the logic of the combined index for US PP is now the same everywhere
  (i.e in PW, CP, and in the pseudopotential format):
     do iv=1,N
        do jv=iv,N
           ijv=jv*(jv-1)/2+iv
  (in PW the indices are called nb, mb). In order to get ijv from (iv,jv):
     if (iv > jv) then
         ijv=iv*(iv-1)/2+jv
     else
         ijv=jv*(jv-1)/2+iv
     end if
- the above change also fixes a serious bug affecting Vanderbilt US PP
  in UPF format (only half of the qfcoef array was present, but not the
  good half)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2916 c92efa57-630b-4861-b058-cf58834340f0
2006-03-15 11:23:03 +00:00
umari a0816968e3 small change in critical case recovery.
P.U. & I.D.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2906 c92efa57-630b-4861-b058-cf58834340f0
2006-03-11 20:44:17 +00:00
cavazzon d77f5709f9 - bug fix in fill_qrl, to be further examined
- fill_qrl from cplib to pseudopot
- ortho: mxma substituted with dgemm and pmatmul (parallel)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2900 c92efa57-630b-4861-b058-cf58834340f0
2006-03-10 16:02:42 +00:00
cavazzon 69dcecd8cf - adding Task Groups fft driver (Blue Gene)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2893 c92efa57-630b-4861-b058-cf58834340f0
2006-03-09 09:57:03 +00:00
umari 3dfd7eb4cb variable entrospin is correctely assigned
However this does not affect previous results

P.U.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2891 c92efa57-630b-4861-b058-cf58834340f0
2006-03-08 16:50:57 +00:00
cavazzon 249aaccce6 - more Blue Geen stuff, task groups initialization subroutine.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2882 c92efa57-630b-4861-b058-cf58834340f0
2006-03-08 09:03:27 +00:00
giannozz dda5f85506 More USPP cleanup (or maybe mess-up) and memory reduction
Only CP compiles right now, the rest is coming soon


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2872 c92efa57-630b-4861-b058-cf58834340f0
2006-03-07 13:26:52 +00:00
giannozz 4c174a6787 Memory saving in US PP and small boxes: packed form for more arrays
PLEASE NOTE: the logic for packed index is as follows everywhere
do i=1,N
   do j=1,i
      ij = (i-1)*i/2 + j
This is equivalent to
ij = 0
do i=1,N
   do j=1,i
      ij = ij + 1
This is not (yet) the same as used in PW, though


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2871 c92efa57-630b-4861-b058-cf58834340f0
2006-03-07 10:15:27 +00:00
giannozz f9143583a4 More pseudopotential cleanup - unexpected side effects are possible
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2870 c92efa57-630b-4861-b058-cf58834340f0
2006-03-06 13:31:27 +00:00
giannozz aa7aa03999 - memory usage of arrays qradb, dqrad reduced whenever the maximum number
of beta functions is smaller than the fixed maimum nbrx
- routines for herman-skillman integration moved together to other
  integration routines in flib/ . We should one day decide which one of
  these routines should be used: they all do basically the same thing
- routine reading ultrasoft PP in the old Vanderbilt format moved to
  Modules/. More USPP cleanup coming soon.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2868 c92efa57-630b-4861-b058-cf58834340f0
2006-03-06 10:39:38 +00:00
giannozz e90b3c2658 Replaced several allocations with fixed dimensions with dimensions
calculated at run-time; combined index instead of two symmetric indices
in some PP arrays. Should save a sizable amount of memory.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2864 c92efa57-630b-4861-b058-cf58834340f0
2006-03-03 14:17:46 +00:00
giannozz b7214a5bd4 Do not allocate memory used by variable-cell if doing fixed-cell
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2862 c92efa57-630b-4861-b058-cf58834340f0
2006-03-02 18:25:40 +00:00
sbraccia 0126b93557 Removed obsolescent variables that I forgot in the yesterday's cleanup.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2861 c92efa57-630b-4861-b058-cf58834340f0
2006-03-02 15:45:57 +00:00
sbraccia da14a044fe Cleanup of NEB related stuff: unused variables and algorithms have been
removed. C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2858 c92efa57-630b-4861-b058-cf58834340f0
2006-03-01 19:57:03 +00:00
cavazzon fc702ad67b - program_name is no more used in the definition of
the environment


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2856 c92efa57-630b-4861-b058-cf58834340f0
2006-02-28 11:01:27 +00:00
sbraccia 5eee750bb7 Fixed several bugs in the code used to compute free-energy barriers (for both
CP and PW). C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2855 c92efa57-630b-4861-b058-cf58834340f0
2006-02-27 20:06:23 +00:00
cavazzon 2bebd0198c - Box grid data layout descriptor used in fft high level driver
- fix in smdinit for Box grid descriptor


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2849 c92efa57-630b-4861-b058-cf58834340f0
2006-02-23 22:10:40 +00:00
kkudin ca86586c59 Moved the calculation of current time to the proper place
Otherwise the printed time was (nstep-1)*fact, and not nstep*fact
 Kostya


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2846 c92efa57-630b-4861-b058-cf58834340f0
2006-02-23 01:41:35 +00:00
giannozz 38007b9f62 Support for FFT v.3 added (for good this time)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2845 c92efa57-630b-4861-b058-cf58834340f0
2006-02-22 17:38:10 +00:00
giannozz a58954ea14 Added __USE_3D_FFT option for testing purposes. In serial execution, it
does not use 'sticks' in the fft for wavefunctions; in parallel execution,
it uses the 3d serial fft (valid for one processor per pool only!)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2843 c92efa57-630b-4861-b058-cf58834340f0
2006-02-21 16:15:32 +00:00
cavazzon 0cbd417269 - charge density is now read and written in CP/FPMD trough xml subroutine
- CP/FPMD post processing updated, charge and states written in xsf/grd format
- CP rhoofr moved to file chargedensity.f90
- merged from_scratch subroutine


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2839 c92efa57-630b-4861-b058-cf58834340f0
2006-02-19 23:29:28 +00:00
cavazzon ce6a4f3316 - fft scatter (alltoallv), transpose (alltoall), itranspose (isend/irecv)
made interchangeable (see Module/fft_base and CPV/fftdrv for more detail)
- obsolete files removed


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2832 c92efa57-630b-4861-b058-cf58834340f0
2006-02-16 22:39:29 +00:00
giannozz 1a73aa100e NEC FFT replaced by the one in fft_scalar
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2823 c92efa57-630b-4861-b058-cf58834340f0
2006-02-15 17:11:37 +00:00
giannozz 56753779a7 Compilation problem with fftw
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2808 c92efa57-630b-4861-b058-cf58834340f0
2006-02-14 14:13:59 +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
cavazzon 7f20c51ca9 - various clean-ups
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2791 c92efa57-630b-4861-b058-cf58834340f0
2006-02-08 18:17:58 +00:00
cavazzon 0b6de7a082 - call to diagonalize
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2777 c92efa57-630b-4861-b058-cf58834340f0
2006-02-07 13:49:06 +00:00
cavazzon 79df35d971 - cdiagonalize updated to work with arrays with a leading
dimension different from "n"
- copy of h and v in cdiagh eliminated
- some other clean ups


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2771 c92efa57-630b-4861-b058-cf58834340f0
2006-02-05 17:25:03 +00:00
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 b592654d67 Please no DOS end-of-lines and no comments in Italian !!!
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2762 c92efa57-630b-4861-b058-cf58834340f0
2006-02-03 16:57:03 +00:00
sbraccia 06776e5fb9 Fixed some bugs affecting meta-dynamics.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2759 c92efa57-630b-4861-b058-cf58834340f0
2006-02-03 04:12:18 +00:00
umari ec9753002e Added second Berry's phase el. field
some improvements in inner_loop
P.U.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2755 c92efa57-630b-4861-b058-cf58834340f0
2006-02-01 18:01:04 +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 584b169835 oops...call to write_bz needed to be updated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2752 c92efa57-630b-4861-b058-cf58834340f0
2006-02-01 07:56:53 +00:00
cavazzon 3c8bbee2b2 *** empty log message ***
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2743 c92efa57-630b-4861-b058-cf58834340f0
2006-01-29 16:43:06 +00:00
sbraccia 07fe6e0fa4 New denomination of constraint types (now an identification string is used instead of
an index). Removed the two cases constrained_verlet and constrained_damp: a constrained
dynamics is automatically done if the CONSTRAINTS card is present. Added a keyword to
monitor the value of the constraints during the simulation. In this case the constraints are
not imposed.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2740 c92efa57-630b-4861-b058-cf58834340f0
2006-01-28 22:35:48 +00:00
sbraccia a5eeeee8c5 All functions used to generate random number collected in a single module. Added two routines
random numbers from a normal distribution.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2725 c92efa57-630b-4861-b058-cf58834340f0
2006-01-25 04:24:49 +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 0b8cdf4209 - bug fix, reading and writing wavefunctions when SIC is used
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2720 c92efa57-630b-4861-b058-cf58834340f0
2006-01-23 14:13:55 +00:00
sbraccia 5056a0fd5a Fixed some bugs introduced in the metadynamics by the recent modifications.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2708 c92efa57-630b-4861-b058-cf58834340f0
2006-01-17 16:52:56 +00:00
giannozz 98c63ca797 - Miscellaneous fixes of compilation errors left after last changes
- support for cray-xt3 (courtesy of Axel Kohlmeyer)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2707 c92efa57-630b-4861-b058-cf58834340f0
2006-01-15 20:18:53 +00:00
sbraccia 96129c3fe7 Metadynamics cleanup. C.S.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2704 c92efa57-630b-4861-b058-cf58834340f0
2006-01-13 17:27:11 +00:00
giannozz ec9478d16c Module "qrl" no longer needed, removed
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2698 c92efa57-630b-4861-b058-cf58834340f0
2006-01-13 13:53:35 +00:00
giannozz 9d4b0c3387 Do not allocate large arrays that are not used with fixed cell
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2697 c92efa57-630b-4861-b058-cf58834340f0
2006-01-12 21:03:17 +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 e0a17780ba The qrl functions, i.e. Q_ij(r) split into l-components, are now fit to
the "conventional" Vanderbilt (qfunc+qfcoef) form if this is not available.
This removes a major difference between CP and PW in the treatment of USPP.
Only the 1.0.0 Vanderbilt format written by some obsolete version of the
Vanderbilt code should be affected, but beware unintended side effects!!!


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2693 c92efa57-630b-4861-b058-cf58834340f0
2006-01-10 11:20:56 +00:00
silviu 58382b701e bug fixed in orthogonalize_rrho. [silviu]
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2684 c92efa57-630b-4861-b058-cf58834340f0
2006-01-04 08:30:18 +00:00
sbraccia e8d138642f Cleanup. Some of the modifications suggested by G.Bussi implemented. C.S.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2683 c92efa57-630b-4861-b058-cf58834340f0
2006-01-04 01:31:41 +00:00
silviu 8d7ea2691d Input to cp was updated to include variable tot_magnetization, as an
alternative way of specifying the spin state. [silviu]


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2672 c92efa57-630b-4861-b058-cf58834340f0
2005-12-31 23:41:08 +00:00
umari c3c075a219 New scheme for
US+conjugate gradient: better preconditioning
ensemble dft : better algorithm

new file inner_loop.f90

P.U.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2670 c92efa57-630b-4861-b058-cf58834340f0
2005-12-29 17:23:17 +00:00
silviu 52530e921c removing subroutine poles from cplib. [silviu]
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2666 c92efa57-630b-4861-b058-cf58834340f0
2005-12-29 08:39:51 +00:00
cavazzon 6033454162 - fixed a bug in smcp: setup of variable fccc. example26 is now
working again
- calls to very old "rs" eispack driver replaced by calls do
  "dspev" lapack driver
- subroutines sigset, rhoset, tauset moved from cplib.f90 to
  ortho_base.f90, now they are used in fpmd subroutines too


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2625 c92efa57-630b-4861-b058-cf58834340f0
2005-12-20 23:54:54 +00:00
sbraccia bada3d414a Other fixes related to the XML restart file. C.S.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2604 c92efa57-630b-4861-b058-cf58834340f0
2005-12-17 21:21:19 +00:00
sbraccia 2ad9db50c5 Stop by user request (prefix.EXIT) was not working for CP. Fixed and reorganised.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2602 c92efa57-630b-4861-b058-cf58834340f0
2005-12-17 17:40:37 +00:00
giannozz 17638b6e24 Bug fix: CP yielded bad results with RRKJ3 US PP in old format
Same PP in UPF format were not affected - spotted by Matteo C.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2600 c92efa57-630b-4861-b058-cf58834340f0
2005-12-16 19:56:08 +00:00
giannozz b40aa35fb8 CP stops instead of crashing if a pseudopotential file is not found;
the type of PP format is reported in a slightly less obscure way


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2596 c92efa57-630b-4861-b058-cf58834340f0
2005-12-15 22:40:35 +00:00
sbraccia 993a67204a Some other bugs in the XML data-file fixed. C.S.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2587 c92efa57-630b-4861-b058-cf58834340f0
2005-12-13 21:58:44 +00:00
sbraccia 27b407c2a3 Various fixes to the xml data-file (thanks to A.Ferretti).
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2583 c92efa57-630b-4861-b058-cf58834340f0
2005-12-13 14:45:35 +00:00
cavazzon 553fd0d710 - bug fix: vc-relax and ibrav=0+celldm(1)+CELL_PARAMETERS
- logic behind variable fccc and ccc cleaned up and shared
  between fpmd and cp subroutines
- rhoset, sigset, tauset cleaned-up and prepared for the
  merging of the ortho subs.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2581 c92efa57-630b-4861-b058-cf58834340f0
2005-12-13 11:50:36 +00:00
silviu 69a8cb0fa5 Added input variable to namelist SYSTEM: multiplicity. It is redundent in
principle since the same information can be specified with nelup and neldw.
However in systems containing many atoms of various kinds it can help reduce
human errors. If unspecified, this parameter is ignored. [silviu]


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2578 c92efa57-630b-4861-b058-cf58834340f0
2005-12-12 08:03:28 +00:00
silviu aba8a4d2da Added an input variable to SYSTEM namelist: tot_charge. The same information
could also be specified with a proper choise of nelec. The later option however
is more sensitive to human errors, especially when working on large systems
containing diverse elements (or when working in the middle of the night...) [silviu]


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2577 c92efa57-630b-4861-b058-cf58834340f0
2005-12-12 00:17:09 +00:00