Commit Graph

887 Commits

Author SHA1 Message Date
giannozz 842829a87e Compilation problem fixed. I think that routine dforceb is wrong anyway:
argument "dg2" is defined dg2( nat, nhm, nhm, nspin), while what is passed
is deeq( nhm, nhm, nat, nspin)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4598 c92efa57-630b-4861-b058-cf58834340f0
2008-01-04 11:20:52 +00:00
giannozz 89763f735c FFT drivers for COMPLIB and CXML removed as well
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4594 c92efa57-630b-4861-b058-cf58834340f0
2008-01-03 10:56:26 +00:00
giannozz c72fbaba43 Oops, forgot to add the new error module
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4592 c92efa57-630b-4861-b058-cf58834340f0
2008-01-03 10:09:09 +00:00
giannozz 231f4e72cc "error" moved from flib/ to Modules/, as suggested by Axel, into
Modules/error_handler.f90 . Not really an elegant solution, since
the module in error_handler is never used and subroutine "errore"
is not in the module, but better than it used to be. All makefiles
and make.depend updated (fixes yesterday's linking error as well).
Minor changes here and there as well.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4591 c92efa57-630b-4861-b058-cf58834340f0
2008-01-03 09:02:32 +00:00
cavazzon d983674c35 - further cleanup to save some memory
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4590 c92efa57-630b-4861-b058-cf58834340f0
2008-01-02 18:00:00 +00:00
cavazzon 6ed9c11e1d - cleanup
- bug fix in chargedensity for task groups,
  it could came out when the number of states
  are not a multiple of the size of the group


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4586 c92efa57-630b-4861-b058-cf58834340f0
2008-01-02 11:41:46 +00:00
cavazzon 85f89cc3d3 - new simplified fft interface and simplified call tree
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4578 c92efa57-630b-4861-b058-cf58834340f0
2007-12-31 11:01:33 +00:00
cavazzon 7f75954c69 - cleanup
- fft 3D parallel driver generalized to include standard and task groups fft
- cp fft spacific driver removed.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4570 c92efa57-630b-4861-b058-cf58834340f0
2007-12-29 10:10:20 +00:00
cavazzon 5136857d1c - cleanup
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4568 c92efa57-630b-4861-b058-cf58834340f0
2007-12-28 14:10:02 +00:00
cavazzon 2493d54cd6 - BUG FIX for task groups, It could came out when number of bands
was not a multiple of the number of processors and gruop.
  Most probably this is the bug that was pointed out by Konstantin Kudin
  some time ago
- fft task groups driver replaced by the common CP/PW driver in Module


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4557 c92efa57-630b-4861-b058-cf58834340f0
2007-12-27 10:28:59 +00:00
cavazzon 3b61944c12 - clean-up, there was still two version of rhoofr,
now only one remains


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4554 c92efa57-630b-4861-b058-cf58834340f0
2007-12-24 10:21:20 +00:00
cavazzon 86986d99c6 - more blas calls, performance improvement
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4553 c92efa57-630b-4861-b058-cf58834340f0
2007-12-24 10:18:46 +00:00
cavazzon 4c60b5fcce - clean-up, added blas calls in place of fortran loops
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4552 c92efa57-630b-4861-b058-cf58834340f0
2007-12-23 10:45:09 +00:00
cavazzon fc8f2731be some MPIs (like OpenMPI) the first time they call a collective mpi routine take
much more time than the calls that follows, because of initialization activities.
 Then, where performances are evaluated, a dummy call to the parallel
 subroutine has been added before the timed one.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4527 c92efa57-630b-4861-b058-cf58834340f0
2007-12-14 11:12:46 +00:00
paulatto c292822bde A few modification aiming at the solution of PAW convergence problems, not yet definitive.
Precision of dylmr2 increased a bit, maybe it's not necessary
mix_rho messed up a bit, included the possibility to normalize mixing matrix (disabled by default)
Added a currently unused function in paw_init to increase integration precision on the fly


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4498 c92efa57-630b-4861-b058-cf58834340f0
2007-12-04 14:20:36 +00:00
giannozz c1a33de38f Fixed yesterday's compilation problem: guess.f90 removed, para_dgemm
re-added (to cglib, only place where it is used)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4469 c92efa57-630b-4861-b058-cf58834340f0
2007-11-22 15:14:36 +00:00
cavazzon 63ff74da8f - fix in read pseudo,
upf grid component associated to atomic grid


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4456 c92efa57-630b-4861-b058-cf58834340f0
2007-11-20 12:55:08 +00:00
paulatto 776642ce05 Recent modifications caused bug when using non-upf pseudopotential. Now I'll check if it happens elesewhere...
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4455 c92efa57-630b-4861-b058-cf58834340f0
2007-11-20 11:13:31 +00:00
giannozz 28b4e9ba19 Minor cleanup; max number of species brought back to 10
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4447 c92efa57-630b-4861-b058-cf58834340f0
2007-11-19 14:51:15 +00:00
cavazzon bf74ac09d1 - new file mp_base.f90 containing mpi wrapper for block communications,
like in it was in reduce sub of PW. This is to avoid large temporary
  array allocations in module mp.f90 (mp.f90 calls subs in mp_base.f90).
  On the other hands mp.f90 provide the general interfaces for different
  kind of data and data size checking.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4441 c92efa57-630b-4861-b058-cf58834340f0
2007-11-17 14:32:10 +00:00
giannozz 66cae3b1cc More smd removal
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4387 c92efa57-630b-4861-b058-cf58834340f0
2007-11-02 14:30:06 +00:00
giannozz c1d8cf40fc Strings Method ('smd') removed from CP and from examples.
I am not sure whether smd in PW is working or not


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4383 c92efa57-630b-4861-b058-cf58834340f0
2007-11-01 13:39:43 +00:00
degironc 93c72b5f3b make.depend again and a corrected scf_mod.f90
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4381 c92efa57-630b-4861-b058-cf58834340f0
2007-10-31 23:02:23 +00:00
degironc 33a9eac8b4 make.depend updates + a couple of small additions in PW/rad_paw_routines and atomic/c6_tfvw
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4378 c92efa57-630b-4861-b058-cf58834340f0
2007-10-31 10:31:55 +00:00
giannozz 4e55ebdfaa Redundant variable nlcc eliminated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4373 c92efa57-630b-4861-b058-cf58834340f0
2007-10-29 10:20:01 +00:00
umari 8f07f632c8 Some cleaning 8-->dp, and dynamic allocations introduced
P.U.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4369 c92efa57-630b-4861-b058-cf58834340f0
2007-10-26 00:48:51 +00:00
giannozz a2f2848f92 More static arrays and dimensions removed: rho_at rho_atc natx nbndxx
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4365 c92efa57-630b-4861-b058-cf58834340f0
2007-10-24 15:36:52 +00:00
giannozz 9683c28102 make.depend files updated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4363 c92efa57-630b-4861-b058-cf58834340f0
2007-10-23 20:06:04 +00:00
giannozz 8df6e5b3a5 More removal of static arrays: chi, nchi, lchi, jchi, oc, nchix
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4362 c92efa57-630b-4861-b058-cf58834340f0
2007-10-23 19:47:26 +00:00
paulatto d858b4a51b New PAW version, now completely working on radial grid. Code on FFT grid can still be compiled using __GRID_PAW flag (but may not work a
nymore). Other things working: parallel, gamma-only.

Files vxc_t, exc_t and vxcgc moved from atomic to Modules (to prevent cyclic dependencies).

Other random fixes: a kind in init_vloc, a call to infomsg in ./PH/add_for_charges.f90.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4358 c92efa57-630b-4861-b058-cf58834340f0
2007-10-22 14:54:29 +00:00
giannozz 2a4fdfb19d Removal of a few occurrences of static dimensioning to "ndmx"
(max number of radial grid points)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4348 c92efa57-630b-4861-b058-cf58834340f0
2007-10-17 07:47:49 +00:00
giannozz 92d2c02c40 Old BHS potentials removed everywhere
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4345 c92efa57-630b-4861-b058-cf58834340f0
2007-10-16 15:07:42 +00:00
umari a6aec2b2a8 Small error corrected.
P.U.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4344 c92efa57-630b-4861-b058-cf58834340f0
2007-10-16 15:02:56 +00:00
giannozz 646edcf97f Old BHS analytical pseudopotentials removed
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4338 c92efa57-630b-4861-b058-cf58834340f0
2007-10-11 20:14:38 +00:00
giannozz f7e95b2df4 No reason to use pseudopotential arrays starting from 0 instead of 1;
obsolete variable removed


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4323 c92efa57-630b-4861-b058-cf58834340f0
2007-10-08 07:33:57 +00:00
cavazzon e1b0183fe7 - xlf complains for an array argument passed as vloc(1) to a subroutine
with an explicit interface (formfn) where the array is declared as
  vloc( n-somthing ). xlf is right.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4315 c92efa57-630b-4861-b058-cf58834340f0
2007-10-06 09:00:57 +00:00
cavazzon c90c660f24 - check on task_group and fpmd (not yet fully implemented)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4314 c92efa57-630b-4861-b058-cf58834340f0
2007-10-06 08:23:50 +00:00
giannozz 6d97829a14 Fixed stupid error in "read_file" that was causing crashes in all
phonon and postprocessing codes (Andrea please check the spin-orbit case)
Redundant variables in uspp_param (mostly) removed


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4313 c92efa57-630b-4861-b058-cf58834340f0
2007-10-06 08:23:39 +00:00
cavazzon b8099605db - old FPMD pseudo_ncpp type removed and substituted with pseudo_upf.
as a consequence very old FPMD pseudopotential files are no more
  supported, they need to be converted with fpmd2upf.x upf tool.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4312 c92efa57-630b-4861-b058-cf58834340f0
2007-10-05 15:34:15 +00:00
giannozz 216c32ccd3 The following pseudopotential-related variables in module uspp_param:
zp, psd, dion, betar, jjj, qqq, qfunc, qfcoef, vloc_at, rinner,
   nbeta, kkbeta, nqf, nqlc, lll, tvanp
have been replaced by the corresponding variables in structure 'upf'.
There shouldn't be any side effects, but who knows. There is still a
copy of the above variables that will be removed sooner or later.
Basically : variable([i,j,k,..,]n) => upf(n)%variable [(i,j,k,..)]
Note that upf%qfunc has for the time being three indices instead of two,
and that upf%kkbeta is the analogous of kkbeta and not what it used to be.
The logic of this operation will be clearer when it will be completed


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4308 c92efa57-630b-4861-b058-cf58834340f0
2007-10-05 09:26:23 +00:00
giannozz 75a35c3282 All pseudopotentials of pwscf are read into the "upf" structure and
then copied into the internal modules. This is a first step towards
1) elimination of fixed-dimension atomic pseudopotential arrays,
2) reduction of memory usage by pseudopotentials,
3) cleanup of the pseudopotential mess.
Next steps: 1) the same in CP, 2) replacement of variables in "uspp"
module with an array of "upf" structures.

