Commit Graph

3841 Commits

Author SHA1 Message Date
giannozz 7d17e1e684 Check on consistency between symmetries and FFT grids moved from the routine
computing symmetries into a separate routine called after the first one. 
Everything should work exactly the same as before. This is just a preliminary
step towards automatic parallelization. Next step: force the FFT grids to be 
commensurate with symmetries and not vice versa. 


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13265 c92efa57-630b-4861-b058-cf58834340f0
2017-01-21 22:21:37 +00:00
giannozz 4653a07784 This was missing from yesterday's commit
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13264 c92efa57-630b-4861-b058-cf58834340f0
2017-01-21 14:33:00 +00:00
giannozz a27719dcef Unused variables removed from "checkallsym"
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13263 c92efa57-630b-4861-b058-cf58834340f0
2017-01-20 18:42:50 +00:00
giannozz 5966c5354e Minor corrections: spelling, comment, redundant and unused input variables
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13262 c92efa57-630b-4861-b058-cf58834340f0
2017-01-20 18:36:57 +00:00
marsamos 5d68fe0692 added deallocation for tsvdw (call tsvd_finalize) in clean_pw
Without it was giving allocation errors in NEB. 
Report and patch done by Simone Piccinin.



git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13259 c92efa57-630b-4861-b058-cf58834340f0
2017-01-18 11:26:07 +00:00
giannozz d9cf3c5468 Recent change to output broke xcrysden "display all coordinates as animation".
The English is bad ("Cartesian" should be capitalized) but the fix is good.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13254 c92efa57-630b-4861-b058-cf58834340f0
2017-01-16 12:29:12 +00:00
sponce 123039fdf3 Test-suite fix + Ford doc
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13248 c92efa57-630b-4861-b058-cf58834340f0
2017-01-11 16:02:59 +00:00
sponce 4eb78c0c24 Addition of a new test for ph
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13247 c92efa57-630b-4861-b058-cf58834340f0
2017-01-11 15:37:18 +00:00
giannozz 8e056fb79a Misleading message due bad check
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13242 c92efa57-630b-4861-b058-cf58834340f0
2017-01-11 11:30:37 +00:00
sponce e57ab38063 Ford on everything was too ambitious ...
Only PW doc for now. Can be extended. 



git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13239 c92efa57-630b-4861-b058-cf58834340f0
2017-01-10 16:40:56 +00:00
giannozz f86660892c Some harmonization of old and new tetrahedra:
- old routine computing dos, allocation and deallocation of "tetra" moved into
  module ktetra; variables tetra and ntetra are used only inside the module
- added module variable nntetra containing number of neighboring points used
  (20 for optimized tetrahedra, 4 otherwise)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13228 c92efa57-630b-4861-b058-cf58834340f0
2017-01-08 14:14:38 +00:00
giannozz fcc4ce86c5 "poolscatter" different behavior in serial and parallel cases when input and
output arrays coincide breaks phonons with optimized tetrahedra in serial case.
Now fixed, but I would like to be sure that an operation "f_in=f_out" is
properly executed also when f_in and f_out are the same in memory


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13227 c92efa57-630b-4861-b058-cf58834340f0
2017-01-08 11:40:16 +00:00
giannozz bdc34dbd63 Clarification on david_diago_ndim
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13224 c92efa57-630b-4861-b058-cf58834340f0
2017-01-07 09:22:42 +00:00
giannozz ea4364d559 Apparently "Mb" is "Megabits", not "Megabytes"
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13221 c92efa57-630b-4861-b058-cf58834340f0
2017-01-05 13:51:50 +00:00
giannozz 9d90e15323 Old tetrahedra-related routines moved into ktetra module with new names
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13217 c92efa57-630b-4861-b058-cf58834340f0
2016-12-29 14:14:38 +00:00
spigafi 796cac6b64 Removed prop svn:executable
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13216 c92efa57-630b-4861-b058-cf58834340f0
2016-12-24 23:34:24 +00:00
spigafi f006a1161c ltetra is part of klist, not ktetra. I guess I fix this.
PGI now compiles.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13211 c92efa57-630b-4861-b058-cf58834340f0
2016-12-24 22:20:13 +00:00
giannozz ae2473d62b Optimized tetrahedra (Mitsuaki Kawamura) for DOS and PDOS calculations as well
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13209 c92efa57-630b-4861-b058-cf58834340f0
2016-12-22 14:36:48 +00:00
kokalj 7e6f25a857 adding few more hyperlinks
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13208 c92efa57-630b-4861-b058-cf58834340f0
2016-12-22 08:05:42 +00:00
giannozz 36ded79c03 Optimized tetrahedron method, contributed by Mitsuaki Kawamura, U. Tokyo
(only in pw.x, more coming)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13207 c92efa57-630b-4861-b058-cf58834340f0
2016-12-21 21:57:15 +00:00
giannozz 3dce174c0d Module "ktetra" taken out of pwcom.f90 in view of some additions coming.
Variable "ltetra" moved to common "klist" together with all other variables
setting occupations. All make.depend updated. Should be harmless.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13204 c92efa57-630b-4861-b058-cf58834340f0
2016-12-21 14:23:06 +00:00
giannozz 8be556a13f Unused variable removed from call
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13203 c92efa57-630b-4861-b058-cf58834340f0
2016-12-21 13:24:34 +00:00
giannozz 2f73e509de ESM-specific FFT's for SCSL and SUNPERF libraries removed: they are no longer
implemented in FFTXlib anyway


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13200 c92efa57-630b-4861-b058-cf58834340f0
2016-12-18 11:30:28 +00:00
kokalj 734161d2d6 Few changes:
1. incorporating the patch of	Ikutaro Hamada to correctly handle atomic-positions in crystal coordinates

2. supporting the CELL_PARAMETERS angstroms|bohr options

