Commit Graph

84 Commits

Author SHA1 Message Date
paulatto f50125be05 removed unnecessary used module
LP


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5218 c92efa57-630b-4861-b058-cf58834340f0
2008-10-06 11:49:58 +00:00
cavazzon 6e6630adbe - reduce replaced by mp_sum
- sub. reduce, removed from para!


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4826 c92efa57-630b-4861-b058-cf58834340f0
2008-04-20 21:23:37 +00:00
paulatto f01646d39b Mix rho cleaned up a bit, now normalization of responses matrix is disabled again by default.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4669 c92efa57-630b-4861-b058-cf58834340f0
2008-02-01 14:09:48 +00:00
cavazzon 636712cef9 - scatter/gather like subroutines that act on fft grids,
moved from PW/para.f90 to Modules/fft_base.f90


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4614 c92efa57-630b-4861-b058-cf58834340f0
2008-01-08 09:19:31 +00:00
paulatto 3f4cc01569 Trying to simplify paw self-consistency I have put becsum into the scf type, this requires a bit of a hack.
Symmetrization of becsum simplified a bit introducing mapping to "triangular" composite index.
Read upf now uses default (*) format for paw part.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4529 c92efa57-630b-4861-b058-cf58834340f0
2007-12-14 14:22:10 +00:00
degironc 0141bb6d0c update of several PAW routines.
global auxiliary variable saved%v removed and replace by a smaller local array.
ddd_PAW has now the same indexing structure as becsum.

miscellaneous:
- defined undefined variable ze2=0 in ascheqps
- ibnd_up/dw initialized in print_ks_energies.f90


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4517 c92efa57-630b-4861-b058-cf58834340f0
2007-12-11 22:46:03 +00:00
paulatto 74ad10e344 Now it should work again... sorry.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4502 c92efa57-630b-4861-b058-cf58834340f0
2007-12-05 14:09:14 +00:00
paulatto fed754abf9 Call to dpotrf removed
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4501 c92efa57-630b-4861-b058-cf58834340f0
2007-12-05 09:55:20 +00:00
paulatto 7355053c2c Fix on previous commit
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4499 c92efa57-630b-4861-b058-cf58834340f0
2007-12-04 14:38:04 +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
cavazzon 2a8cc3595d - workaround for PGI bug
in some cases PGI (7.0 and 7.1) fails to compile properly
  the copy operator "=" for derived type containing pointers


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4471 c92efa57-630b-4861-b058-cf58834340f0
2007-11-22 21:57:35 +00:00
giannozz bdae2b6cb1 Cleanup of wavefunction initialization. Since I wasted two hours hunting
for a bug, before I realized that there were two copies of "gamma_only",
I wasted two more hours to iuse a single value of "gamma_only" (the one
oin control_flags).


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4468 c92efa57-630b-4861-b058-cf58834340f0
2007-11-22 14:23:04 +00:00
giannozz 9fe21891e2 gfortran hacks - not nice but not too invasive either
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4460 c92efa57-630b-4861-b058-cf58834340f0
2007-11-20 17:44:41 +00:00
paulatto 3ee15febfe Small error slipped in previous commit.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4423 c92efa57-630b-4861-b058-cf58834340f0
2007-11-12 15:33:12 +00:00
paulatto dce5f820da Paw code moved around and unused functions removed; old grid_paw code removed.
This is the first step of code cleanup. Actually nothing should change.

rad_paw_routines -> paw_onecenter (2 functions went to paw_init)
grid_paw_variables -> paw_variables (with some additions from rad_paw_routines)
grid_paw_routines -> paw_init (merged with 2 init functions from rad_paw)

Probably there are a few random fixes around.

Next step: remove ndmx and ntpx.