Beware: calculations using old formats should work as before, but
don't count on it


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4299 c92efa57-630b-4861-b058-cf58834340f0
2007-10-02 16:54:13 +00:00
cavazzon fe24904b79 - avoid to allocate memory when not necessary
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4282 c92efa57-630b-4861-b058-cf58834340f0
2007-09-20 15:16:43 +00:00
cavazzon 9ce3f646f2 - some loop substituted with blas call (DGER)
- use of matrix symmetry to reduce communications
  and computations in sigset and tauset


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4272 c92efa57-630b-4861-b058-cf58834340f0
2007-09-20 10:17:33 +00:00
giannozz 61d36781bb Obsolete file removed
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4269 c92efa57-630b-4861-b058-cf58834340f0
2007-09-20 08:20:55 +00:00
paulatto 08fedbe2f0 SCF with Projector-Augmented Wave Pseudopotential (PAW) routines added.
This means that a lot of routines have been modified and a few files have
been added. During the year several people have contributed to this code,
mainly Guido Fratesi, Ricardo Mazzarello, Stefano de Gironcoli, Andrea Dal
Corso and me (Lorenzo Paulatto).

A brief report of modified or added files follows, further down you will
find a loger report of modifications that was necessary to merge develop_PAW
branch with the current CVS version.

Current version is not 100% functional, but it doesn't brake anything else and
can be used to generate and test PAW pseudopotential.

      *************************************
      *** Brief report of modifications ***
      *************************************
Modified files:
PW/clean_pw.f90
PW/electrons.f90
PW/print_clock_pw.f90
PW/hinit0.f90
PW/potinit.f90
PW/newd.f90
PW/summary.f90
PW/setup.f90
PW/read_pseudo.f90
PW/init_us_1.f90
PW/init_run.f90
PW/mix_rho.f90
atomic/atomic_paw.f90
atomic/write_paw_recon.f90
atomic/ld1_writeout.f90
atomic/write_resultsps.f90
atomic/ld1inc.f90
atomic/ld1_readin.f90
atomic/gener_pseudo.f90
atomic/parameters.f900
atomic/run_pseudo.f900
atomic/set_rho_core.f90
atomic/pseudovloc.f90
Modules/read_upf.f90
Modules/uspp.f90
Modules/pseudo_types.f90
Modules/parameters.f90

Added files:
PW/grid_paw_routines.f90
PW/rad_paw_routines.f90
Modules/grid_paw_variables.f90
Modules/read_paw.f90

Added files that will be removed:
PW/rad_paw_trash.f90
PW/paw_xc.f90

Examples:
examples/PAWexample contains a full test of PAW pseudopotential
for Oxygen. The test consist in these tasks:
 - 2 norm conserving, 2 US and 4 PAW pseudopotentials are
   generated and tested in ld1
 - pw test for an isolated O atom at different cutoffs
 - pw test for an O2 molecule at different O-O distance
please read examples/PAWexample/README for (a few) details.

NOTES:
1. new modifications to atomic_paw (and related) from ADC have been rolled
   back, as they were breaking a lot of things, I will reintroduce them
   later when I am sure that everything works properly.
2. the files PW/paw_xc.f90 and Modules/rad_paw_trash.f90 will be removed in
   the next few weeks.

TODO:
1. use new ld1 XC code as much as possible, and remove legacy XC routines
   from rad_paw_routines
2. full self-consistency with radial energies
3. make new Harris-Foulkes estimate paw-aware
4. provide some kind error estimate
5. FORCES and stress!! (require symmetrization of becsums)
6. cleanup

    ************************
    *** merge of PW code ***
    ************************