3. ibrav=0 with "A" spec didn't work well (fixing)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13197 c92efa57-630b-4861-b058-cf58834340f0
2016-12-14 16:39:03 +00:00
paulatto c368e45363 Fixed a silly bug in the previous commit
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13196 c92efa57-630b-4861-b058-cf58834340f0
2016-12-14 14:57:31 +00:00
paulatto 183c05d234 I've added a line to print out the crystal density in g/cm^3, the hope is that may help people realize when they do a mistake in the input that results in too small or too large unit cells
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13195 c92efa57-630b-4861-b058-cf58834340f0
2016-12-14 14:38:00 +00:00
pietrodelugas 7354320420 Correction to avoid that some non initialized elements are written in the
xml file. 


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13193 c92efa57-630b-4861-b058-cf58834340f0
2016-12-07 08:22:41 +00:00
giannozz 6c980121fe Removal of unused modules
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13184 c92efa57-630b-4861-b058-cf58834340f0
2016-11-25 21:10:06 +00:00
giannozz 57fdf2f9ad make.depend updated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13180 c92efa57-630b-4861-b058-cf58834340f0
2016-11-24 14:35:51 +00:00
giannozz 08a362bc23 Miscellaneous cleanup
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13165 c92efa57-630b-4861-b058-cf58834340f0
2016-11-19 18:24:14 +00:00
paulatto 1e8b7c48f0 In the verbosity=high case, with nspin=1, the PAW energy components could be printed out incorrectly (the actual value was correct)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13162 c92efa57-630b-4861-b058-cf58834340f0
2016-11-17 11:17:06 +00:00
pietrodelugas a4b51916ba Kernel table file is copied it the <prefix>.save directory
together with pseudopotential so that post-processing and ph.x may find it 
without knowing the pseudo directory path. 


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13161 c92efa57-630b-4861-b058-cf58834340f0
2016-11-17 10:35:52 +00:00
paulatto eeb9fb1fd3 Made the choise of use_regularization more explicit (the result does not change, it just makes the code more clear) and added a comment about an especially tricky allocation
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13160 c92efa57-630b-4861-b058-cf58834340f0
2016-11-17 08:54:08 +00:00
giannozz d4c1220030 Bug in hybrid functionals at Gamma wth LSDA and k-point parallelization, reported by Davide
Tiana, fixed. Affected v.6 and previous versions as well, hopefully producing sufficiently
wrong numbers to stop with "negative dexx" error


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13158 c92efa57-630b-4861-b058-cf58834340f0
2016-11-17 06:15:56 +00:00
pietrodelugas 312a17f836 file forgotten in previous commit
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13155 c92efa57-630b-4861-b058-cf58834340f0
2016-11-15 16:12:55 +00:00
pietrodelugas 24b54c7329 Few modification to the pw.x XML scheme.
Now the information read on restart or by any program using the read_file routine  
are taken only from the  output element.   


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13154 c92efa57-630b-4861-b058-cf58834340f0
2016-11-15 15:48:23 +00:00
giannozz b491b3a47b Reference to mp_world removed - there are a few more that shouldn't be there
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13153 c92efa57-630b-4861-b058-cf58834340f0
2016-11-14 17:27:47 +00:00
giannozz 5bcd1e5c6d make.depend updated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13152 c92efa57-630b-4861-b058-cf58834340f0
2016-11-14 17:22:37 +00:00
giannozz aff053b35d -D__EXX_ACE confined to a single line, ready to be removed
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13150 c92efa57-630b-4861-b058-cf58834340f0
2016-11-14 15:20:42 +00:00
giannozz 35e14afe5b More preliminary changes needed to set new xml schema as default.
CP compiles but doesn't run if __XSD is set


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13148 c92efa57-630b-4861-b058-cf58834340f0
2016-11-14 12:42:47 +00:00
giannozz f6c132bcf9 Incorrect subtraction of term G=0 in gamma-only case - might explain some
problems with USPP and Gamma-only hybrid calculations 


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13142 c92efa57-630b-4861-b058-cf58834340f0
2016-11-11 16:36:59 +00:00
giannozz 51a51c99c0 Annoying ACE prints commented out
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13140 c92efa57-630b-4861-b058-cf58834340f0
2016-11-09 18:06:51 +00:00
paulatto 01b6e1f73e One more bug fix in the paw+exx code (the atomic's index of projector was computed incorrectly when the crystal indeces where given in a certain order).
Now everything seems to work quite reliably, a few calculation with PAW on molecules where successful, however:

there is still a nasty bug that cause wrong results (usually in the form of S matrix not positive, or wrong charge) when ALL this coditions are met:
1. PAW and/or US
2. using Gygi-Baldereschi divergence threatment with x_gamma_extrapolation
3. K_POINTS gamma

I hope to fix it soonish
LP



git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13139 c92efa57-630b-4861-b058-cf58834340f0
2016-11-09 14:54:16 +00:00
giannozz 0718d82bfd Calculation of HOMO and LUMO made simpler, more general, and more reliable.
Needs a threshold, though, to decide who is occupied and who is not


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13137 c92efa57-630b-4861-b058-cf58834340f0
2016-11-05 15:20:57 +00:00
paulatto fc0a3713d7 A few changes to the PAW+EXX subroutines, initially to re-enable the PAW contribution to the Hamiltonian (whic hwas disable by a disguised RETURN statement) and then to fix some bugs it includes.
Notably: the change of the PAW contribution has been changed, this ensures that the energy computed with exxenergy and exxenergy2 are consistent, also when using a sufficiently large cell (or sufficiently good exxdiv_treatment), with spin and a PAW pseudo you can get exactly one Rydberg energy for the Hydrogen atom!

 have also changed electrons.f90 again, and I think it is now satisfactory: during each sub-scf cycle the total energy is printed (but not its components) and you even get the "!" at the end, but at the very final end of the EXX cycle you get a double "!!" at the beginning of the line, which makes grepping less painful.


A few things still missing, to be done sonner or later:
1. US/PAW + noncolinear spin does not work at the moment, because I have not implemented the rotation of the noncolinear <beta|psi> coefficients (this is probably trivial)
2. stress and forces need to be tested
3. stress needs to be tested (it is not implemented with pools either)

I have not really tested band parallelisation.




git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13136 c92efa57-630b-4861-b058-cf58834340f0
2016-11-04 14:27:32 +00:00
giannozz 099f9cc2b6 calculation of HOMO and LUMO separated from printout of the same. It may be
useful in general and in other cases. There are stull cases in which the 
HOMO and LUMO are not properly computed, though, especially in LSDA cases


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13135 c92efa57-630b-4861-b058-cf58834340f0
2016-10-31 09:26:22 +00:00
giannozz d08674cbed Misc minor updates
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13134 c92efa57-630b-4861-b058-cf58834340f0
2016-10-31 09:24:30 +00:00
spigafi 6e0972881e Missing dependency
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13132 c92efa57-630b-4861-b058-cf58834340f0
2016-10-30 10:32:22 +00:00
paulatto 5ea5e1fb34 Bug with EXX and US fixed, it was caused by a missing initialisation of the d matrices used to rotate spherical harmonics
Also, compute_becxx moved to us_exx to try to keep exx.f90 less crowded
A modified version of the old compute_becxx that actually work is stored at the end of us_exx for debugging, I'll remove it later when the code has settled a bit (it is not compiled)

Another related bug, where the rotation of <beta|psi> was not correct when k+q = -k' has been fixed

Quite a few debug lines are left (commented) in the code for good luck, I'll remove them later

Note that all the test suite reference files including US and EXX should be recomputed



git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13128 c92efa57-630b-4861-b058-cf58834340f0
2016-10-28 09:00:20 +00:00
paulatto 0e300f8b45 exx energy added to hwf estimate, so if you decide to print it (by setting printout to 1 instead of zero) it is not absurd
also, dexx is now printed with fixed point/exponential notation in the same way the convergence threshold is



git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13127 c92efa57-630b-4861-b058-cf58834340f0
2016-10-28 08:53:22 +00:00
paulatto 74021d6d59 Lines commented for testing, re-enabled
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13126 c92efa57-630b-4861-b058-cf58834340f0
2016-10-27 08:48:13 +00:00
paulatto 38aea232ed bugfix for commit 13119
beccopy was doing y=x in the k-point case and x=y in the gamma only case

this combined with store_becxx0 which was unnecessarily invoked when not doing an EXX calculation to annihilate the value of <beta|psi> when gamma-only doing a gamma-only calculation

fixes:
1. beccopy now always does the same thing (with the illogical but commonplace order of arguments estabilished by dcopy, please check that it is the expected on in ./PHonon/PH/dhdrhopsi.f90 and ./PHonon/PH/dynmat_us.f90)
2. store_becxx is no more active when dft is not hybrid

The bug never surfaced in phonon (only place where beccopy is used) because phonon does not work with Gamma-only



git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13125 c92efa57-630b-4861-b058-cf58834340f0
2016-10-27 08:47:32 +00:00
paulatto b6e0ce3d83 Added missing
pseudo_dir    = '$PSEUDO_DIR',


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13123 c92efa57-630b-4861-b058-cf58834340f0
2016-10-26 13:23:07 +00:00
paulatto e7b2388aa6 Debug lines slipped in (although getting negative exx seems quite inevitable with tqr, and maybe we should allow it under some conditions)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13120 c92efa57-630b-4861-b058-cf58834340f0
2016-10-25 13:25:10 +00:00
paulatto 5156f847c7 Tentative improvement of the EXX especially +US and PAW codes
1. instead of doing a mp_sum(exxbuff) I have introduced a series of communicators that can be used to broadcast the exxbuff among pools with the minimumamount of communication and without the need to sum a billion zeros. This seem to be much faster, and should no more increase with the number of CPUs, which was worrying me a bit
2. changed the sign of PAW Fock energy, I'm not sure where the minus come from, but with this expression you get the correct ratio of Fock and Hartree energy when computing a single band
3. computing <beta|psi> for the k+q grid is no more done explicitly with calbec, but the projections are rotated from the irreducible grid. In order to do so, the values of <beta|psi> is stored in the routine sum_bands, which may not be the idea place
4. the ultrasoft augmentation is now added on the ecutfock grid, in both G spce and real space, as a consequence the real-space smooth grid is now unused, and I have removed ii (I have left the bits of code commented as it may come useful in the future)
5. (not EXX) when using verbosity=high, the various component of the PAW contribution to H and XC energies are printed on screen, as well as the total (plane waves+PAW) H and XC energies, this was particularly useful to test EXX and I was tired to havvign to add it again everytime I touch this part of the code
6. I'm a bit confused about the values of "printout", I'm afraid I may have messed something up in electrons. Now I have set printout to zero when exx_is_active, which seems to not print anything strange (Otherwise the HWF energy was absurd) from the svn diff" it looks like it was printout=1 before

LP


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13119 c92efa57-630b-4861-b058-cf58834340f0
2016-10-25 13:09:22 +00:00
paulatto 9e55364b2c New subroutine to get the local index of a k-point from the global one
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13117 c92efa57-630b-4861-b058-cf58834340f0
2016-10-25 09:35:49 +00:00
giannozz ce0086eb13 Fix for recently noticed (by David Strubbe) failure of vdw-DF example.
Yet another problem due to ill-conceived, too rigid reset routine clean_pw


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13116 c92efa57-630b-4861-b058-cf58834340f0
2016-10-24 08:51:40 +00:00
giannozz 2915d11de3 Some more misc cleanup
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13115 c92efa57-630b-4861-b058-cf58834340f0
2016-10-23 20:51:27 +00:00
giannozz 40f289167b Minor cleanup of symmetry routines:
1) the dependency upon module "extfield" via recently introduced "monopole" 
   variable made explicit in the call, with an optional variable
