Commit Graph

93 Commits

Author SHA1 Message Date
ccavazzoni 135ab01dca - BUG FIX. lambda matrix was not read properly upon restart in LSD
simulations. The effect of this bug was a small kick on the atoms
  after every restart.
- cleanup of stdout


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5888 c92efa57-630b-4861-b058-cf58834340f0
2009-09-06 17:22:05 +00:00
giannozz 2c0c6c2248 Removal of f_efs.h, explicit typing of CMPLX, lowercase blas/lapack
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5802 c92efa57-630b-4861-b058-cf58834340f0
2009-08-03 07:29:20 +00:00
giannozz e68f2c9d6f Cleanup of fixed parameters - only a few remains in parameters.f90.
The others have been either removed or moved to where they belong


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5436 c92efa57-630b-4861-b058-cf58834340f0
2009-02-19 09:49:49 +00:00
dalcorso f0212fe24c Problem with compilation.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5391 c92efa57-630b-4861-b058-cf58834340f0
2009-02-09 08:27:54 +00:00
giannozz c85f1c444e Minor changes tothe qexml file format, by AF: in particular, added the
flag reporting whether only half G-vector sphere is present (not
actually used in q-e but it may be useful for other codes). make.depend
updated


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4819 c92efa57-630b-4861-b058-cf58834340f0
2008-04-18 12:29:55 +00:00
cavazzon b8ee546cd0 - xml fix, wrong tag name
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4812 c92efa57-630b-4861-b058-cf58834340f0
2008-04-16 12:35:58 +00:00
giannozz dfa8dfabb9 CP/PP interface fixed for the case of spin-polarized calculations
with a different number of spin-up and spin down states, plus other
minor problems (courtesy of Anfdrea Ferretti). Minor updates to make.sys
and to samples. Removed obsolete file INPUT.HOWTO: not sure how obsolete
it was, but in any event that information should be put on the wiki


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4783 c92efa57-630b-4861-b058-cf58834340f0
2008-04-08 10:53:25 +00:00
giannozz f577757c85 Changes by Andrea Ferretti to make the qexml format more rational:
version number added to the file, so that we have a way to deal with
incompatible changes in the future; miscellaneous tags put into a
CONTROL files; field IONS made uniform with the rest of the file;
rationalization of the names of tag STARTING_MAG (now MAGNETIZATION_INIT),
uniform tag structure (as for IONS above). Some of these changes are
incompatible with the previous format, but it will still possible to
read files from previous versions, though. Only third-party software
reading the qexml format may be affected, but it is unlikely that there
is any (in addition to those by AF)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4774 c92efa57-630b-4861-b058-cf58834340f0
2008-04-04 14:34:52 +00:00
cavazzon 2555d5b26f - Bug Fix, in restarting CP simulation with nspin=2
pointed out by Antonio Tilocca


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4757 c92efa57-630b-4861-b058-cf58834340f0
2008-03-23 18:23:51 +00:00
giannozz 00a466b5dd Fixed weird problem with left-handed axis: volume calculated as determinant
of the matrix of the axis is negative! Thanks to Timothy Havel who found the
bug and the solution


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4217 c92efa57-630b-4861-b058-cf58834340f0
2007-09-05 16:20:34 +00:00
cavazzon 483cd73f98 - changes for CP ensemble-dft parallelizatio
- clean up in subroutine from_restart
- more interfaces


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3919 c92efa57-630b-4861-b058-cf58834340f0
2007-04-26 09:24:37 +00:00
giannozz 5aca8396b1 1) no need to write k+G vectors if wavefunctions are not collected
2) option disk_io='none' implemented (sort of)
3) no need to write Ef for each k-point
4) Documentation updated


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3846 c92efa57-630b-4861-b058-cf58834340f0
2007-03-14 09:47:57 +00:00
giannozz ce10c8550c reduce_io => tksw; unused variable tvlocw removed
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3808 c92efa57-630b-4861-b058-cf58834340f0
2007-02-22 08:45:23 +00:00
sbraccia 36065a3c06 Matrix lambda_repl not properly deallocated. C.S.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3651 c92efa57-630b-4861-b058-cf58834340f0
2007-01-12 20:02:56 +00:00
cavazzon dde1f5e1c9 - further parallelization of ortho and distribution of
lambda matrixes on a square mesh PxP of processors.
  The number of processors used in the run not necessarily should be equal
  to a perfect square PxP, the code, in distributing lambda,
  try to use an optimal (for performances) square PxP less or equal than the
  number of procs used.
- the size (Np=PxP) of the processor mesh to be used in distributing lambda
  and ortho, can be suggested using the namelist keyword
  ortho_para = Np
  in the electrons namelist
- the distribution of lambda matrixes is required to save
  memory in run with an high number of bands.
  In a system with 2800 bands, the memory saved is about 200Mbyte
  per proc/core if a sufficient number of proc ( some hundreds )
  is used.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3643 c92efa57-630b-4861-b058-cf58834340f0
2007-01-05 15:32:43 +00:00
cavazzon ebcb8f9928 - Change in the restart layout!
- Incoherences between gk-vectors and wfc-component eliminated,
  now collected wfc components are stored in the same order
  of gk-vectors. This will also save disk space.
- Some TAGS in data-file changed.