Versions notation:
OLD=version from 2 years ago used as reference to generate the patches
NEW=CURRENT=current trunk version
PAW=current develop_PAW version

Note: pseudo-potential input and allocation routines changed
      a lot in the last years, this is a diagram:
OLD:PW/readin ~~> PAW:PW/read_pseudo --> disappears
pops out --> PAW:PW/readin ~~> NEW:PW/read_pseudo

added files:
Modules/read_paw.f90    (contains module read_paw_module with subroutines
                         paw_io nullify_pseudo_paw, allocate_pseudo_paw and
                         deallocate_pseudo_paw previously in removed file
                         Modules/readpseudo.f90. Also contains module
                         paw_to_internal with subroutine set_pseudo_paw,
                         previously in upf_to_internal.f90)
PW/paw_xc.f90           (contains OLD=PAW xc and gcxc routines as adapting paw
                         grid code to use new routines was very error prone and
                         quite worthless, as it has to be removed anyway)

Conflicts reported by CVS during merge:
DONE */Makefiles                    (all replaced with new, redone by hand)

DONE  flib/functionals.f90          (nothing to do)

DONE Modules/functionals.f90        (RNV == replaced with NEW version)
DONE Modules/atom.f90               (trivial: duped rgrid)
DONE Modules/autopilot.f90          (trivial)
DONE Modules/bfgs_module.f90        (RNV)
DONE Modules/cell_base.f90          (RNV)
DONE Modules/check_stop.f90         (RNV)
DONE Modules/constants.f90          (RNV)
DONE Modules/constraints_module.f90 (RNV)
DONE Modules/energies.f90           (RNV)
DONE Modules/input_parameters.f90   (RNV)
DONE Modules/ions_base.f90          (RNV, has 3 new subs)
DONE Modules/ions_nose.f90          (RNV)
DONE Modules/parameters.f90         (actually RNV)
DONE Modules/path_base.f90          (RNV)
DONE Modules/path_opt_routines.f90  (RNV)
DONE Modules/path_reparametrisation.f90 (RNV)
DONE Modules/path_variables.f90     (RNV)
DONE Modules/pseudo_types.f90       (cleaned double def of paw_t)
DONE Modules/read_cards.f90         (RNV)
DONE Modules/read_namelists.f90     (checked and RNV)
DONE Modules/uspp.f90               (trivial)
DONE Modules/xml_io_base.f90        (RNV)

DONE PW/read_pseudo.f90             (merged by hand with PAW PW/readin)

DONE PW/bp_calc_btq.f90             (trivial)
DONE PW/c_bands.f90                 (actually RNV)
DONE PW/ccgdiagg.f90                (RNV)
DONE PW/cegterg.f90                 (RNV)
DONE PW/cft3s.f90                   (RNV)
DONE PW/cinitcgg.f90                (RNV)
DONE PW/c_phase_field.f90           (RNV)
DONE PW/divide_et_impera.f90        (nothing to do?)
DONE PW/exx.f90                     (RNV)
DONE PW/hinit0.f90                  (easy)
DONE PW/h_psi.f90                   (RNV)
DONE PW/init_run.f90                (easy)
DONE PW/kpoint_grid.f90             (nothing to do?)
DONE PW/newd.f90                    (required mod in newd_paw_grid, CHECK!!)
DONE PW/openfil.f90                 (actually RNV)
DONE PW/paw.f90                     (actually RNV)
DONE PW/punch.f90                   (RNV)
DONE PW/pwscf.f90                   (quite RNV)
DONE PW/set_kup_and_kdw.f90         (RNV)
DONE PW/setup.f90                   (RNV + 2 line merged by hand)
DONE PW/sgama.f9                    (actually RNV)
DONE PW/sgam_at_mag.f90             (actually RNV)
DONE PW/stop_run.f90                (actually RNV)
DONE PW/stres_gradcorr.f90          (actually RNV)
DONE PW/symrho_mag.f90              (nothing to do)
DONE PW/v_of_rho.f90                (RNV)

DONE PW/compute_fes_grads.f90       (RNV)
DONE PW/gradcorr.f90                (RNV)
DONE PW/input.f90                   (RNV)
DONE PW/pw_restart.f90              (RNV)
DONE PW/read_ncpp.f90               (actually RNV)
DONE PW/summary.f90                 (RNV + inserted new PP type)
DONE PW/wfcinit.f90                 (RNV)

the hard ones:
DONE PW/electrons.f90   (adapted code to new syntaxes, a lot of cleanup, removed
                         some PAW junk that can be readded later, removed parts
                         that were applyed twice, or had been removed in trunk,
                         the rhog allocations and usage may need fixes)
DONE PW/mix_rho.f90     (merged tauk and paw additions, a bit of cleanup and smarter
                         variables names)
DONE PW/init_us_1.f90   (qtot redefined with "triangular" index nb,mb-->ijv)

modified for compiling:
Modules/io_files.f90    (depatched)
PW/pwcom.f90            (depatched)
Modules/parameters.f90  (temporary readded cp_lmax = lmaxx+1)
PW/newd.f90             (merge was wrong, redone mostly by hand)
PW/read_ncpp.f90        (depatched)
PW/read_pseudo          (small fixes)
PW/sgam_at_mag.f90      (depatched)
PW/sgama.f90            (depatched)
PW/stres_gradcorr.f90   (depatched)

modified for running:
PW/clean_pw.f90         (added call to deallocate_paw_internals)

Modifications to PAW routines:
1. compute_onecenter_charges and compute_onecenter_charges modified to
   comply with new structure of v_xc (in v_of_rho.f90), requiring new
   g-space densities to be saved and computed --> using old xc routines
   as this code will be removed.
2. qrad size has changed, prad and ptrad had to be changed accordingly.
3. several minor modifications to use new radial grid structure.
4. infomsg arguments changed, very funny bug followed.
5. added new routine deallocate_paw_internals, called by PW/clean_pw.f90
   required to run pp.x with more than one q-point(and good programming
   practice)


    *************************
    *** merge of LD1 code ***
    *************************
2nd try: atomic code replaced with current version, then merge by hand
the files that are used by paw subsystem:
* atomic_paw.f90        (replaced with most recent version from develop_PAW
                         routine us2paw and paw2us taken from newer trunk
                         version, a lot of minor changes.)
* gener_pseudo.f90      (fixes)
* ld1inc.f90            (PAW variables added)
* ld1_readin.f90        (PAW variables added, I am not sure if lpaw should go
                         in input or inputp namelist)
* ld1_writeout.f90      (it was only necessary to add a few lines)
* pseudovloc.f90        (nothing to do)
* run_pseudo.f90        (almost nothing to do)
* set_rho_core.f90      (readded a few lines for lnc2paw)
* write_paw_recon.f90   (nothing to do)
* write_resultsps.f90   (nothing to do: trunk version is more
                         PAW-aware than PAW version)

Main problems were found in subroutines run_pseudo and gen_pseudo,
a little code had to be rewritten to comply with new variable names
and fix with merge.

TODO: fix atomic_paw routines to use minimal allocated arrays insetad
of ndmx sized ones; try to use the pawet as much as possible. Remove
test lines and other garbage. Find a fix for PAW2.