2) the code doesn't stop any longer in case it doesn't manage to find
   symmetries, it just issue a warning, removes symmetry and proceeds
Should be harmless but please check. All make.depend files updated.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13114 c92efa57-630b-4861-b058-cf58834340f0
2016-10-23 19:40:46 +00:00
pietrodelugas 716e261569 bug fix, energy values were converted from rydberg to hartree twice in a row ...
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13113 c92efa57-630b-4861-b058-cf58834340f0
2016-10-18 14:43:52 +00:00
giannozz f5e052d63e ACE for USPP now works (thanks to Ivan Carnimeo)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13111 c92efa57-630b-4861-b058-cf58834340f0
2016-10-13 19:27:14 +00:00
pietrodelugas d1572ce57a bug fix in init_vars_from_schema
successive calls to init_vars_from_schema in read_file were trying to allocate an already allocated
allocatable. Reading of the header info removed from read_file


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13110 c92efa57-630b-4861-b058-cf58834340f0
2016-10-13 14:24:34 +00:00
giannozz 9229fe47e4 Reminder: empty strings are nonstandard in fortran, use ' ', not ''
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13108 c92efa57-630b-4861-b058-cf58834340f0
2016-10-13 11:25:10 +00:00
giannozz a4ccdac107 Error message instead of crash if data file not found
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13103 c92efa57-630b-4861-b058-cf58834340f0
2016-10-11 20:03:50 +00:00
giannozz fa52f529a5 More explicit message for forces as well
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13098 c92efa57-630b-4861-b058-cf58834340f0
2016-10-09 16:01:24 +00:00
giannozz 3249e8b43d More explicit printout message (hope nobody is parsing the previous message
"entering subroutine stress")


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13097 c92efa57-630b-4861-b058-cf58834340f0
2016-10-09 09:49:28 +00:00
giannozz fad38a034b Bug fix: incorrect energies computed by ACE for metals, plus minor cleanup
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13095 c92efa57-630b-4861-b058-cf58834340f0
2016-10-07 14:50:36 +00:00
giannozz 46bc5f3642 Limit printout of k+q grid in EXX to 100 points unless explicitly requested
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13093 c92efa57-630b-4861-b058-cf58834340f0
2016-10-06 05:35:47 +00:00
giannozz 0c0e1a3a21 Cleanup of __GFORTRAN and __INTEL #ifdefs, replaced by compiler-enabled
preprocessing options (note: configure not updated) 


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13092 c92efa57-630b-4861-b058-cf58834340f0
2016-10-05 17:48:02 +00:00
dalcorso 1044f59057 Some changes to the symmetry analysis.
The elements of C_2v and D_2 have been ordered so that
all the double groups have the same multiplication table.
C_6v and D_6 now have the same character table.
The definition of the matrices of SU(2) made more standard:
when n_z=0 the binary rotation axis direction is now with n_x >0, before
it was with n_y > 0.
These changes should be harmless except for the exchange of the names of
some irreducible representations of these three groups in some cases.



