Commit Graph

81 Commits

Author SHA1 Message Date
dalcorso 222cd635ab A tentative to improve the recover feature of the phonon. When stopping for
cpu_time > max_seconds, close all files before exiting. Maybe this is
useless. Hopefully it is harmless.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6208 c92efa57-630b-4861-b058-cf58834340f0
2009-11-23 14:58:19 +00:00
dalcorso 0a81ea40cd A major reorganization of the phonon recover logic.
Main advantages:
1) Some initialization parts are not calculated.
2) It should be possible to recover after reaching self-consistency
   without doing additional iterations.
It will require some tuning. So please report any anomalous behaviour.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6155 c92efa57-630b-4861-b058-cf58834340f0
2009-11-16 17:04:25 +00:00
dalcorso 69db3b0b2e Bug fix: recently introduced mixing of dbecsum broke the phonon recover in the
electric field case.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6125 c92efa57-630b-4861-b058-cf58834340f0
2009-11-10 08:36:34 +00:00
dalcorso fb224723cb The mixing of dbecsum in the PAW case introduced also for the electric field perturbation.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6084 c92efa57-630b-4861-b058-cf58834340f0
2009-10-26 05:44:09 +00:00
dalcorso d0c3687099 Further use of nspin_mag in array dimensions.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6081 c92efa57-630b-4861-b058-cf58834340f0
2009-10-23 13:22:05 +00:00
dalcorso 39cb43eac6 Save memory in the nonmagnetic spin-orbit case. Some variables are
allocated nspin_mag.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6079 c92efa57-630b-4861-b058-cf58834340f0
2009-10-23 11:11:36 +00:00
dalcorso d2ccad0d2e Parameter max_irr_dim removed from phonon and from d3.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6048 c92efa57-630b-4861-b058-cf58834340f0
2009-10-20 05:59:54 +00:00
giannozz 672b9e3c64 Minor changes to allow calculations with local potentials only
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5860 c92efa57-630b-4861-b058-cf58834340f0
2009-08-23 10:38:29 +00:00
giannozz afec752184 End of this set of not-so-fundamental changes. Summary:
1) no more f_defs.h file to be included in fortran files
2) all CMPLX explicitly defined as CMPLX(...,KIND=dp)
3) blas/lapack names in lowercase (not all of them, actually)
4) documentation accordingly updated (plus unrelated changes to user_guide)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5805 c92efa57-630b-4861-b058-cf58834340f0
2009-08-03 09:19:02 +00:00
dalcorso 663a566f02 Added phonon recover in the PAW case.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5416 c92efa57-630b-4861-b058-cf58834340f0
2009-02-14 11:20:00 +00:00
dalcorso 14e96296ce Phonon cleanup. A single routine applies the projector in the conduction
band P^+_c.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5414 c92efa57-630b-4861-b058-cf58834340f0
2009-02-14 10:18:56 +00:00
dalcorso 097596216d Phonon cleanup. The preconditioning variable eprec is calculated in a single
place. h_diag is calculated outside the loop on the perturbations.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5412 c92efa57-630b-4861-b058-cf58834340f0
2009-02-14 07:46:55 +00:00
dalcorso 94f4212854 Minor phonon cleanup. The rotation of dbecsum_nc is done in a single routine.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5411 c92efa57-630b-4861-b058-cf58834340f0
2009-02-14 06:43:40 +00:00
dalcorso 01dc7a8303 Minor cleanup of the phonon. Default value of flmixdpot set in a single place.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5410 c92efa57-630b-4861-b058-cf58834340f0
2009-02-14 06:33:04 +00:00
dalcorso 07d2f0d835 Phonon cleanup. The reading of the recover file is done by a single routine.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5389 c92efa57-630b-4861-b058-cf58834340f0
2009-02-08 17:27:46 +00:00
dalcorso 8deedeccf7 Minor cleanup of the phonon code. USE phcom substituted with multiple USE statements
in many routines.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5367 c92efa57-630b-4861-b058-cf58834340f0
2009-02-02 10:52:58 +00:00
dalcorso 7917ca98c3 Missing deallocation in solve_e in the noncollinear/spin-orbit case.
Cleanup.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5360 c92efa57-630b-4861-b058-cf58834340f0
2009-01-30 14:47:35 +00:00
dalcorso 09662510ad Cleanup.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5341 c92efa57-630b-4861-b058-cf58834340f0
2009-01-01 10:38:07 +00:00
dalcorso 2f0915fd17 DFPT with PAW (initial implementation).
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5321 c92efa57-630b-4861-b058-cf58834340f0
2008-12-02 17:47:55 +00:00
giannozz 66b732747a Minor cleanup
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5207 c92efa57-630b-4861-b058-cf58834340f0
2008-09-22 17:30:16 +00:00
dalcorso 40f6583823 Bug fix: the new recover + zue was not working in the parallel case.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5199 c92efa57-630b-4861-b058-cf58834340f0
2008-09-16 14:40:58 +00:00
giannozz be76efc343 More cleanup (?): modules "uspp" and "symme" extracted from "pwcom"
everywhere. I didn't like the previous half-baked state.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5128 c92efa57-630b-4861-b058-cf58834340f0
2008-08-23 17:55:06 +00:00
dalcorso d3b31c3cc3 A tentative to improve the phonon recover.
Introduced four new input variables:

start_q, last_q  Makes the phonon calculation for a subset of the q points.
                 From start_q to last_q.

start_irr, last_irr Makes the phonon calculation for a subset of the
                 irreducible representations.

Removed the input variable maxirr.

Starting k points now written in the punch file.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5066 c92efa57-630b-4861-b058-cf58834340f0
2008-07-23 08:46:48 +00:00
dalcorso 0375acce30 Variable so(nt) removed: so(nt) -> upf(nt)%has_so.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4929 c92efa57-630b-4861-b058-cf58834340f0
2008-05-15 12:58:11 +00:00
cavazzon dd24f4988f - reduce replaced with mp_sum
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4824 c92efa57-630b-4861-b058-cf58834340f0
2008-04-19 10:14:45 +00:00
cavazzon b033e94034 - poolreduce replaced by mp_sum( ..., inter_pool_comm)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4658 c92efa57-630b-4861-b058-cf58834340f0
2008-01-24 23:43:05 +00:00
giannozz 2f639d11d5 Almost final "becmod" cleanup
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4534 c92efa57-630b-4861-b058-cf58834340f0
2007-12-18 22:31:46 +00:00
dalcorso e66725e4a2 tvanp --> upf%tvanp.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4418 c92efa57-630b-4861-b058-cf58834340f0
2007-11-10 09:16:00 +00:00
dalcorso 094113e65c Dielectric constant and effective charges in the noncollinear spin/orbit
case. (Very experimental).


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4327 c92efa57-630b-4861-b058-cf58834340f0
2007-10-08 16:17:11 +00:00
giannozz a695a60e60 PH: reduce_io moved into control_ph
Updated control_flags module saved: CP will not compile otherwise


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3809 c92efa57-630b-4861-b058-cf58834340f0
2007-02-22 10:34:43 +00:00
dalcorso 5b20f12bd4 Compatibility with the previous changes.
Please note: cgsolve_all has a new argument. It is last one and should be set
to 1 in the standard case.
star_q has two new arguments. The last two are logical and should be set
to .false. in the standard case.
If you use these two routines and I have not found your routine, please update.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3770 c92efa57-630b-4861-b058-cf58834340f0
2007-02-08 13:57:01 +00:00
dalcorso 337c243906 In the routine incdrhoscf the variable mode is not used.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3753 c92efa57-630b-4861-b058-cf58834340f0
2007-02-06 15:46:49 +00:00
giannozz b8be6aadc6 Minor cleanup (lgauss used whenever appropriate)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3618 c92efa57-630b-4861-b058-cf58834340f0
2006-12-18 18:28:42 +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
giannozz 166ec98487 Restart with US PP and electric fields should be fixed now
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3595 c92efa57-630b-4861-b058-cf58834340f0
2006-12-11 16:52:18 +00:00
giannozz 50889b7e3d Yet another bug in phonon restart: it wasn't working if the run was
stopped after convergence of a scf loop and before the first iteration
of the next scf loop. The workaround is not smart (the scf cycle is
restarted from the beginning) but it seems to work. A better workaround
requires a complete restructuring of the restart procedure.