The first week of september Andrea Dal Corso uploaded a few modifications to
the atomic_paw routines. I had to rollback them as the structure of atomic_paw
has changed a lot and reimplementing them is probably easier and definitely
safer than fixing everything. I will do it soon, I swear!

LP


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4257 c92efa57-630b-4861-b058-cf58834340f0
2007-09-18 10:05:46 +00:00
cavazzon 5673545162 - tasks group cleanup, removed some redundant arrays to save memory
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4254 c92efa57-630b-4861-b058-cf58834340f0
2007-09-17 09:42:39 +00:00
cavazzon 07b64667b7 - added info on the ortho grid for matrix distribution
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4253 c92efa57-630b-4861-b058-cf58834340f0
2007-09-17 09:41:01 +00:00
umari 4a8b9e1d1a Now electron_dynamics='cg' works properly.
P.U.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4249 c92efa57-630b-4861-b058-cf58834340f0
2007-09-17 09:04:55 +00:00
umari 0084b1cdfa Small bugs corrected,
now ensemble dft+nspin=2 is working agian
The case cold-smearing has been tested
the case fermi-dirac is stll to be checked

P.U.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4241 c92efa57-630b-4861-b058-cf58834340f0
2007-09-13 15:20:43 +00:00
umari c88b2fa81b Routine inner_loop_cold used also for fermi-dirac smearing,
spin polarization still to be verfied

P.U.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4227 c92efa57-630b-4861-b058-cf58834340f0
2007-09-10 15:36:10 +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
giannozz 0cd1464fcc Oops...
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4216 c92efa57-630b-4861-b058-cf58834340f0
2007-09-05 15:18:47 +00:00
giannozz a97989fae9 Removed dependency on mmaxx/ndmx
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4213 c92efa57-630b-4861-b058-cf58834340f0
2007-09-05 10:53:05 +00:00
giannozz caf7b9a70e cp_fpmd: do not write info on "grid box" if absent, fixed an error message
with questionable spelling
fftdrv: use the same scatter algorithm as PWscf (what_scatter=1)
the previous default, what_scatter=0, did not allow nr3x to differ from nr3


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4188 c92efa57-630b-4861-b058-cf58834340f0
2007-08-29 09:37:52 +00:00
cavazzon 42de5b9020 - cleanups
- another large replicated array eliminated in uptadc
- better definition of distributed matrix leading dimension


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4176 c92efa57-630b-4861-b058-cf58834340f0
2007-08-22 10:25:23 +00:00
cavazzon 8d614f73a6 - cleanups
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4175 c92efa57-630b-4861-b058-cf58834340f0
2007-08-22 10:22:35 +00:00
cavazzon 32a9274c93 - new version of reghter ( preghter ) without global replicated
data. Matrixes are distributed across processors.
- to turn on the use of the new algorithm, a new value for
  input parameter "diagonalization", has been introduced:

diagonalization = 'david+distpara'

work like david but use fully distributed memory
iteration loop. Allocated memory scale down with the
number of procs. Procs involved in diagonalization can
be changed with input parameter "ortho_para".
On multi core/CPUs often it is convenient to let only
one core per CPU to work on linear algebra.

User can tune the number of core involved in diag. with
the keyword in electrons namelist:

ortho_para = NN

then the code will use the largest square smaller than NN,
since matrixes are always distributed on a suqre grid of procs.
Note that if NN < 2*nproc, then one proc every two is taken
for parellel diag. The same for NN < 4*proc, one every four
is taken. This is to minimize memory contention on multi core proc.
In example, if you run with 64procs on a 4core CPU cluster,
it may be convenient to specify:
ortho_para = 16
So that only one core per CPU is involved in diagonalization.
Further performance enhancements will be possible using
OpenMP BLAS inside regter/cegter/rdiaghg/cdiaghg (to be implemented)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4153 c92efa57-630b-4861-b058-cf58834340f0
2007-08-18 15:46:00 +00:00
giannozz 2eff4aca7f make.depend updated (they are no longer automatically updated)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4133 c92efa57-630b-4861-b058-cf58834340f0
2007-08-13 17:12:33 +00:00
degironc 6da8252f73 a radial_grid_type is introduced in Modules and used in atomic-related part
many changes but results are identical before and after.
sdg


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4127 c92efa57-630b-4861-b058-cf58834340f0
2007-08-12 00:08:53 +00:00
cavazzon dc221b4f8d - again on ortho_group, small fix in group creation
- new descriptor init


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4126 c92efa57-630b-4861-b058-cf58834340f0
2007-08-11 15:48:11 +00:00
cavazzon 748c36eca7 - ortho_group initialization modified.
Now when the total number of procs is >= 2 * number of procs in ortho group,
  only processors with even rank are included in ortho
  group. This should stess less the memory BW in multi-core procs.
  Normally in ortho group are included processors with rank < number of
  procs in ortho group.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4124 c92efa57-630b-4861-b058-cf58834340f0
2007-08-11 13:36:00 +00:00
cavazzon 88edef02d4 - changes that depend from the changes in the modules
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4105 c92efa57-630b-4861-b058-cf58834340f0
2007-08-09 20:49:40 +00:00
cavazzon 0959a73572 - bug fix, manage grid where nr3 /= nr3x
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4076 c92efa57-630b-4861-b058-cf58834340f0
2007-07-26 21:58:37 +00:00
cavazzon 0d859a4931 - now fftdrv use the same fft_scatter of PW,
this fix a recent bug reported by Nicola and Paolo


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4075 c92efa57-630b-4861-b058-cf58834340f0
2007-07-26 20:52:37 +00:00
kkudin b569652148 Small fix, 1 taskgroup is same as none ...
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4074 c92efa57-630b-4861-b058-cf58834340f0
2007-07-26 18:39:33 +00:00
cavazzon f2ac9d9a3d - mp_barrier added to avoid problems with buggy MPI implementations,
they should not slow down the execution in any way.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4065 c92efa57-630b-4861-b058-cf58834340f0
2007-07-24 21:58:24 +00:00
cavazzon 7ddf6c2e0b - set of dimensions used to distribute n by n matrixes
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4064 c92efa57-630b-4861-b058-cf58834340f0
2007-07-24 21:55:28 +00:00
cavazzon 7115b5314d - tasks group array dimension set to a "safe" value
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4063 c92efa57-630b-4861-b058-cf58834340f0
2007-07-24 21:52:35 +00:00
cavazzon 3e1c4b4bfc - additional check on array size
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4062 c92efa57-630b-4861-b058-cf58834340f0
2007-07-24 21:47:58 +00:00
cavazzon 360fe0fc38 - nlfq, parallelization of the contribution to fion,
allocated memory now scale with the number of processor
  in the ortho group. To be exact memory scale like the
  square root of the number of processor used in the ortho
  group. With 4 proc the allocated memory is 1/2 of the memory
  required with a single proc.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4058 c92efa57-630b-4861-b058-cf58834340f0
2007-07-24 14:42:59 +00:00
cavazzon 869954dad3 - nlfl, fix of an error introduced with the previous commit
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4057 c92efa57-630b-4861-b058-cf58834340f0
2007-07-24 12:30:14 +00:00
cavazzon 06b712fd11 - parallelization of matrix operations inside nlfl,
allocated memory inside the subroutine now
  scale with the number of processors.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4056 c92efa57-630b-4861-b058-cf58834340f0