git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13091 c92efa57-630b-4861-b058-cf58834340f0
2016-10-05 17:38:24 +00:00
spigafi 9fdbf91eb5 Unified IFDEF macro style
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13058 c92efa57-630b-4861-b058-cf58834340f0
2016-10-02 10:17:54 +00:00
spigafi 743b03ee9d Added missing __XSD, protecting from GNU 4.4.x complains
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13044 c92efa57-630b-4861-b058-cf58834340f0
2016-10-01 11:34:41 +00:00
pietrodelugas 03f3590cd8 reduction of "#if defined (__XSD)" clauses.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13037 c92efa57-630b-4861-b058-cf58834340f0
2016-09-29 08:31:44 +00:00
pietrodelugas 2dac04d237 XML printout for FCP optimization and dynamics.
Information about FCP energetics are now printed out for each step element and in the final output.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13033 c92efa57-630b-4861-b058-cf58834340f0
2016-09-28 14:07:13 +00:00
pietrodelugas 4f5bfdea3a For non self-consistent computations it is possible to set fixed occupations without specifying a tot_magnetization target (this is not allowed for self-consistent calculations). In this case the program was printing a wrong HOMO energy
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13029 c92efa57-630b-4861-b058-cf58834340f0
2016-09-27 08:25:49 +00:00
pietrodelugas e3c511cb60 added fcp_opt and fcp_mu elements to the XML input element
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13028 c92efa57-630b-4861-b058-cf58834340f0
2016-09-26 19:21:47 +00:00
kokalj f53cb797a2 Improved handling of dependencies between input_xx.xsl and resulting INPUT_*.html|txt
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13019 c92efa57-630b-4861-b058-cf58834340f0
2016-09-26 14:04:08 +00:00
pietrodelugas f2afbd8434 added xml output for lda+U calculations in the noncolinear case
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13016 c92efa57-630b-4861-b058-cf58834340f0
2016-09-25 15:11:13 +00:00
giannozz 112309275a The recent changes to FFT grids break phonon, and presumably many others,
if 1) FFT dimensions are read from input, and 2) "clean_pw" is called
(for instance with finite k in order to perform a non-scf case). 
I modified clean_pw so that it keeps track of the previous values of 
the FFT dimensions. This should simply revert to the previous behavior.
A better solution would be to write routine that allocate and deallocate only 
k-point-related variables, since this is what we typically need.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13009 c92efa57-630b-4861-b058-cf58834340f0
2016-09-23 05:30:52 +00:00
pietrodelugas 62c651770b updated references for PW examples
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13001 c92efa57-630b-4861-b058-cf58834340f0
2016-09-21 14:33:09 +00:00
pietrodelugas b2a40d254c pw_restart_new did not compile if __HDF5 was undefined. Fixed
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12993 c92efa57-630b-4861-b058-cf58834340f0
2016-09-21 09:33:13 +00:00
pietrodelugas 6e2c14b26e fixed the writing of distinct gkvectors hdf5 file for each k-point for the new output style ( xml enabled)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12991 c92efa57-630b-4861-b058-cf58834340f0
2016-09-20 16:14:29 +00:00
pietrodelugas f92ae3341a gvectors.hdf5 containing the Miller indexes of G vectors is now written inside the pwscf.save directory
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12988 c92efa57-630b-4861-b058-cf58834340f0
2016-09-20 12:36:07 +00:00
pietrodelugas eb290b0d59 in init_vars_from_schema the information for hybrid functionals when present are now read with WHAT = 'nowave'. The specific call of init_vars in read_file_new in not necessary anymore and it has been removed
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12987 c92efa57-630b-4861-b058-cf58834340f0
2016-09-20 08:33:35 +00:00
spigafi 185f9ed185 ifndef preprocessor macro refactoring
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12986 c92efa57-630b-4861-b058-cf58834340f0
2016-09-19 21:11:20 +00:00
giannozz 4ca678b7fb Previous commit was 1) incomplete, 2) wrong. Now exx energy with ACE should
be correct


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12968 c92efa57-630b-4861-b058-cf58834340f0
2016-09-16 09:54:38 +00:00
giannozz 0aef72f5ae Incorrect energy computed with pools
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12966 c92efa57-630b-4861-b058-cf58834340f0
2016-09-15 19:49:52 +00:00
degironc 63c2a99308 more timing printouts.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12964 c92efa57-630b-4861-b058-cf58834340f0
2016-09-15 09:55:07 +00:00
degironc f7cd893d9f - task group number added in ftt_type_set (called by data_structure) so that when task_groups are active the plane distribution is more even and leads to at most to a single plane different between different task_groups. minor clean_up of indices in scatter_mod
- no point in not perfroming task_group parallelization when m < ntask_group.
 - some more timing report if verbosity >0