WARNING THE NEW LAYOUT IS NOT BACKWARD COMPATIBLE!


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3467 c92efa57-630b-4861-b058-cf58834340f0
2006-10-19 16:58:32 +00:00
cavazzon 4d54159f1c - restart dir is now created at the beginning of the run
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3399 c92efa57-630b-4861-b058-cf58834340f0
2006-09-19 10:52:47 +00:00
cavazzon a74dfc1490 - temporary nelup should be >= neldwn
- fixed problem with occupations and restarting


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3362 c92efa57-630b-4861-b058-cf58834340f0
2006-09-06 12:28:56 +00:00
cavazzon a31b50db3e - confusing scradir substituted everywhere with outdir,
that for CP now indicates the directory containing
   all outputs


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3326 c92efa57-630b-4861-b058-cf58834340f0
2006-08-12 12:27:56 +00:00
cavazzon c6abb92ea4 - new verbosity option: verbosity = 'default+projwfc'
to enable the printing of wave functions projections
  on atomic states.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3324 c92efa57-630b-4861-b058-cf58834340f0
2006-08-11 15:39:37 +00:00
cavazzon 7601c0b617 - more subroutines taken out from modules
- enhanced restart procedure, with disk_io='high'
  more stuff is saved to restart dir, this is required
  for post-processing and pw.x codes.
- wave functions are read following the iotk link, without
  explicitly open the file, this increases the possibility
  for interoperability and backward compatibility.
- added input parameter saverho (to control the saving of charge density),
  disk_io has a more general meaning
- merging of the subroutine that computes dekin stress component
- atomic wave function occupations factors ( "oc" ) now
  are copied to internal "atom" module.
- various cleanups


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3322 c92efa57-630b-4861-b058-cf58834340f0
2006-08-11 08:29:52 +00:00
cavazzon 2f2b88494a - same eletronic occupations array between FPMD/CPV
- lot of subroutines taken out from modules and
   corresponding interface added


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3305 c92efa57-630b-4861-b058-cf58834340f0
2006-08-03 17:47:35 +00:00
cavazzon 430daca75c - removed the spin dimension from wave function in fpmd routines.
Now wave functions array have only 2 indices everywhere, the first
  for the plane waves, and the second for the electronic states.
  When a spin calculation is performed the "spin up" states
  are stored in the first "nupdwn(1)" columns of the wave functions
  array, and the "spin down" states are stored in the second "nupdwn(2)"
  columns of the same array.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3274 c92efa57-630b-4861-b058-cf58834340f0
2006-07-17 09:15:34 +00:00
cavazzon e220e33bd3 - Updates to data-file generated by CP to make it compatible with PW.
CP can now restart from PW , and PW (at gamma) can restart from CP.
  In CP the following control keyword should be specified:
    disk_io = 'high'
  to save the charge density
  In PW the following control keyword should be specified:
    restart_mode='restart',
    wf_collect = .true.
  to save wfc

- an example will follow


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3270 c92efa57-630b-4861-b058-cf58834340f0
2006-07-11 16:32:39 +00:00
giannozz 9d6dbd8959 Missing deallocation was causing errors
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3200 c92efa57-630b-4861-b058-cf58834340f0
2006-06-23 09:29:12 +00:00
cavazzon c7898d6453 - empty states calculation implemented also for CP
- some more merging
- some dependency removed
- clean-ups


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3190 c92efa57-630b-4861-b058-cf58834340f0
2006-06-22 10:05:15 +00:00
kkudin 42cd902b4e Fix another nprint_nfi related bug, related to the I/O and MPI stuff.
Kostya


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3162 c92efa57-630b-4861-b058-cf58834340f0
2006-06-06 21:39:51 +00:00
cavazzon f44cd08e1b - cleanups of unused features/source lines/modules
- blue gene fix (suggested by C. Bekas)
- CP postprocessing documentation
- small changes to restart file to allow CP restart from
  PW run (at gamma).


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3149 c92efa57-630b-4861-b058-cf58834340f0
2006-06-01 10:51:33 +00:00
cavazzon 640af0ba30 - conforming other subroutines to new charge density files
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3073 c92efa57-630b-4861-b058-cf58834340f0
2006-05-03 23:24:31 +00:00
giannozz 75d45a1c6f - CP: cleanup of dipole printout
- PW: do not try to remove the entire prefix.save directory, it doesn't work
  for many compilers. Remove the prefix.save/data-file.xml file instead when
  starting a calculation from_scratch to prevent restarting from inconsistent
  data. Notice that the original content of the prefix.save directory is
  destroyed (except for the charge density) in the case of a non-scf or band
  calculation as well.
- PW+CP : write rho in binary format; in the LSDA case write rhoup+rhodw in
  one file and rhoup-rhodw in 'polarization' file (or should it be called
  'magnetization' like in the noncolinear case?). Beware: you cannot read
  LSDA files produced by early versions.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3065 c92efa57-630b-4861-b058-cf58834340f0
2006-05-02 16:52:37 +00:00
cavazzon e96397c3db - wrong indexes for lambda, mistake of the previous commit
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3058 c92efa57-630b-4861-b058-cf58834340f0
2006-04-28 16:27:55 +00:00
cavazzon 875f60bacb - bug fix: stress with nlcc
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3057 c92efa57-630b-4861-b058-cf58834340f0
2006-04-28 15:56:19 +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 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
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 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 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
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
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 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 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
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
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
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