Commit Graph

2916 Commits

Author SHA1 Message Date
giannozz a409b451ea The documented behavior of wf_collect is (hopefully) enforced again in PW
wf_collect=.true.  : write the wfc to the XML directory in portable format
wf_collect=.false. : do not write wfcs to the XML directory, leave as is
All codes that read the xml data file should be able to automatically do
what is needed in both cases (no warranty but I want to go home now!)
The defaults is still .false. - not implemented for CP (but it is easy to do)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2966 c92efa57-630b-4861-b058-cf58834340f0
2006-03-27 17:55:53 +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
degironc aa04a77c0b yet another bug corrected in the radial part.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2958 c92efa57-630b-4861-b058-cf58834340f0
2006-03-24 16:35:17 +00:00
degironc 261b8d992b corrected (maybe correct) version of radial part
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2957 c92efa57-630b-4861-b058-cf58834340f0
2006-03-24 16:14:34 +00:00
degironc 29777f14a0 radial part added to the definition of the guiding functions in pw2wannier90.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2956 c92efa57-630b-4861-b058-cf58834340f0
2006-03-24 15:45:19 +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
cavazzon bce0431c6e - parallel execution was hanging at the end,
because there was a parallel subroutine (containing barrier)
  called in a IF( ionode ) section. Please be careful inside
  processor specific section!


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2954 c92efa57-630b-4861-b058-cf58834340f0
2006-03-24 10:37:04 +00:00
cavazzon df03def23b - reduce substituted with mp_sum
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2953 c92efa57-630b-4861-b058-cf58834340f0
2006-03-24 09:54:38 +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 ebc1645bd9 No comma after write(..)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2950 c92efa57-630b-4861-b058-cf58834340f0
2006-03-23 11:35:23 +00:00
giannozz 3733ffdb94 Old file format and related files deleted, makefiles updated accordingly
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2949 c92efa57-630b-4861-b058-cf58834340f0
2006-03-23 11:00:52 +00:00
giannozz 03b571d5b9 Documentation updated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2948 c92efa57-630b-4861-b058-cf58834340f0
2006-03-23 09:58:10 +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 7ecd4db686 Forgot to comment out RESTARTXX
Kostya


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2944 c92efa57-630b-4861-b058-cf58834340f0
2006-03-23 02:19:13 +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
giannozz 0f1182cb72 calculations='bands' now does exactly what it is expected to do
LDA+U yields normalized values for projections even if the
atomic wavefunctions are not correctly normalized (Matteo C)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2942 c92efa57-630b-4861-b058-cf58834340f0
2006-03-22 18:58:38 +00:00
giannozz 76ffc6c49a Makefile update (again)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2941 c92efa57-630b-4861-b058-cf58834340f0
2006-03-22 18:15:31 +00:00
giannozz 069a27b3fe Documentation updated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2940 c92efa57-630b-4861-b058-cf58834340f0
2006-03-22 17:22:45 +00:00
degironc bdaafaec2a pw2wannier90 changed so as to conform to new definition of wannier.nnkp file.
Radial part of the projectors still need to be fixed


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2938 c92efa57-630b-4861-b058-cf58834340f0
2006-03-22 17:13:21 +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
giannozz 2272afad1b Makefile updated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2936 c92efa57-630b-4861-b058-cf58834340f0
2006-03-22 16:39:14 +00:00
giannozz c09d36277b Minor fixes
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2935 c92efa57-630b-4861-b058-cf58834340f0
2006-03-22 16:36:24 +00:00
giannozz cf3fb71c7d Makefile updated, fixes for compilation
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2934 c92efa57-630b-4861-b058-cf58834340f0
2006-03-22 16:35:29 +00:00
giannozz 7c1c150c1a cleanup of unused scalapack routines + misc cleanup
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2933 c92efa57-630b-4861-b058-cf58834340f0
2006-03-22 16:33:27 +00:00
giannozz ca10d9a79f calculation='bands' introduced (but not finished)
leftover stuff from calculation='raman' removed


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2932 c92efa57-630b-4861-b058-cf58834340f0
2006-03-20 22:44:35 +00:00
dalcorso 58c4445f85 Generalized to the spin-orbit case.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2931 c92efa57-630b-4861-b058-cf58834340f0
2006-03-20 09:13:28 +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
sbraccia 8d0b90c8f1 Parallel diagonalizer at gamma disabled for IBM only. C.S.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2929 c92efa57-630b-4861-b058-cf58834340f0
2006-03-17 17:56:45 +00:00
sbraccia c6fd5d0c9d Added other checks on the status of the I/O units.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2928 c92efa57-630b-4861-b058-cf58834340f0
2006-03-17 14:08:19 +00:00
sbraccia 05fbef4dd5 Cleanup of the dynamics module. C.S.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2927 c92efa57-630b-4861-b058-cf58834340f0
2006-03-17 14:07:11 +00:00
giannozz 3f46424496 Machine-dependent makefiles updated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2926 c92efa57-630b-4861-b058-cf58834340f0
2006-03-17 09:15:12 +00:00
giannozz 5331e5825a configure should now correctly set __ESSL
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2925 c92efa57-630b-4861-b058-cf58834340f0
2006-03-16 18:32:40 +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
dalcorso d30c8d027b Improved algorithm.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2922 c92efa57-630b-4861-b058-cf58834340f0
2006-03-16 15:37:22 +00:00
giannozz c5f06df0ff Yet another bug in stress: LSDA + Gamma point
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2921 c92efa57-630b-4861-b058-cf58834340f0
2006-03-16 13:19:33 +00:00
dalcorso 43d7d61924 Makefile updated.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2920 c92efa57-630b-4861-b058-cf58834340f0
2006-03-16 09:28:38 +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 1e383c9e6a Parallel diagonalization in the gamma case does not seem to work,
at least on sp - disabled for now


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2917 c92efa57-630b-4861-b058-cf58834340f0
2006-03-15 14:59:20 +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