git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12963 c92efa57-630b-4861-b058-cf58834340f0
2016-09-15 07:41:30 +00:00
spigafi cd0140c729 ifdef preprocessor macro refactoring (PW package)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12959 c92efa57-630b-4861-b058-cf58834340f0
2016-09-12 16:34:38 +00:00
giannozz 3eb76a735b Misc cleanup: misspells; new I/O doesn't allocate tetrahedra so one knows
that they have to be regenerated.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12957 c92efa57-630b-4861-b058-cf58834340f0
2016-09-11 17:25:02 +00:00
giannozz f9ff4f4057 read-file split into old version (to be removed soon) and new one (to be
cleaned up)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12946 c92efa57-630b-4861-b058-cf58834340f0
2016-09-11 07:33:58 +00:00
spigafi 2a6fa9fec9 Change print style to avoid Intel compiler complaining about it. Revert if you
prefer the old way.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12943 c92efa57-630b-4861-b058-cf58834340f0
2016-09-10 21:24:52 +00:00
spigafi ad5e1bf29e Modified ELPA calls to comply with new library API. Supported 2015.11.001
(__ELPA_2015) and 2016.05.003 (__ELPA_2016). Link must be done manually (for
now). Validated using PW AUSURF112 (GAMMA), PW AUSURF112 (K) ans PW GRIR443.
CP tests to be done. Internal self-compiled ELPA very old still present but it
will be deprecated soon.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12942 c92efa57-630b-4861-b058-cf58834340f0
2016-09-10 20:48:28 +00:00
giannozz 1a4be92da9 Prevent bogus out-of-bound errors in some unlikely cases
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12941 c92efa57-630b-4861-b058-cf58834340f0
2016-09-10 07:13:27 +00:00
giannozz 91e3782c23 More I/O cleanup: there is no valid reason to keep track whether something has
been already read or not. 


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12936 c92efa57-630b-4861-b058-cf58834340f0
2016-09-09 13:27:28 +00:00
giannozz 9e21946835 If the smooth and dense grid must coincide, ensure that they do coincide also
in case the dense grid is set from input, while the smooth grid is not


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12932 c92efa57-630b-4861-b058-cf58834340f0
2016-09-09 09:09:23 +00:00
paulatto ab0e4e0c2f monopole field re-activated (it was commented out)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12928 c92efa57-630b-4861-b058-cf58834340f0
2016-09-08 14:27:15 +00:00
giannozz 97f49d0d2c Prevent a floting-point error if r(1)=0
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12922 c92efa57-630b-4861-b058-cf58834340f0
2016-09-06 06:23:50 +00:00
giannozz 216e296a40 Don't do anything if the grid contains zero points (also prevents a bogus
out-of-bound error)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12919 c92efa57-630b-4861-b058-cf58834340f0
2016-09-05 20:11:40 +00:00
giannozz 4182e5f6ae make.depend files updated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12918 c92efa57-630b-4861-b058-cf58834340f0
2016-09-05 20:04:25 +00:00
giannozz 05e60f162c Stupid bug with startingwfc='file' and wf_collect=.true. - yet another case in
which a useless check may become harmful. Thanks to Jia Chen.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12913 c92efa57-630b-4861-b058-cf58834340f0
2016-09-05 08:19:59 +00:00
giannozz b4a149240a Oops ... bad call to a routine in a recent commit
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12907 c92efa57-630b-4861-b058-cf58834340f0
2016-09-02 06:47:40 +00:00
giannozz c4e1b8c18f Oops ... allocate instruction removed by mistake
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12906 c92efa57-630b-4861-b058-cf58834340f0
2016-09-01 18:00:54 +00:00
dceresoli c2953a6c8d 1. got rid of unused program_name variable
2. using spline_ps=.true. in order to expand the reciprocal space
   max |G|, used by GIPAW to do calculations at k+q


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12905 c92efa57-630b-4861-b058-cf58834340f0
2016-09-01 12:42:32 +00:00
giannozz ca801249c1 The second index of "exxbuffer", used to store pairs of \psi(r) in Gamma case,
should start from 1, not 0


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12904 c92efa57-630b-4861-b058-cf58834340f0
2016-09-01 11:44:16 +00:00
giannozz a725fe91f2 Redundant routine kpoint_global_indices replaced by global_kpoint_index.
Everything should work (or not work) as before (not tested, no warranty). 