LP


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4422 c92efa57-630b-4861-b058-cf58834340f0
2007-11-12 14:49:09 +00:00
degironc a6b0fea63d more changes in scf_mod. mix_rho is getting simpler and more transparent,
scf_mod contains more stuff, but it should be rather simple.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4419 c92efa57-630b-4861-b058-cf58834340f0
2007-11-10 15:07:51 +00:00
giannozz 6b34641498 g95 doesn't like 1) that a function inside a module is defined as 'real'
when called by another function inside the module; 2) operations (AXPY)
between unallocated objects


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4416 c92efa57-630b-4861-b058-cf58834340f0
2007-11-09 16:26:21 +00:00
degironc a675f2d7ca scf_mod again
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4414 c92efa57-630b-4861-b058-cf58834340f0
2007-11-09 12:54:39 +00:00
degironc d04d05c842 more extensive chages to scf_mod and mix_rho + make.depend
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4410 c92efa57-630b-4861-b058-cf58834340f0
2007-11-08 17:29:25 +00:00
paulatto 2130e0ae14 d1, d2 and d3 matrices (used to symmetrize lda+u ns) moved from module ldau to module symme, thay will be used for PAw too. A few small
fixes.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4400 c92efa57-630b-4861-b058-cf58834340f0
2007-11-06 12:54:17 +00:00
giannozz 97177f9531 Version number updated + some cleanup
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4370 c92efa57-630b-4861-b058-cf58834340f0
2007-10-26 16:47:09 +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 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
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
giannozz b0a3963298 Questionable array syntax was causing gfortran to crash
(by the way: gfortran finally seems to work, or at least, the august
 snapshot for mac-osx intel compiles pw.x and passes all tests)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4204 c92efa57-630b-4861-b058-cf58834340f0
2007-09-03 16:10:15 +00:00
giannozz 4a8345c6d9 1) Bug in mix_rho when data are saved to file (disk_io='high') .and. nspin=2
.and. double grid .and. only smooth components are mixed (default)!
Thanks to AM Saitta who managed to hit this bug.
2) Additional matrices for S and H are no longer allocated in cdiaghg
(only serial; the parallel one still allocates three such matrices) .
Believe it or not, for large systems (>100 atoms) using Davidson, each such
matrix takes a lot of memory that doesn't scale with the number of processors.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4016 c92efa57-630b-4861-b058-cf58834340f0
2007-07-11 10:58:34 +00:00
giannozz 0792ed8d25 Call to infomsg simplified, removed the absurd "error -1"
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3987 c92efa57-630b-4861-b058-cf58834340f0
2007-06-26 16:46:01 +00:00
giannozz 6f8c1fbe53 reduce_io (logical) replaced by io_level (integer)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3810 c92efa57-630b-4861-b058-cf58834340f0
2007-02-22 11:22:57 +00:00
degironc 42a12efcc8 The Meta-GGA available on cp.x has been ported to pw.x: scf and forces,
while stress must still be done. So far, NC PP only.
SdG + Koichiro Umemoto


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3779 c92efa57-630b-4861-b058-cf58834340f0
2007-02-13 21:39:20 +00:00
giannozz d863d38adf Fixed array operation between arrays having different lengths.
Mysteriously the compiler didn't complain (it should have).
It is not impossible that this could cause some form of memory corruption,
but for sure, it made usage of debugging flags (-g -C) impossible.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3650 c92efa57-630b-4861-b058-cf58834340f0
2007-01-09 19:03:48 +00:00
sbraccia bc90fc7750 Further clean up of realus module. qsave array is now stored as a 1-dim array to
reduce the memory usage to the very minimum. Implemented a more efficient scheme
to find all the points in each small box. The charge is rescaled to the correct
number of electrons unless the relative error is larger that 0.01% (in this case
an error message is issued suggesting to increase ecutrho). Added a sort of
Fourier filter to remove the features in the chrage density that are not
compatible with the chosen cut-off (this is used only with the small booxes).
Addded an aternative estimate of the total energy based on the
Harris-Weinert-Foulkes functional. The difference between the Kohn-Sham energy
and the HWF one provides an alternative estimate for the level of
self-consistency.
Added a few more clocks to monitor the efficiency of the small-boxes and the
time spent to calculate the Hatree potential and the Exchange-Correlation
potential (the latter can be pretty high).
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3437 c92efa57-630b-4861-b058-cf58834340f0
2006-10-06 14:08:36 +00:00
sbraccia 0f9aafb179 Unused experimental stuff removed. C.S.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3311 c92efa57-630b-4861-b058-cf58834340f0
2006-08-08 21:24:25 +00:00
sbraccia c71e0e4d2d Fixed a harmless array out of bound. C.S.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3301 c92efa57-630b-4861-b058-cf58834340f0
2006-07-28 16:17:11 +00:00
sbraccia 9710f29c75 1) v_of_rho has been rearranged in order to reduce the number of FFTs per step.
Now the input of v_of_rho is the charge density in both real and reciprocal
space (always available within the scf loop); the output is unchanged. This
permits to get rid of one FFT for the calculation of V-Hartree and one for the
calculation of V-XC (\nabla rhr in GGA). Array dimensions removed from the list
of arguments of several routines (they are read from the modules). Unused
variables removed.
2) mix_rho has been modified in order to mix only the fourier components of the
smooth part of the density. The FFTs in the local-TF preconditioning are done
using the coarse mesh (cft3s). The performance of the mixing is almost
unchanged, but the mixing itself is much cheaper. Cleanup of unused variables.
Please, check for posible side effects of these modifications.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3256 c92efa57-630b-4861-b058-cf58834340f0
2006-07-07 20:16:45 +00:00
dalcorso 2649830a03 Mixing "local-TF" seems to work in the noncollinear/spin-orbit cases.
Check removed.
Bug fix in the LSDA case.
The exponential of zero is not computed.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2866 c92efa57-630b-4861-b058-cf58834340f0
2006-03-03 15:02:58 +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 1e42e05f69 error (..., -1) => infomsg
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2142 c92efa57-630b-4861-b058-cf58834340f0
2005-08-30 16:27:58 +00:00
giannozz f533b052d5 dbl => DP (defined as previously dbl was)
syntax for declarations: real(DP), without "kind="


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2135 c92efa57-630b-4861-b058-cf58834340f0
2005-08-28 14:09:42 +00:00
degironc 285119fa34 seqopn.f90 and diropn.f90 modified in such a way that the name of
all files open by seqopn.f90 and diropn.f90 in the TMP_DIR have the
general form "prefix"."extension" where extension is the only part of
the filename passed as an argument. This should avoid conflicts between
different jobs running at the same time and sharing the same TMP_DIR
(provided they have different prefixes ...)