2007-07-24 10:57:46 +00:00
giannozz 7b8c1ad33e Default value for nr1b, nr2b, nr3b is set to 0. The nr*b MUST be provided
for US PP, are completely ignored (box grid is not initialized) for NC PP.
This prevents nasty errors in US PP calculations if nr*b are forgotten


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4045 c92efa57-630b-4861-b058-cf58834340f0
2007-07-18 10:23:06 +00:00
giannozz 56175fab69 Dependencies updated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3998 c92efa57-630b-4861-b058-cf58834340f0
2007-07-05 11:08:31 +00:00
giannozz ddfe7191ca Some max_second confusion cleaned up. It is still initialized in too
many different places, but at least to the same value (10^7 s)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3980 c92efa57-630b-4861-b058-cf58834340f0
2007-06-25 13:35:29 +00:00
giannozz ac82c40ab7 configure updated (only configure.ac had been previously updated).
LD used instead of MPIF90 in Makefiles for loading. Since LD is used
anyway in iotk, it makes sense to use it. In some cases it may be
useful to have distinct options for compiling and for loading.
Minor cleanup in some routines


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3976 c92efa57-630b-4861-b058-cf58834340f0
2007-06-20 17:04:47 +00:00
cavazzon 1b60e5c548 - new macro __LINUX_ESSL added to link essl for linux
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3966 c92efa57-630b-4861-b058-cf58834340f0
2007-06-12 16:18:37 +00:00
cavazzon 96d75d50bb - solved a performance problem in the computation
of ionic forces, CP routine force_ps of cplib called by vofrho
  substituted by FPMD routine force_loc


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3963 c92efa57-630b-4861-b058-cf58834340f0
2007-06-11 14:07:27 +00:00
cavazzon 0aa4ca8c94 - as usual PGI does not catch all the syntax error!?
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3920 c92efa57-630b-4861-b058-cf58834340f0
2007-04-26 09:42:09 +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 669b8b20e5 Misc updates: configure (mac intel + ifort), make.depend, Makefiles
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3907 c92efa57-630b-4861-b058-cf58834340f0
2007-04-10 20:39:42 +00:00
umari 1662434a5a Added new control options for conjugate gradient in cp and
for ensemble dft
In ensemble dft only for cold smearing

P.U.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3871 c92efa57-630b-4861-b058-cf58834340f0
2007-03-21 23:46:22 +00:00
umari 81fd9a350b Added new state by state preconditioning on G for
conjugate gradient in cp code and some do loop
replaced by blas call

P.U.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3868 c92efa57-630b-4861-b058-cf58834340f0
2007-03-19 19:17:28 +00:00
umari 5741d7ba1f *** empty log message ***
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3852 c92efa57-630b-4861-b058-cf58834340f0
2007-03-19 01:22:28 +00:00
giannozz 054e721960 Misc pseudopotential cleanup: upf_to_internal merged between CP and PW;
PAW-related stuff extracted and put into the paw module; various checks
moved to more appropriate places; initialization of obsolete variables
lloc and lmax moved elsewhere; variable zp moved to uspp_param.
All PP-reading subroutines (too many) read zp, not zv; zv is set later.
Summary for pseudopotentials unified and purged of printout of
obsolete/unused/unset variables.
PW/readin.f90 renamed to something more suggestive of what it does
(PW/read_pseudo.f90). Module PW/upf_to_internal.f90 moved to Modules/,
routine upf2internal removed from CPV/read_pseudo.f90.
Harmless error in berry phase + a few bad formats in GIPAW fixed.
Dependencies and Makefiles updated.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3851 c92efa57-630b-4861-b058-cf58834340f0
2007-03-18 19:24:56 +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
sbraccia d50d977408 Cleanup. Added a routine to remove the component of a generic vector orthogonal
the the constrain hypersurface. C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3844 c92efa57-630b-4861-b058-cf58834340f0
2007-03-12 14:15:00 +00:00
cavazzon 7230c4b7cd - bug fix, exit condition in FPMD/NEB calculation
when conv_elec = .false. and ttexit = .true.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3841 c92efa57-630b-4861-b058-cf58834340f0
2007-03-09 11:34:11 +00:00
cavazzon 0ffdcccc5c - removed unused subs.
- clean-ups
- fix a bug in the computation of Center of Mass displacement


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3839 c92efa57-630b-4861-b058-cf58834340f0
2007-03-05 18:02:22 +00:00
cavazzon 42e937f196 - unused subroutine removed
- more interfaces
- cp/fpmd "from_restart" merged
- cp/fpmd "movecell" merged
- clean-ups


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3836 c92efa57-630b-4861-b058-cf58834340f0
2007-03-05 10:16:05 +00:00
cavazzon 50055a537b - clean-up, removed a debug printing of ionic forces on unit 26
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3830 c92efa57-630b-4861-b058-cf58834340f0
2007-03-01 09:54:03 +00:00
cavazzon debaa7e0ff - again LDA+U
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3827 c92efa57-630b-4861-b058-cf58834340f0
2007-02-28 18:23:37 +00:00
cavazzon 3e4873d52b - fix for LDA+U contribution to the forces
- clean-ups in init and restart


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3826 c92efa57-630b-4861-b058-cf58834340f0
2007-02-28 17:54:38 +00:00
cavazzon c37e3e8023 - bug fix, the subroutine was not working if empty_states_nbnd > nbnd
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3824 c92efa57-630b-4861-b058-cf58834340f0
2007-02-28 14:36:57 +00:00
cavazzon e255615328 - more merging: now there is only one dforce routine.
- developing: some input parameters damped to file qe_input.xml


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3819 c92efa57-630b-4861-b058-cf58834340f0
2007-02-26 14:48:03 +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
degironc bf6cdc5634 elimination from CPV/metaxc.f90 of code non-specific parts that have been
moved to Modules/metagga.f90
stefano


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3781 c92efa57-630b-4861-b058-cf58834340f0
2007-02-14 08:51:32 +00:00
cavazzon 5f7902e27a - bug fix in empty states subroutine
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3750 c92efa57-630b-4861-b058-cf58834340f0
2007-02-05 16:40:06 +00:00
giannozz f2944b0c1c The option to write charge density to data file is only "saverho",
no longer "disk_io='high'"


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3747 c92efa57-630b-4861-b058-cf58834340f0
2007-02-05 15:13:59 +00:00
giannozz 32606e34bd Another SX=>sx; misspell; dependencies updated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3746 c92efa57-630b-4861-b058-cf58834340f0
2007-02-05 12:42:08 +00:00
umari fd0e5f2937 Minor changes for cold smearing in cp
P.U.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3745 c92efa57-630b-4861-b058-cf58834340f0
2007-02-05 12:31:50 +00:00
giannozz f978943f35 Nec doesn't like variables containing "SX": converted to lowercase.
Misc updates


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3730 c92efa57-630b-4861-b058-cf58834340f0
2007-01-31 16:18:26 +00:00
giannozz 6357befd22 Axel's patch for single-precision constants (please do not add more!)
GIPAW/make.depend added to CVS, like all others - should be updated
when dependencies change using "./makedeps.sh GIPAW" from the root
directory of QE


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3724 c92efa57-630b-4861-b058-cf58834340f0
2007-01-30 10:38:10 +00:00
umari 3e0bbeed32 Added new file inner_loop_cold containing routines for
cold-smearing treatment of metallic systems in cp
with conjugate gradient