git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12898 c92efa57-630b-4861-b058-cf58834340f0
2016-09-01 08:20:30 +00:00
pietrodelugas 2143f5ff86 syntax error fixed; prepare for write gvectors.hdf5
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12896 c92efa57-630b-4861-b058-cf58834340f0
2016-09-01 07:08:32 +00:00
giannozz 6468059ea3 Ooops ... forgot to change the arguments of divide_et_impera
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12894 c92efa57-630b-4861-b058-cf58834340f0
2016-08-31 17:25:16 +00:00
giannozz b02d811a7c Some harmonization of pool subroutines; find_current_k and
kpoint_global_indices will be merged into a single routine global_kpoint_index


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12893 c92efa57-630b-4861-b058-cf58834340f0
2016-08-31 17:19:26 +00:00
giannozz b5fa8cd174 Cleanup of pool operations: a general-purpose routine "poolcollect" replaces
various specially taylored routines. Please report any anomaly in k-point 
parallelization (there shouldn't be any, but who knows).


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12891 c92efa57-630b-4861-b058-cf58834340f0
2016-08-31 14:10:56 +00:00
giannozz 95cf2364ef Too many hyphens in "helpdoc --version", the correct syntax is "-version"
Now "make doc" works again


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12886 c92efa57-630b-4861-b058-cf58834340f0
2016-08-30 16:54:59 +00:00
giannozz b4ead10e9c More I/O simplification; LSDA was likely incorrect
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12885 c92efa57-630b-4861-b058-cf58834340f0
2016-08-30 15:01:56 +00:00
giannozz 7f408663db More I/O simplification
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12884 c92efa57-630b-4861-b058-cf58834340f0
2016-08-30 13:41:14 +00:00
pietrodelugas 3e81660bed the missing pressure element has been added to the cell_controlType in the schema. Routines have been changed accordingly
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12883 c92efa57-630b-4861-b058-cf58834340f0
2016-08-30 09:38:41 +00:00
giannozz f6dca93f3e More cleanup of I/O, HDF5 and IOTK cases made more uniform
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12881 c92efa57-630b-4861-b058-cf58834340f0
2016-08-30 07:27:48 +00:00
giannozz 4e77496368 Some simplificaton and cleanup of new I/O
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12880 c92efa57-630b-4861-b058-cf58834340f0
2016-08-30 06:41:58 +00:00
giannozz 721fee214f Wavefunctions in the noncolinear case were written (in the "collected" format)
as two files, one for up spin components and one for down spin components.
This seems to me meaningless. Now they are written as a single file.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12877 c92efa57-630b-4861-b058-cf58834340f0
2016-08-29 16:25:46 +00:00
giannozz 325d3a75c6 The last changes to the makedeps script were not so smart (the script itself is
not so smart and should be simplified as much as possible). Minor Makefile 
change: it is no longer needed to compile Modules in order to run the makedeps
script (it is sufficient to regenerate the version.f90 file). 
make.depend updated: there were several dependencies of nonexistent files.   


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12873 c92efa57-630b-4861-b058-cf58834340f0
2016-08-29 12:42:14 +00:00
spigafi ff7d127a8c __CUDA deprecated. QE-GPU as it is packaged now is not compatible with QE 6.x
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12866 c92efa57-630b-4861-b058-cf58834340f0
2016-08-28 22:23:24 +00:00
giannozz 8661fd2c3c Cleanup
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12860 c92efa57-630b-4861-b058-cf58834340f0
2016-08-27 19:54:44 +00:00
pietrodelugas 81f2072851 cleanup of some unusued variables
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12858 c92efa57-630b-4861-b058-cf58834340f0
2016-08-27 17:02:50 +00:00
pietrodelugas 3d41925029 pw_restart_new now calls io_base read_wfc version
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12857 c92efa57-630b-4861-b058-cf58834340f0
2016-08-27 15:00:49 +00:00
pietrodelugas 6e93ffec3c experimental version of HDF5 bynary output for charge density, spin-polarization g-vectors and collected wavefunctions. Thanks to Nicola Varini
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12856 c92efa57-630b-4861-b058-cf58834340f0
2016-08-27 14:30:50 +00:00
giannozz 22848786c6 Updated i-PI interface, minimal documentation, updates to make.depend files
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12852 c92efa57-630b-4861-b058-cf58834340f0
2016-08-26 16:08:25 +00:00
giannozz b59f7c2442 Two optional variables of same type and geometry are ambiguous and confusing
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12851 c92efa57-630b-4861-b058-cf58834340f0
2016-08-26 15:24:03 +00:00
giannozz 382c8f2547 Modules "pw_restart_new" is now independent upon the old "pw_restart"
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12849 c92efa57-630b-4861-b058-cf58834340f0
2016-08-26 14:18:19 +00:00
giannozz 8379a322a0 Bug fix (incorrect filename for spin-orbit case) and more cleanup of new I/O
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12848 c92efa57-630b-4861-b058-cf58834340f0
2016-08-26 12:32:03 +00:00
giannozz 4add9050d1 More I/O cleanup
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12847 c92efa57-630b-4861-b058-cf58834340f0
2016-08-26 10:36:38 +00:00
giannozz 3aa231bf6a One more problem in yesterday's commits for new I/O
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12846 c92efa57-630b-4861-b058-cf58834340f0
2016-08-26 09:52:46 +00:00
giannozz 1ce909f974 Fixed two bugs in new I/O, introduced yesterday
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12844 c92efa57-630b-4861-b058-cf58834340f0
2016-08-26 06:33:18 +00:00
giannozz 7ce7d161bf Makefile simplification: TOPDIR is used to define the same LIBOBJS everywhere.
In case of trouble, see instruction in the make.inc file.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12840 c92efa57-630b-4861-b058-cf58834340f0
2016-08-25 19:27:31 +00:00
giannozz a062d902df More minor cleanup
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12838 c92efa57-630b-4861-b058-cf58834340f0
2016-08-25 16:29:09 +00:00
giannozz 85ec227ab0 More I/O simplification: now each pool manages its own k-points also wehn
reading


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12837 c92efa57-630b-4861-b058-cf58834340f0
2016-08-25 12:01:32 +00:00
giannozz f95f33aeab Cleanup
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12835 c92efa57-630b-4861-b058-cf58834340f0
2016-08-25 09:54:45 +00:00
giannozz 73746cc0ea Major simplification of new I/O: each pool writes its own set of wavefunctions
Little tested and unfinished, should anyway work (names and contents of files
not changed wrt the previous situation)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12834 c92efa57-630b-4861-b058-cf58834340f0
2016-08-25 07:13:40 +00:00
giannozz a0a6b8977b Added interface with PALENQUE. Following the traditional logic (or lack of it)
the three pieces are in three different places: fsocket.f90 in Modules/,
sockets.c in clib/, run_driver in PW/src. Subroutine get_server_address might
actually be moved to module "command_line_options".
Version number updated to 6.beta (6.0.beta too long, 6.0bet? 6.0.b?)  


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12833 c92efa57-630b-4861-b058-cf58834340f0
2016-08-24 19:54:34 +00:00
giannozz 72d5e4ad64 Wasteful allocation
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12831 c92efa57-630b-4861-b058-cf58834340f0
2016-08-23 16:43:22 +00:00
giannozz a7c95d35bd Copy of UPF files into the .save directory now works also for the new I/O
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12828 c92efa57-630b-4861-b058-cf58834340f0
2016-08-22 20:02:33 +00:00
giannozz 92800fc39b More I/O cleanup; more sensible file names
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12826 c92efa57-630b-4861-b058-cf58834340f0
2016-08-22 16:43:45 +00:00
giannozz e796fd7983 More I/O simplification: directory for each k-point deleted. Filenames
are dumb but will be changed soon.
IMPORTANT NOTICE: binary files with option -D__XSD are now incompatible 
with old-style ones.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12824 c92efa57-630b-4861-b058-cf58834340f0
2016-08-22 07:19:12 +00:00
ccavazzoni 312e3b952e - some more clean-ups
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12823 c92efa57-630b-4861-b058-cf58834340f0
2016-08-22 06:52:43 +00:00
giannozz cfa56577e7 I/O cleanup: no need to use so many units for I/O.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12821 c92efa57-630b-4861-b058-cf58834340f0
2016-08-21 15:18:14 +00:00
giannozz 20c28e8ccc Old and new I/O (almost) completely separated: pw_restart.f90 contains calls
to old one, pw_restart_new.f90 to new one. Binary files are still written in 
the same format as before if __XSD is set, but the code is simplified and
disentangled from the I/O of xml file. PP files are currently not written to
the perfix.save directory: this has no practical consequences but will be soon
fixed anyway. Please test carefully in all possible cases. More simplification
of the code and of binary I/O will come soon.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12820 c92efa57-630b-4861-b058-cf58834340f0
2016-08-21 10:21:49 +00:00
ccavazzoni 8f777555f3 - adding "howmany" parameter to the cfft3d subroutine,
to compute many FFTs at the same time, particularly usefull for EXX
  but could be usefule for many linear response code as well
  (for the time being implemented only for DFTI and internal FFTW,
  should be trivial to extend other drivers)
- more clean-ups


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12815 c92efa57-630b-4861-b058-cf58834340f0
2016-08-19 22:55:53 +00:00
kokalj 9521638596 - efield_phase variable was documented in &CONTROL namelist, but should be in &ELECTRONS
- grouping the new "monopole" variables and adding some @ref's


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12806 c92efa57-630b-4861-b058-cf58834340f0
2016-08-19 15:33:15 +00:00
ccavazzoni e8659ff65e - more fft clean-ups, getting rid of fft_type_scalar and making fft_type_set private.
- "normalizing" fft_custom.f90, example01 is ok, but more checks and clean-ups are 
  probably required


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12800 c92efa57-630b-4861-b058-cf58834340f0
2016-08-19 08:31:15 +00:00
pietrodelugas 99914bc7af now read_conf_from_file reads configuration for the xml output file.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12784 c92efa57-630b-4861-b058-cf58834340f0
2016-08-18 13:41:08 +00:00
paulatto a123181902 fix
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12782 c92efa57-630b-4861-b058-cf58834340f0
2016-08-18 11:08:21 +00:00
paulatto 8c639d30e7 Missing file added back in, sorry for the troubles
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12781 c92efa57-630b-4861-b058-cf58834340f0
2016-08-18 11:06:53 +00:00
paulatto d075656d0b Missing file from yesterday commit
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12780 c92efa57-630b-4861-b058-cf58834340f0
2016-08-18 10:50:40 +00:00
ccavazzoni 54ca5bf7ce - no need to keep the instance of smap descriptor in the base library
- no need to keep stick_set.f90 at all
- eliminating unused type member


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12779 c92efa57-630b-4861-b058-cf58834340f0
2016-08-17 22:46:37 +00:00
giannozz 4728e74145 While waiting for the missing file to appear, reference to it removed
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12778 c92efa57-630b-4861-b058-cf58834340f0
2016-08-17 20:47:51 +00:00
giannozz daebed2945 Missing continuation line
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12777 c92efa57-630b-4861-b058-cf58834340f0
2016-08-17 20:11:34 +00:00
paulatto b17798de48 Last commit: documentation for monopole
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12769 c92efa57-630b-4861-b058-cf58834340f0
2016-08-17 09:11:52 +00:00
paulatto 95263bdbe2 Third commit: example of monopole calculation
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12768 c92efa57-630b-4861-b058-cf58834340f0
2016-08-17 09:03:47 +00:00
paulatto 407d85a00e Second of 4 commits
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12767 c92efa57-630b-4861-b058-cf58834340f0
2016-08-17 09:02:59 +00:00
paulatto ea406b4fbd More implicit none
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12765 c92efa57-630b-4861-b058-cf58834340f0
2016-08-17 08:57:38 +00:00
paulatto 9e8e26c394 Added explicit declaration of variables
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12764 c92efa57-630b-4861-b058-cf58834340f0
2016-08-17 08:56:29 +00:00
pietrodelugas 0418f65bc0 bug correction, in previous version a possibly non present variable could be read before check
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12763 c92efa57-630b-4861-b058-cf58834340f0
2016-08-17 08:12:23 +00:00
ccavazzoni 229940706f - further clean-ups
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12762 c92efa57-630b-4861-b058-cf58834340f0
2016-08-16 22:51:37 +00:00
pietrodelugas 1c0dd0b1fd added tbeta_smoothing variable to the xsd_input and renamed tqr_smoothing variable in tq_smoothing.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12755 c92efa57-630b-4861-b058-cf58834340f0
2016-08-16 15:00:29 +00:00
kokalj 5945f3cd77 - further semantic changes wrt recently added "options" tag; now all optional variables are defined with it
- some stylistic changes


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12752 c92efa57-630b-4861-b058-cf58834340f0
2016-08-16 14:49:08 +00:00
kokalj ca39f1399d implementing the support for adding the QE version to the header of
INPUT_*.html|txt files; this is done by calling the helpdoc with the
--version option



git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12751 c92efa57-630b-4861-b058-cf58834340f0
2016-08-16 14:45:00 +00:00
ccavazzoni 9b47d06d32 - update dependencies
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12743 c92efa57-630b-4861-b058-cf58834340f0
2016-08-16 07:17:57 +00:00
ccavazzoni f20022bd6d - further FFT consolidation / clean-ups
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12742 c92efa57-630b-4861-b058-cf58834340f0
2016-08-16 07:16:47 +00:00
kokalj 35044c6d0a - some semantic improvements using new "options" tag
- some stylistic improvements using the new @b, @i tags (bold, italics)



git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12738 c92efa57-630b-4861-b058-cf58834340f0
2016-08-13 17:06:09 +00:00
giannozz 2ec52c768d Some cleanup
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12735 c92efa57-630b-4861-b058-cf58834340f0
2016-08-13 07:43:47 +00:00
ccavazzoni d248831c2f - BUG FIX, new fft with EXX
sticks entering fft_type_set are not necessarily consecutive anymore,
  then we need to check all values of stick index


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12730 c92efa57-630b-4861-b058-cf58834340f0
2016-08-12 21:52:02 +00:00
giannozz f57b3b298d 14 pieces of the same code returning the index of first and last k-point in
the global list of k-points, used for k-points parallelization, moved to a
single subroutine. Most of those pieces of code were never actually used
(k-point parallelization is not implemented in several of the utilities)
but just blindly copied from the code performing I/O of wavefunctions.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12720 c92efa57-630b-4861-b058-cf58834340f0
2016-08-11 16:29:04 +00:00
giannozz 52f5bb70d6 Files containing PAW "becsum" and DFT+U "ns" are now written to and read from
$outdir/$prefix.save and no longer into $outdir and name starting with $prefix.
I used a sort of hack and cannot guarantee that it will work for windows. 
This introduces and incompatibility with previous output, but tehre will be
many more incompatibilities coming in the I/O so I don't think it is a major
problem. File names changed to "occup.txt" and "paw.txt" (they are text,
formatted file), not sure this is a wise choice. Shouldn't have side effects. 


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12719 c92efa57-630b-4861-b058-cf58834340f0
2016-08-11 16:25:48 +00:00
spigafi 8fc2c7708c Fixes
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12718 c92efa57-630b-4861-b058-cf58834340f0
2016-08-11 08:56:48 +00:00
kokalj cab04b544e *xml --> *html conversion depends also on input_xx.xsl file
(dependecy added)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12713 c92efa57-630b-4861-b058-cf58834340f0
2016-08-10 17:21:52 +00:00
kokalj 268f1a89b6 Enhancement with the implemented @ref's as to provide more user friendly description (in INPUT_PW.html), bacause in many places references to variables are now linked
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12712 c92efa57-630b-4861-b058-cf58834340f0
2016-08-10 17:19:48 +00:00
giannozz 4b5db827a8 Minor updates to the memory report
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12709 c92efa57-630b-4861-b058-cf58834340f0
2016-08-10 16:56:41 +00:00
giannozz 3fd0e986b8 First draft of a memory estimator
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12705 c92efa57-630b-4861-b058-cf58834340f0
2016-08-10 07:05:34 +00:00
ccavazzoni 75cb15a76d - real space grid initialization moved to fft_types module
(it was acting only on descriptor variables, noneed to keep it into module)
- name change: all function/variables named *_dlay_* renamed *_type_* for consistency

- IMPORTANT: fft_type_allocate merged with real space grid initializaiton
  some other grid functions removed/merged with fft types.
  Since some initialization has been moved elseware there could be some SIDE EFFECT

- In practice, now grid dimensions (nr1, nr2, nr3) comes with fft variable definition
  and variable allocation. 
  NEXT: review of the initialization/setting of the fft parallelization

- real space grid initialization subroutines moved to fft_types module
  (it was acting only on descriptor variables, no need to keep it in Modules)
- name change: all function/variables named *_dlay_* renamed *_type_* for consistency

- IMPORTANT: fft_type_allocate merged with real space grid initializaiton
  some other grid functions removed/merged with fft types.
  Since some initialization has been moved elseware there could be some SIDE EFFECT

- In practice, now grid dimensions (nr1, nr2, nr3) comes with fft variable definition
  and variable allocation.
  NEXT: review of the initialization/setting of the fft parallelization



git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12703 c92efa57-630b-4861-b058-cf58834340f0
2016-08-09 21:38:57 +00:00
kokalj eddf6d3a58 1. all tabs expanded into white-spaces (to prevent misalignment of text)
2. some stylistic enhancements here and there ...



git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12691 c92efa57-630b-4861-b058-cf58834340f0
2016-08-09 12:56:38 +00:00
giannozz b9c8267065 Reshuffling of initialization routines: call to data_structure extracted from
allocate_fft. The reason is to move the printout of summary and of the memory 
report before allocation f large arrays starts. Nothing should change apart
from minor details in the memory report. Please let me know if there are
problems in some specific cases - PG


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12681 c92efa57-630b-4861-b058-cf58834340f0
2016-08-08 13:01:39 +00:00
giannozz 1f35f5dc8b Variables iunigk and igk deleted from global variables. Beware: may break some
codes that rely on them. 


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12674 c92efa57-630b-4861-b058-cf58834340f0
2016-08-07 13:33:29 +00:00
ccavazzoni 92503eb2cd - small boxes fft variables placed in a separate datatype, and removed from fft type
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12671 c92efa57-630b-4861-b058-cf58834340f0
2016-08-06 09:09:42 +00:00
degironc 602dfe7db8 the k-dependent phase factor needed to compute becp is evaluated and saved
by a separate routine whenever the current_point changes.
require some more memory (but should of the order of the size of the
fft slice of a give proc at most)




git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12663 c92efa57-630b-4861-b058-cf58834340f0
2016-08-04 14:11:59 +00:00
degironc 1b63d71811 indexing of real_space related variable betasave(:,:,:) changed from
(1:nat,1:nhm,1:maxir) to (1:maxir,1:nhm,1:nat) so that the needed 
operations are performed on contiguous memory positions.

calbec, add_vuspsi, .. etc   are waaay faster.

changed the indexing also in the only plase in TDDFPT where betasave was 
referred. I dont know if it appears in any hidden project



git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12662 c92efa57-630b-4861-b058-cf58834340f0
2016-08-04 11:42:11 +00:00
degironc 7f3436042a input update for real_space
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12659 c92efa57-630b-4861-b058-cf58834340f0
2016-08-03 23:46:08 +00:00
degironc f74f5295a5 real_space extended to generic k
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12658 c92efa57-630b-4861-b058-cf58834340f0
2016-08-03 22:53:13 +00:00
giannozz 843e40890b Forgotten small piece of a previous commit (GTH pseudopotentials)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12656 c92efa57-630b-4861-b058-cf58834340f0
2016-08-03 11:05:28 +00:00
degironc da12670e2d preparing for extending real_space to generic k
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12630 c92efa57-630b-4861-b058-cf58834340f0
2016-07-30 08:02:04 +00:00
ccavazzoni 43b253226c - logical flag have_task_groups removed from FFT type.
- FFT type now do not have any information about task group:
  no need to temporary change the value of variable...
- When task group are not needed symple do not use "dtgs" data type
- FFT interfaces called with FFT datatype ONLY, do not perform
  task groups trics any longer, this should simply thing a bit....




git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12628 c92efa57-630b-4861-b058-cf58834340f0
2016-07-29 16:37:19 +00:00
ccavazzoni de2a01c4e6 - Task groups variables moved form FFT type to a new data type
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12626 c92efa57-630b-4861-b058-cf58834340f0
2016-07-29 14:25:22 +00:00
degironc 510bc358d5 a little more reshuffling of stuff to bring the vus_psi part close to vloc_psi
in all cases.



git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12625 c92efa57-630b-4861-b058-cf58834340f0
2016-07-29 11:22:58 +00:00
degironc 7ef4d87a4b reorganization of h_psi so that vloc_psi and vus_psi are done first and kinetic energy and other
term are added after. avoids an extra FFT if beta in real_space are used 
  


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12624 c92efa57-630b-4861-b058-cf58834340f0
2016-07-29 11:08:44 +00:00
degironc a0dce17503 slight change in the way the cutoff radius for beta function is defined.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12623 c92efa57-630b-4861-b058-cf58834340f0
2016-07-28 20:59:21 +00:00
degironc f69123d35d option tbeta_smoothing similar to tq_smoothing added.
some cleanup a little semplification in the logics stemming from the fact that tpawp=.true. implies tvanp=.true.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12622 c92efa57-630b-4861-b058-cf58834340f0
2016-07-28 18:52:36 +00:00
degironc a1f19446e1 tq_smmothing variable (default=.false.) added.
tprint option in init_us_0.f90 fixed 
 


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12618 c92efa57-630b-4861-b058-cf58834340f0
2016-07-27 15:45:08 +00:00
degironc 6b334122f2 change in default for augmentation charge construction: do_not_use_spline_inside_rinner=.false.
benchmark updated


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12606 c92efa57-630b-4861-b058-cf58834340f0
2016-07-23 10:15:35 +00:00
degironc 15ee839d36 A new routine init_us_0.f90 is added that introduces a smoothing of the high
fourier components of the augmentation charge for uspp and paw pseudos. 
For each uspp and paw pseudopotential the l-dependent aumentation charge
q_nb_mb_l(r), stored in qfuncl(ir,nmb,l), is 
 - transformed in reciprocal space by bessel transform up to qmax = sqrt(ecutrho), 
 - smoothed by multiplying with a filter function filter(q/qmax,a,nn) and
 - brought back in real space 
where it overwrites the original array.

The filter function is :   filter(x,a,nn) = exp(-axx) * \sum_{k=0,nn} (axx)**k/k!

The routine is inplace but smoothing is disabled by a logical parameter: smoothing=.false.
Still in testing stage, eventually smoothing/non smoothing will become either an 
input option or an appropriate default depending on pseudoptential/calculation type. 

In realus the temporary fix do_not_use_spline_inside_rinner = .true. is maintained
in order to pass the pw_berry test but it is incompatible with the smoothing idea and
I think should be removed. It makes a 1.4d-5 change in the energy, invisible w.r.t.
other errors involved.



git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12605 c92efa57-630b-4861-b058-cf58834340f0
2016-07-22 20:23:40 +00:00
degironc b1fdd20d9d temporary fix for test case pw_berry.
In realus the l-dependednt q(r) is built (now actually copied from qfuncl), all works fine
and in the last stage of the routine the q(r) on the radial grid is used to fill the relevant 
FFT grid pointsi for each atom. 

This is done by a spline interpolation iexcept for the original vandebilt case (with rinner > 0)
where one can also use directly the qfcoef expansion to compute the value.

It shouldn't matter but in the pw_berry test case this change the energy by 1.4d-5, enough to make it fail.

Added a flag that keeps using the original method until a better understanding of the issue is reached.



git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12601 c92efa57-630b-4861-b058-cf58834340f0
2016-07-21 22:06:51 +00:00
pietrodelugas 61c514d0cd Implementation of reading part of new XML schema file added. If compiled with the FLAG __XSD the code will write the XML output file described by the schema and restart information will also be read from the new XML file. Still in testing phase.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12598 c92efa57-630b-4861-b058-cf58834340f0
2016-07-21 14:44:22 +00:00
degironc 4af4f782ab do not divide by zero when building qtot in real space.
almost solve a discrepancy in pw_berry/berry.in test



git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12597 c92efa57-630b-4861-b058-cf58834340f0
2016-07-21 13:29:05 +00:00
degironc 1d3f5c3b8a variable upf%q_with_l back to his input value as it is not anymore used in the code
Makefile updated removing a test routine not under SVN



git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12594 c92efa57-630b-4861-b058-cf58834340f0
2016-07-20 17:56:02 +00:00