All examples (from 1 to 26) give the same output as before on my pc.
Please let me know if you notice unexpected behaviours.

stefano

PS: example26 apparently does nothing (even giving the command run_example 7)..
As it uses cp.x which does not use seqopn/diropn routines this behaviour
cannot be due to the present changes.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1963 c92efa57-630b-4861-b058-cf58834340f0
2005-06-17 13:27:38 +00:00
giannozz acc3296d70 The scf error computed in the noncolinear case was not entirely
correct after the recent changes
No need to specify the array bounds in gradcorr.f90


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1930 c92efa57-630b-4861-b058-cf58834340f0
2005-06-03 14:30:33 +00:00
giannozz 17aad401df More cleanup of the mixing
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1928 c92efa57-630b-4861-b058-cf58834340f0
2005-06-01 19:12:25 +00:00
giannozz 81dc7ba6e1 The charge mixing accepts on input charges in reciprocal space
(first step towards storing rho(G) instead of rho(r) as it is now
 Still incomplete but everything should work with no side effects)
Mixing for colinear and noncolinear version merged - the latter only
for 'plain' mixing. Case ngm0 != ngm not yet ready.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1926 c92efa57-630b-4861-b058-cf58834340f0
2005-05-31 20:58:48 +00:00
sbraccia cf0d7c333b mix_rho_nc was not compatible with the new electrons: fixed.
Cleanup of mix_rho. C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1916 c92efa57-630b-4861-b058-cf58834340f0
2005-05-25 15:52:48 +00:00
giannozz 7a36d99cbf Removed duplicated call to v_of_rho with charge mixing
Very minor differences with respect to previous version
in energy terms during scf are possible


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1891 c92efa57-630b-4861-b058-cf58834340f0
2005-05-23 12:40:25 +00:00
giannozz 818ee4b111 Some simplifications in the logic of "electron":
- non-scf calculation done in a separate routine
- check on insufficient diagonalization threshold less obscure


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1889 c92efa57-630b-4861-b058-cf58834340f0
2005-05-22 19:05:09 +00:00
giannozz fc903c5a57 No reason to have different length and naming convention for files
used (or not used) by mixing


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1885 c92efa57-630b-4861-b058-cf58834340f0
2005-05-19 21:17:42 +00:00
giannozz 8254746562 oops
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1820 c92efa57-630b-4861-b058-cf58834340f0
2005-04-20 17:29:09 +00:00
giannozz fe1f888e42 Minor fixes to have phonon restart in a Raman calculation
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1819 c92efa57-630b-4861-b058-cf58834340f0
2005-04-20 17:27:14 +00:00
giannozz 109c19d384 Cleanup of unused functions
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1817 c92efa57-630b-4861-b058-cf58834340f0
2005-04-20 07:32:54 +00:00
degironc b257686526 PW/mix_rho.f90: bug in file opening fixed (thanks to G.Balducci)
PW/Makefile: useless reference to pw_restart.o removed


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1811 c92efa57-630b-4861-b058-cf58834340f0
2005-04-18 07:23:52 +00:00