There is still a mysterious problem with US PP: restarting during the
electric field calculation produces wrong results for Z* and phonons.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3594 c92efa57-630b-4861-b058-cf58834340f0
2006-12-11 15:14:02 +00:00
dalcorso 72ebd925a1 Added two flags, lrpa and lnoloc to print the dielectric constant
calculated with DV_xc=0 (RPA), or with DV_H=0 and DV_xc=0.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3571 c92efa57-630b-4861-b058-cf58834340f0
2006-11-27 08:58:23 +00:00
kkudin edb1613564 Added prefix.EXIT feature to the PH program - Kostya
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3538 c92efa57-630b-4861-b058-cf58834340f0
2006-11-15 23:43:43 +00:00
giannozz 4c75e48b33 Documentation (sort of) for restart procedure added to phq_recover
Restart in solve_e_fpol disabled (couldn't work)
Restart from raman calculation modified so that if restarting from a
raman+phonon calculation might work - completely untested


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3518 c92efa57-630b-4861-b058-cf58834340f0
2006-11-08 08:21:55 +00:00
giannozz c6db9a55a9 Minor format changes
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3494 c92efa57-630b-4861-b058-cf58834340f0
2006-10-25 18:40:43 +00:00
giannozz 0d6d6a9967 Better fix: davcio_drho writes and reads from a single task
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3486 c92efa57-630b-4861-b058-cf58834340f0
2006-10-24 16:47:25 +00:00
giannozz eb38dde045 There was a bug in Raman calculation (and whenever a file with delta rho
was desired) with pools: a unit open only for the node performing I/O
(ionode) was needed by the first process of each pool.
Temporary fix: open the unit when is needed.
Better fix: read/write from I/O node, broadcast what is read to all pools.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3483 c92efa57-630b-4861-b058-cf58834340f0
2006-10-24 12:10:56 +00:00
dalcorso 859f33b332 The new variable lgamma_gamma has been introduced in ph.x.
This variable is .true. when xq is gamma and only the gamma point is used
for k point sampling.
The symmetrization used in phcg.x has been imported in ph.x in the case
lgamma_gamma=.true..


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3288 c92efa57-630b-4861-b058-cf58834340f0
2006-07-26 15:02:37 +00:00
giannozz 44aa98ae4d Masses read from input by ph.x were overwritten by masses read from data file
(new format). The latter are now used only if masses are not read from input.


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


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2707 c92efa57-630b-4861-b058-cf58834340f0
2006-01-15 20:18:53 +00:00
giannozz 80ad81b265 1) phonon: workaround for serious bug in parallel execution
(waiting for a better solution)
2) time_max => max_second : bad name but the same everywhere


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2699 c92efa57-630b-4861-b058-cf58834340f0
2006-01-13 15:38:56 +00:00
giannozz 95b19a6b48 Replace two pointers that ifort doesn't seem to like with allocatable
arrays with the "target" option


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2249 c92efa57-630b-4861-b058-cf58834340f0
2005-10-03 16:39:15 +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
sbraccia 8d44a2a8fd The new subroutine flush_unit() is used everywhere. C.S.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1904 c92efa57-630b-4861-b058-cf58834340f0
2005-05-25 02:58:35 +00:00