P.U.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3720 c92efa57-630b-4861-b058-cf58834340f0
2007-01-26 10:58:11 +00:00
sbraccia cb11cfb94d Fixed a bug in image-parallelization of NEB/SMD. Variable dim renamed dim1.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3700 c92efa57-630b-4861-b058-cf58834340f0
2007-01-20 02:26:49 +00:00
cavazzon 4778dab5f7 - bug fix in the routine that try to evaluate the performance
of the parallel matrix multiply


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3692 c92efa57-630b-4861-b058-cf58834340f0
2007-01-18 15:51:39 +00:00
cavazzon d2bad6b06a - in restarting avoid to reset wave functions when electron_velocity = 'zero'
but electron_dynamics = 'sd'


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3688 c92efa57-630b-4861-b058-cf58834340f0
2007-01-18 09:53:23 +00:00
cavazzon 01b2957482 - small fix, missing check on ortho node
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3686 c92efa57-630b-4861-b058-cf58834340f0
2007-01-17 21:25:08 +00:00
cavazzon a9e820db80 - bug fix, IF statement without a logical espression (pgi and intel
wasn't complaining)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3684 c92efa57-630b-4861-b058-cf58834340f0
2007-01-17 16:28:14 +00:00
cavazzon 8cb12db75b - avoid to use parallel driver, with scalar executable
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3677 c92efa57-630b-4861-b058-cf58834340f0
2007-01-16 15:56:35 +00:00
cavazzon 17be3ddf1a - error message called in the wrong place
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3676 c92efa57-630b-4861-b058-cf58834340f0
2007-01-16 13:48:31 +00:00
cavazzon 4ba224ec56 - further elimination of replicated data in ortho
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3655 c92efa57-630b-4861-b058-cf58834340f0
2007-01-15 00:25: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
giannozz 5f5e65cef4 More cleanup by Axel: constants, double precision constants
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3646 c92efa57-630b-4861-b058-cf58834340f0
2007-01-08 11:47:13 +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 442c54e1ea - merging of dforce, dforce_bgl and dforce_field in a single routine
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3637 c92efa57-630b-4861-b058-cf58834340f0
2007-01-03 09:04:02 +00:00
cavazzon c4a9ecd977 - clean ups, unused old FPMD subroutines and variables removed
- merging of different: runcp_ncpp runcp_uspp runcp_bgl
- more BGL specific stuff integrated and generalized


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3635 c92efa57-630b-4861-b058-cf58834340f0
2006-12-31 11:09:03 +00:00
cavazzon 649510d70b - erfc not defined everywhere
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3633 c92efa57-630b-4861-b058-cf58834340f0
2006-12-31 11:00:20 +00:00
umari e4eacc639e Clean-up of ensemble-DFT routines
P.U.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3632 c92efa57-630b-4861-b058-cf58834340f0
2006-12-30 15:48:33 +00:00
giannozz 42371342b2 More uninitialized variables
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3630 c92efa57-630b-4861-b058-cf58834340f0
2006-12-22 17:13:14 +00:00
cavazzon d6ab931cd2 - new input keyword: ortho_para
to suggest the number of processors to be used in lambda matrix
  decomposition


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3628 c92efa57-630b-4861-b058-cf58834340f0
2006-12-22 16:50:40 +00:00
giannozz abba0497fa More uninitialized variables: e_hubbard, Hubbard_lmax, nfi_run
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3627 c92efa57-630b-4861-b058-cf58834340f0
2006-12-22 09:14:21 +00:00
cavazzon 819e3b0784 - task group fix, for the case number of processors larger than
the number of bands


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3626 c92efa57-630b-4861-b058-cf58834340f0
2006-12-21 15:08:14 +00:00
cavazzon faffc246b5 - more task groups clean ups
- fix for a bug in the computation of optimal
  subdivision for parallel matrix multiplication
- parallel diagonalization is now performed only on
  the same subset of processors used for matrix multiplication


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3625 c92efa57-630b-4861-b058-cf58834340f0
2006-12-19 18:18:16 +00:00
cavazzon 3c26c23a7a - other fix in task groups, loops count when number of states
is not a multiple of the size of the group


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3611 c92efa57-630b-4861-b058-cf58834340f0
2006-12-17 23:32:38 +00:00
cavazzon eab09a43f7 - task groups, clean ups and bugs fix
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3610 c92efa57-630b-4861-b058-cf58834340f0
2006-12-17 23:11:16 +00:00
cavazzon 5d3881262a - Task Groups parallelization strategy for CP
generalized to all architectures


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3608 c92efa57-630b-4861-b058-cf58834340f0
2006-12-16 17:27:33 +00:00
cavazzon 80bd402965 - LDA plus U added to CP 3.2,
potentials and energy is ok, on the forces there is still
  some small problems. Further clean ups required.
  Contributed by
  Patrick Sit


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3605 c92efa57-630b-4861-b058-cf58834340f0
2006-12-15 17:58:58 +00:00
giannozz 3a98e2d9d4 More patches from Axel:
- correct an unquoted string (iosys) in PW/input.f90:483
(this was the cause of tonight compilation failere)
- correct a few incorrect format strings
- make more use of the constants module and thus
  provide more consistent units. NOTE, this has some
  numerical changes in the outputs, as in some places
  rather low precision and inconsistent numbers were
  used for unit conversion.
- convert all(?) single precision constants to double
  using the attached little perl program.
  exceptions: efermi.f90 (as it is supposed to be rewritten
  anyways), plotbands.f90 (it uses single precision everywhere,
  which may result in saving a significant amount of memory,
  so i converted the two double precision constants to single).
Unused routine 'set_fft_grid' removed


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3602 c92efa57-630b-4861-b058-cf58834340f0
2006-12-14 08:53:47 +00:00
giannozz 86fd46c179 Variables for pressure are always initialized
Some cleanup of input_parameters


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3600 c92efa57-630b-4861-b058-cf58834340f0
2006-12-13 08:50:19 +00:00
giannozz 34dd9fe1ef Fix for yesterday's changes to pressure in clusters
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3599 c92efa57-630b-4861-b058-cf58834340f0
2006-12-13 07:59:14 +00:00
giannozz 783c0d42e1 Variables read in module pres_ai_mod have been added to input_parameters:
the data is read into input_parameters and copied to module pres_ai_mod,
like for all the other input variables. This allows a better separation
between reading and initialization phases, removes many dependencies upon
upon pres_ai_mod. Module pres_ai_mod moved to CPV where it belongs.
Makefiles and dependency files updated. UNTESTED: it may or may not work..


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3597 c92efa57-630b-4861-b058-cf58834340f0
2006-12-12 15:35:11 +00:00
giannozz 19aaac89fa More miscellanous cleanup from Axel:
- disable locales via use of LC_ALL=C in all shell scripts
   (which will hopefully make sorted lists more consistent
    between people running with different locales).
 - remove redundant files from PW, NMR_new, VdW, VIB;
   rename subroutines if their functionality is noI
   unchanged from the original source it was taken from.
 - corresponding updates to Makefiles and dependencies.
 - whitespace cleanups (eleminate remaining tabs).
 - a few more float->DBLE


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3596 c92efa57-630b-4861-b058-cf58834340f0
2006-12-12 11:02:09 +00:00
sbraccia 7432487fe6 Dependencies updated. C.S.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3593 c92efa57-630b-4861-b058-cf58834340f0
2006-12-11 14:55:42 +00:00
sbraccia f4171e694c Few improvments of image parallelization algorithm for NEB and SMD (both potential
energy and free-energy calculations): now it works for local file-systems also.
Variables names conflicting with  fortran keywords (target) have been changed.
Clean-up of meta-dynamics code.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3592 c92efa57-630b-4861-b058-cf58834340f0
2006-12-11 14:51:54 +00:00
giannozz 9e294c022d More cleanup from Axel:
- replace variables that have the names of keywords:
  IF (this should make the code non-compilable!),
  INT, SCALE.
- CALL getenv -> CALL get_env  (which is the only place to call
  getenv(). BTW, newer fortran standards now recommend to use
  CALL get_environment_variable, so it might be needed to have
  only one platform dependend place)
- makefile cleanup in VIB (more consistent with subdirs, not yet
  perfect).
- whitespace fix (avoid tabs!).


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3591 c92efa57-630b-4861-b058-cf58834340f0
2006-12-11 10:19:53 +00:00
giannozz d4da64ec0c More cleanup from Axel:
- workaround for gfortran (it is sort of working)
- single precision constants promoted to double precision
- dfloat-> DBLE
- DIMAG ->AIMAG
- DCMPLX->CMPLX
Note that ALL calls to dfloat, dimag, dcmplx have been added recently,
since I removed all of them no more than a few months ago


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3586 c92efa57-630b-4861-b058-cf58834340f0
2006-12-02 17:58:50 +00:00
giannozz 1e235af88b More patches by Axel: all occurrences of "index" replaced by "idx".
"index" is an instrinsic and shouldn't be used as a variable.
control-M characters removed from qexml.f90


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3585 c92efa57-630b-4861-b058-cf58834340f0
2006-12-01 14:41:55 +00:00
giannozz 389fcf5872 dependencies updated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3569 c92efa57-630b-4861-b058-cf58834340f0
2006-11-25 10:47:06 +00:00
cococ 5ad6f115ce These modifications are added to enable the computation of the "quantum
Volume" and the "quantum surface" of an islated system to perform finite
pressure and/or finite surface tension MD simulations. For details look
PRL 94 145501 ('05).


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3551 c92efa57-630b-4861-b058-cf58834340f0
2006-11-20 20:09:00 +00:00
kkudin 324323a554 Sync lambda and lambdap at each step - Kostya
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3539 c92efa57-630b-4861-b058-cf58834340f0
2006-11-16 00:43:59 +00:00
cavazzon 3e5b990164 - added new version of wannier cp code, contributed by Young-Su Lee
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3522 c92efa57-630b-4861-b058-cf58834340f0
2006-11-09 23:07:52 +00:00
giannozz 19b7ba4744 Symmetric indices of variable qfunc, holding the Q(r) functions in
Ultrasoft PPs, merged into a single index. The logic of the index
should be the same as for the other USPP_related variables. Tested
for UPF format, should work for old van and rrkjus formats as well,
but I haven't tested it (tests very welcome).

Why? with default static dimensions, qfunc took 40Mb. Some compilers
(e.g. g95) store a copy of statically dimensioned arrays in objects
and executables, so 'make all' produced *.x for 1Gb or so ...
Apart from this, wasting nonscalable memory should be avoided anyway
in massively parallel machines.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3506 c92efa57-630b-4861-b058-cf58834340f0
2006-11-03 12:21:28 +00:00
umari 02a45216cf If eDFT prints on screen infos
P.U.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3493 c92efa57-630b-4861-b058-cf58834340f0
2006-10-25 17:19:06 +00:00
umari 257451b93b Bug eliminated inside inner cycle,
for eDFT

P.U.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3487 c92efa57-630b-4861-b058-cf58834340f0
2006-10-24 17:42:31 +00:00
cavazzon 2712d79f1c - removing unused old module
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3481 c92efa57-630b-4861-b058-cf58834340f0
2006-10-23 22:27:22 +00:00
cavazzon 58b0fb80e0 - removing obsolete module/subroutine
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3480 c92efa57-630b-4861-b058-cf58834340f0
2006-10-23 22:25:53 +00:00
giannozz de4c662862 Shorthand for Rydberg is Ry, not ryd
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3476 c92efa57-630b-4861-b058-cf58834340f0
2006-10-23 12:32:54 +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 fb91fb4335 - ortho rewritten to use distributed matrixes in the iteration cycle.
This will save memory for large system with thousands of electrons.
- Parallel matrix multiplication using low network traffic Cannon's algorithm
- New processors subgroup to be used with ortho, infact Cannon's alg.
  uses only square number of procs: 1, 4, 9, 16, 25, ...
- The performance of matrix multiplication are mesured, and the best
  processor number is choosen.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3459 c92efa57-630b-4861-b058-cf58834340f0
2006-10-16 20:50:48 +00:00
giannozz 6232da2eaf getenv replaced by wrapper get_env, preprocessed only in a single file
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3452 c92efa57-630b-4861-b058-cf58834340f0
2006-10-11 14:42:42 +00:00
giannozz 44c8bc4b7f Autopilot patch from Yonas Abraham
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3445 c92efa57-630b-4861-b058-cf58834340f0
2006-10-09 17:07:23 +00:00
cavazzon 08c786d8a2 - cleanup, module cell_module substituted by cell_base + interfaces
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3439 c92efa57-630b-4861-b058-cf58834340f0
2006-10-06 17:21:32 +00:00
giannozz 2caa042612 PGI doesn't like "END INTERFACE some_interface" and apparently the
standard is "END INTERFACE", period


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3433 c92efa57-630b-4861-b058-cf58834340f0
2006-10-04 14:56:35 +00:00
giannozz c29cecb4fe Unused variables removed
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3429 c92efa57-630b-4861-b058-cf58834340f0
2006-10-03 23:47:00 +00:00
giannozz 61652e343c Objects in PW, PH, CPV are stored into libraries (libpw.a, libph.a,
libcp.a respectively), used to load the executables. This removes
the need to specify all needed objects in many different makefiles.
Works with 95, ifort, xlf. Please let me know if there are problems
with more exotic or lousy compilers.

A few minor things fixed as well.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3428 c92efa57-630b-4861-b058-cf58834340f0
2006-10-03 19:26:15 +00:00
cavazzon 1148ec8480 - small fix for xcrysden format
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3424 c92efa57-630b-4861-b058-cf58834340f0
2006-09-29 15:26:20 +00:00
giannozz 43e4e5d38d There is no reason to generate dependencies every time. Files
make.depend are now in the CVS and shouldn't be updated unless
needed. Configure no longer runs makedeps.sh. Type 'make depend'
to regenerate dependencies.

Remove all */make.depend files before updating!


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3409 c92efa57-630b-4861-b058-cf58834340f0
2006-09-21 17:49:53 +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
umari f2dade1657 Bug corrected in cg_sub
minor clean-up in inner_loop
P.U.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3396 c92efa57-630b-4861-b058-cf58834340f0
2006-09-16 15:32:46 +00:00
umari 3cdcd1cb50 Added two new options:l_blockocc and n_blockocc
to keep fixed the occupation of  the lowest states
in enrgy while performing MD with ensemble DFT

P.U.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3391 c92efa57-630b-4861-b058-cf58834340f0
2006-09-14 16:33:24 +00:00
sbraccia 5116aacd55 Clean-up of routines used for meta-dynamics and for the calculation of
free-energy barriers. C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3382 c92efa57-630b-4861-b058-cf58834340f0
2006-09-12 18:28:57 +00:00
giannozz ff405e66ec Cleanup in constants: factem => 1/k_boltzmann
Some unused formats removed


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3380 c92efa57-630b-4861-b058-cf58834340f0
2006-09-12 17:11:36 +00:00
giannozz 835f022549 Obsolete routine memory.f90 removed
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3373 c92efa57-630b-4861-b058-cf58834340f0
2006-09-11 12:49:35 +00:00
cavazzon 1ed7d55a46 - fixed a bug in FPMD + constrained dynamics.
The error was present only when input atomic
  positions were not sorted as the input species


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3372 c92efa57-630b-4861-b058-cf58834340f0
2006-09-11 11:06:42 +00:00
cavazzon 2b6ec5e869 - bug fix in sub nlsm1.
Bug was present only in CVS for pseudopotentials with "nh = 0"
  this was causing example28 to fail


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3368 c92efa57-630b-4861-b058-cf58834340f0
2006-09-07 19:36:27 +00:00
giannozz ac00a4943e Fixed factor 10 error in Debye iintroduced by recent cleanup of constants
k_boltzman_au => k_boltzmann_au


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3365 c92efa57-630b-4861-b058-cf58834340f0
2006-09-07 13:04:29 +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 e89787ba3a - again projections on atomic states.
- MXMAs substituted with DGEMMs
- some clean-ups


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3350 c92efa57-630b-4861-b058-cf58834340f0
2006-08-29 09:40:12 +00:00
cavazzon 3184309057 - again scradir
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3328 c92efa57-630b-4861-b058-cf58834340f0
2006-08-12 12:38:35 +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
giannozz 6c40185885 - outdir is set by default to the value of the $ESPRESSO_TMPDIR
environment variable, or to './' (as before) if this is not set
- pseudo_dir is set by default to the value of $ESPRESSO_PSEDIR,
  to $HOME/espresso/pseudo/ otherwise
- documentation updated to reflect the new defaults
Note that the 'capture' of $HOME/pw/pseudo using a call to 'getenv'
was already present in pwscf but it was not working (pseudo_dir was
overwritten) so nothing susceptible to create new problems was added.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3309 c92efa57-630b-4861-b058-cf58834340f0
2006-08-08 18:05:16 +00:00
cavazzon b89b7b3261 - workaround (intel-9+mpich-1.2.6..14a):
mp_sum (MPI_ALLREDUCE) fails with 0 sized array
  ( but F90 allows array to have a size of 0! )


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3307 c92efa57-630b-4861-b058-cf58834340f0
2006-08-04 12:06:06 +00:00
cavazzon 886cd3aad0 - undeclared variable, not reported by pgi compiler (xlf found it)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3306 c92efa57-630b-4861-b058-cf58834340f0
2006-08-03 17:52:34 +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 33b1210c2a - new file cp_interfaces.f90 containing the interfaces
to subroutines that will be taken out from the modules.
  This will eliminate dependencies and speed-up the compilation

  TO DEVELOPERS: to take out subroutines from modules
                 follow the example used for bessel2 and bessel3
                 (bessel.f90 file)

- subroutine bessel1 removed


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3299 c92efa57-630b-4861-b058-cf58834340f0
2006-07-28 10:43:10 +00:00
giannozz 737ce089cf More spherical bessel cleanup
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3297 c92efa57-630b-4861-b058-cf58834340f0
2006-07-27 17:06:26 +00:00
cavazzon 0ca19ee41e - adding fix for dual /= 4 in fpmd run
- cleanups in vofrho and stress


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3294 c92efa57-630b-4861-b058-cf58834340f0
2006-07-27 13:03:52 +00:00
cavazzon 7be6ff9a34 - bug fix, in blue gene code section. Thanks to C.Bekas
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3284 c92efa57-630b-4861-b058-cf58834340f0
2006-07-26 12:19:55 +00:00
cavazzon f55fb94c17 - fix for BGL machine, thanks to Costas Bekas
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3279 c92efa57-630b-4861-b058-cf58834340f0
2006-07-19 11:09:04 +00:00
cavazzon 83ff2cfefb - bug fix, gradient correction contribution to stress in fpmd .
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3278 c92efa57-630b-4861-b058-cf58834340f0
2006-07-18 15:42:00 +00:00
cavazzon 7ee6daf54c - bug fix, call to memstat with a constant argument instead of a
pointer.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3277 c92efa57-630b-4861-b058-cf58834340f0
2006-07-18 10:33:02 +00:00
cavazzon ca1f797f81 - bug fix, wave initialization with force pairing
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3276 c92efa57-630b-4861-b058-cf58834340f0
2006-07-17 14:10:42 +00:00
cavazzon b14a22be88 - bug fix, argument with wrong dimension, found by xlf90.
The error was not found by pgf90.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3275 c92efa57-630b-4861-b058-cf58834340f0
2006-07-17 10:16:30 +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
cavazzon 05413bcd09 - fix: syntax error
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3262 c92efa57-630b-4861-b058-cf58834340f0
2006-07-10 16:57:11 +00:00
cavazzon 5fe9caf270 - cleanup + commets
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3261 c92efa57-630b-4861-b058-cf58834340f0
2006-07-10 15:58:46 +00:00
cavazzon fed0a099ec - added flag for ascii/binary file to cppp
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3259 c92efa57-630b-4861-b058-cf58834340f0
2006-07-10 15:11:33 +00:00
cavazzon 8e763f9676 - bug fix, "kkbeta" mistakenly used in place of "mesh" in non local
core correction integrals.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3231 c92efa57-630b-4861-b058-cf58834340f0
2006-06-30 10:21:18 +00:00
kkudin a914e9ea61 Added a new thermostat type (nhptyp=3) with a control array 'nhgrp',
allowing fine control over how thermostats are assigned to atoms
 Kostya


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3226 c92efa57-630b-4861-b058-cf58834340f0
2006-06-29 22:43:58 +00:00
giannozz 45f996fae6 Workaround for error with Pathscale compiler
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3222 c92efa57-630b-4861-b058-cf58834340f0
2006-06-29 11:59:01 +00:00
cavazzon 586a3a10fc - clean-ups
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3221 c92efa57-630b-4861-b058-cf58834340f0
2006-06-29 11:06:09 +00:00
cavazzon 65626da273 - clean-ups
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3208 c92efa57-630b-4861-b058-cf58834340f0
2006-06-26 07:51:38 +00:00
sbraccia eac4123a5b Added to CP the possibility to remove the total torque acting on the system
(useful to simulate an isolated system). Documentation updated. C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3205 c92efa57-630b-4861-b058-cf58834340f0
2006-06-25 23:15:20 +00:00
giannozz 65a7670b85 Minor cleanup of unused variables and of constants
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3202 c92efa57-630b-4861-b058-cf58834340f0
2006-06-23 13:46:13 +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