Commit Graph

3841 Commits

Author SHA1 Message Date
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
degironc bbdda4ed2b code semplicication.
removal of the sections of the q(r) construction not needed anymore.
 


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12593 c92efa57-630b-4861-b058-cf58834340f0
2016-07-20 16:39:22 +00:00
degironc 18dc5b3bd1 routine upf_to_internal modified so that for USPP we set the augmentation charge as an
l-dependent array in all cases.
 This is already the case when upf%tpawp or upf%q_with_l are .true. .
 For vanderbilt US pseudos, where nqf and rinner are non zero, we do here what otherwise
 would be done multiple times in many parts of the code (such as in init_us_1, addusforce_r, 
 bp_calc_btq, compute_qdipol) whenever the q_l(r) were to be constructed. 
 For simple rrkj3 pseudos we duplicate the infomation contained in q(r) for all q_l(r).

 This requires a little extra memory but unifies the treatment of q_l(r) and allows further 
 tweaking with the augmentation charge.

 Variable upf%q_with_l set .true. at the end of the operation. It would be better to leave the 
 variable untouched at its input value  and modify the routines that compute q_l(r) to just use
 the now always present upf%qfuncl array  but this is the first step before some cleanup.

 setqf.f90 moved from PW/src to Modules, Makefiles and dependencies updated




git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12591 c92efa57-630b-4861-b058-cf58834340f0
2016-07-20 11:42:37 +00:00
puma b5dd031305 Added infos on efield_phase paramter
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12590 c92efa57-630b-4861-b058-cf58834340f0
2016-07-20 09:58:35 +00:00
puma 128b53e9b7 Eliminated unused parameters:
lcalc_z2  z2_m_threshold z2_z_threshold



git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12589 c92efa57-630b-4861-b058-cf58834340f0
2016-07-20 09:09:13 +00:00
degironc 5b1a0612be forgotten argument added
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12587 c92efa57-630b-4861-b058-cf58834340f0
2016-07-20 00:11:42 +00:00
giannozz ecc67b8508 flib/ is no more: documentation updated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12586 c92efa57-630b-4861-b058-cf58834340f0
2016-07-19 16:18:04 +00:00
pietrodelugas 1dedf42bb8 array dummy arguments in initialization routines are now declared explicitely with their dimensions. The missing assignement of array dimensions have been added to the initialization routines of vectors, matrices and similar. ecutwfc and ecutrho are now correctly written in Hartree units, instead of Ry. Other minor corrections
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12583 c92efa57-630b-4861-b058-cf58834340f0
2016-07-18 17:14:17 +00:00
giannozz 4a9bed804d More ACE cleanup; parallelization on k-points should now work
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12574 c92efa57-630b-4861-b058-cf58834340f0
2016-07-08 09:38:29 +00:00
giannozz 4de88da0d7 Cleanup using 'source normalizer'
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12573 c92efa57-630b-4861-b058-cf58834340f0
2016-07-08 08:15:48 +00:00
degironc a7f121cbca execution order of the ffts in the scalar case (cftt3ds) changed from
x-y-z to z-y-x (for a G->R transform) to make it consistent with the way
ffts are executed in the general parallel case.

changes to 
- fft_dlay_scalar (in fft_types.f90)
- sticks_maps_scalar (in sticks_base.f90)
- all variant of fft_scalar.XXX.f90 ( tested for XXX=FFTW3 )

no more need to call fft_dlay_allocate with arguments like max(dfft%nr1x,dfft%nrx3) ...  dfft%nr1x should be always fine.

changes should not be needed to CPV and GWW that use cfft3ds initializing data via the modified stick_maps_scalar and fft_dlay_scalar. 
explicitely tested for CPV.

in PW,  pw2blip.f90 uses cfft3ds. The new execution order needs a different definition of the auxiliary array do_fft_x -> do_fft_z, 
that should now be the same as dfft%isind. For now it is initialized following the same logics as the original routine.

some auxiliary functions/subroutines like    put_f_of_R, put_f_of_G, get_f_of_R, get_f_of_G    added to fft_parallel to help
assigning/retrieving values to/from a distributed fft array in the parallel case.
These tools are NOT designed for efficiency but to make life easier in testing programs (see for instance test0.f90).




git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12570 c92efa57-630b-4861-b058-cf58834340f0
2016-07-07 15:44:16 +00:00
giannozz 8f5f3f5539 Incorrect precompilation directive. ACE+USPP sort of working but there is
still some problem with energy calculation.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12568 c92efa57-630b-4861-b058-cf58834340f0
2016-07-06 20:25:19 +00:00
giannozz 8aa35ffd6b ACE updated in such a way that it does not crash whem called with USPP. There
is still something wrong, apparently in the calculation of the energy


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12558 c92efa57-630b-4861-b058-cf58834340f0
2016-07-05 19:12:55 +00:00
ccavazzoni 91dd95e606 - misplaced call to qmmm update force (relocated to be consistent with the former version)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12557 c92efa57-630b-4861-b058-cf58834340f0
2016-07-05 15:58:03 +00:00
giannozz 372f82d004 Cleanup of calculation of exchange energy using ACE
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12556 c92efa57-630b-4861-b058-cf58834340f0
2016-07-05 15:05:47 +00:00
giannozz 29e6ef8c85 Removed recently added printout of debug quantities; energies are now correct
(sort of, see below) during the inner SCF cycle of a hybrid calculation (Ivan)
(the exchange energy is computed at fixed exchange potential, not for the 
current Kohn-Sham orbitals; still better than no energy at all as before)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12555 c92efa57-630b-4861-b058-cf58834340f0
2016-07-05 10:06:01 +00:00
giannozz fe6069c038 Lin Lin's ACE (Adaptively Compressed Exchange) for hybrid functionals,
as implemente dby Ivan Carnimeo. Still experimental but it seems to work 
nicely (USPP not tested). To be activated using -D__EXX_ACE.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12554 c92efa57-630b-4861-b058-cf58834340f0
2016-07-01 13:24:48 +00:00
giannozz bf351fa682 Better definition of "nstep". What are ion_nstepe and cell_nstepe used for?
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12550 c92efa57-630b-4861-b058-cf58834340f0
2016-07-01 09:10:31 +00:00
pietrodelugas 39c00b3eb1 added the nstep field to input/control_variables
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12548 c92efa57-630b-4861-b058-cf58834340f0
2016-06-29 11:35:58 +00:00
pietrodelugas eca8faa6f6 various changes and bug corrections
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12545 c92efa57-630b-4861-b058-cf58834340f0
2016-06-27 14:03:50 +00:00
giannozz 02ce4df8d6 make.sys => make.inc. All other codes using make.sys should modify their build
mechanism accordingly.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12539 c92efa57-630b-4861-b058-cf58834340f0
2016-06-25 07:26:50 +00:00
giannozz 8b45e3e97b Useless reference to input_parameters module
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12518 c92efa57-630b-4861-b058-cf58834340f0
2016-06-21 15:35:50 +00:00
giannozz 8ab9d17e00 The norm of the gradient (forces) was written but never set
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12513 c92efa57-630b-4861-b058-cf58834340f0
2016-06-21 12:05:36 +00:00
giannozz f4583fb928 Minor change to a warning message: sumforce is extensive, eps is not
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12505 c92efa57-630b-4861-b058-cf58834340f0
2016-06-18 15:24:01 +00:00
pietrodelugas 295b37b486 a dft_is_non_local boolean element has been added to the vdW type to be printed only in the output element
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12504 c92efa57-630b-4861-b058-cf58834340f0
2016-06-17 16:14:41 +00:00
pietrodelugas 4bb333eed2 printout of the vdw field inside the dft element has been corrected and completed with
all possible input parameters

git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12502 c92efa57-630b-4861-b058-cf58834340f0
2016-06-17 07:39:56 +00:00
thonhauser ea804663bf Added a reference to a paper.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12501 c92efa57-630b-4861-b058-cf58834340f0
2016-06-17 01:17:47 +00:00
giannozz d49c829ae9 Missing documentation for TS-related variables
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12499 c92efa57-630b-4861-b058-cf58834340f0
2016-06-16 07:58:36 +00:00
pietrodelugas 97d7c2e868 the tot_magnetization element has been introduced in bandType for the input; the output now treats correctly the two_fermi_energies case; the esm element of boundary_conditionsType has been made optional as it should be; fixed a bug in the printout of the occupation in spin-polarized case
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12498 c92efa57-630b-4861-b058-cf58834340f0
2016-06-16 07:05:48 +00:00
giannozz da6da1b0b9 Missing acknowledgments added
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12496 c92efa57-630b-4861-b058-cf58834340f0
2016-06-14 16:28:13 +00:00
giannozz 083900417d More removal of I/O for index - harmless but please verify if head.x works
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12491 c92efa57-630b-4861-b058-cf58834340f0
2016-06-13 12:39:34 +00:00
timrov 7e4e1d9228 Upgrade of the TDDFPT codes using the new logic of the global indices igk_k(1:3,ik) and ngk(ik).
More specificaly:
1) Remove global variable npw (from wvfct) and use ngk(ik) (for optical TDDFPT codes) 
   or ngk(ikk) with ikk=ikks(ik) (for turboEELS). In some routines, ngk is assigned to
   the local variable npw, i.e. npw=ngk(ik), and in other routines ngk is used directly.
2) Remove global indices igk(1:3) (from wvfct) and use igk_k(1:3,ik) (for optical TDDFPT codes)
   or igk_k(1:3,ikk) with ikk=ikks(ik) (for turboEELS).
3) Remove global variable npwq (from qpoint) and use the local variable with the same name,
   which is defined as npwq=ngk(ikq) with ikq=ikqs(ik) (i.e. index of the point k+q).
4) Remove global index variable igkq(1:3) (from qpoint) and use the global index variable
   igk_k(1:3,ikq) with ikq=ikqs(ik).


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12487 c92efa57-630b-4861-b058-cf58834340f0
2016-06-12 17:26:36 +00:00
pietrodelugas d5a32be62a added bravais_index attribute to atomic_structure_type and index_number to atom_type and Hubbard_ns_type. The spin attribute of the occupations_type has been made optional. Routines for managing these type have been changed accordingly.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12485 c92efa57-630b-4861-b058-cf58834340f0
2016-06-10 15:19:55 +00:00
puma ad569e964b Added this to avoid double allocation.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12468 c92efa57-630b-4861-b058-cf58834340f0
2016-06-07 09:10:34 +00:00
ccavazzoni f69ea1ab13 - substituting inappropriate "root_group" (idendifying the root in a group)
with root_group_id (identifying the root group). 
  Nothing change, both are set by default to 0, 
  but they have different meanings, and the use of root_group in the 
  inter_bgrp_comm communications, could led to error in the future.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12462 c92efa57-630b-4861-b058-cf58834340f0
2016-06-03 16:25:49 +00:00
ccavazzoni c4008abe47 - fix for band parallelization and gamma point calculations (same as for k-point)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12460 c92efa57-630b-4861-b058-cf58834340f0
2016-06-03 13:50:04 +00:00
giannozz 1ec56f746f Typo fixed; input file can be specified with .cif extension
Courtesy Nick Thompson


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12456 c92efa57-630b-4861-b058-cf58834340f0
2016-06-01 15:29:55 +00:00
giannozz 0091e313e1 Replicated, useless and confusing variable "outdir" in module io_files deleted
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12450 c92efa57-630b-4861-b058-cf58834340f0
2016-05-31 18:07:16 +00:00
giannozz 0014bec604 Call to cft_wave changed so as to remove need to pass indices. Note that this
will break any code not in svn using cft_wave. Should work but please check.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12449 c92efa57-630b-4861-b058-cf58834340f0
2016-05-30 17:39:48 +00:00
pietrodelugas e9c532cec4 prevent run_nscf from trying to write unitialized elements of the qexsd schema. Changed the name of the <<input>> variable of qexsd_module into the less equivocal name qexsd_input_obj
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12435 c92efa57-630b-4861-b058-cf58834340f0
2016-05-27 15:53:38 +00:00
timrov ef4a28ff1a Several changes:
1) Moved some TDDFPT-specific cases from the general routine LR_Modules/ch_psi_all.f90 to the TDDFPT routines;
2) Deleted the variable "tddfpt", because it is no longer needed anywhere (in the older versions of the code this variable was used to tell to the PHonon routines about TDDFPT specific operations);
3) Some other minor changes in TDDFPT.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12432 c92efa57-630b-4861-b058-cf58834340f0
2016-05-25 17:49:25 +00:00
giannozz 56817ff93f More cleanup of k+G indices: almost all occurrences of k-point dependent "igk"
variables deleted; almost all occurrences of "npw" made local (PW and PP only)
Variable "current_k" must be set before calling h_psi (as before, although it
was used only in some cases). All changes should be safe, but testing of PP 
and PH is very limited.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12428 c92efa57-630b-4861-b058-cf58834340f0
2016-05-23 16:00:53 +00:00
giannozz b7bd945b2c Some more igk cleanup - should be harmless but I cannot guarantee it
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12427 c92efa57-630b-4861-b058-cf58834340f0
2016-05-20 20:58:58 +00:00
giannozz ac4e022a9b Indices "igk", ordering k+G vectors, are useless for k=0 ("gamma-only" case).
They have been kept with the sole purpose to maintain the Gamma-only code and 
the k-point code aligned. Since however some new parts (notably exx with USPP)
do not use them any longer, it doesn't seem to me justified to keep them, 
adding unneeded complexity. They should be kept, with value igk(i)=i, only for
those parts of the code that are common to Gamma-only and to k-point cases.
Everything should work as before, as long as: igk(i)=i for gamma-only case;
nobody uses gamma-only H\psi on perturbations with q.ne.0  


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12425 c92efa57-630b-4861-b058-cf58834340f0
2016-05-19 17:48:25 +00:00
pietrodelugas b2a880c2d1 the gathering of collective npw in pw_write_schema written in the more compact way adopted in print_ks_energies.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12423 c92efa57-630b-4861-b058-cf58834340f0
2016-05-19 12:00:31 +00:00
timrov ef8089e87b Put the routine dv_of_drho in the module (called dv_of_drho_lr), because it contains an optional array drhoc (response core charge density). Without putting dv_of_drho in the module, the code was stopping (if it was compiled with the XLF compiler (on BG/Q)) when making a check "if (add_nlcc .and. .not.present(drhoc))" in the routine dv_of_drho. Thanks to Lorenzo Paulatto and Paolo Giannozzi for the discussions about how to solve this bug!
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12414 c92efa57-630b-4861-b058-cf58834340f0
2016-05-17 13:58:51 +00:00
pietrodelugas dbc6b5ac16 at the end of the run the data-file-schema.xml file is copied to the outdir directory with name prefix.xml
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12413 c92efa57-630b-4861-b058-cf58834340f0
2016-05-17 06:24:37 +00:00
giannozz cbfce16103 Removal of unused variables
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12412 c92efa57-630b-4861-b058-cf58834340f0
2016-05-16 20:30:29 +00:00
giannozz 87807a2384 Two mispells in the same line!
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12398 c92efa57-630b-4861-b058-cf58834340f0
2016-05-09 21:01:19 +00:00
ccavazzoni 7d274c7f73 - BAND PARALLELIZATION: since we need to broadcast the result of the diagonalization
to keep wave functions synchronized across multiple band groups, then we can
  allow the computation of the diagonalization only in the first group,
  freeing resources on the other groups so that they can already 
  prepare for receiving data without delay.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12397 c92efa57-630b-4861-b058-cf58834340f0
2016-05-09 10:01:58 +00:00
ccavazzoni 985a3a1f27 - again band parallelization, in the former commit it should not be "nproc_bgrp" but "nbgrp",
then we need to synchronize the eigenvalues and eigenvectors of the reduced hamiltonian as well.
Now all the former test cases that were failing, now seem to work.
NOT yet tested on BGQ

carlo



git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12390 c92efa57-630b-4861-b058-cf58834340f0
2016-05-05 16:14:00 +00:00
ccavazzoni 49819b7b70 - synchronize wave functions in different band groups after init, to avoid wave functions divergence.
In band group parallelization the G vectors and wave functions are replicated in all band groups,
and they should remain synchronized in order the diagonalization to work properly



git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12389 c92efa57-630b-4861-b058-cf58834340f0
2016-05-05 12:37:08 +00:00
giannozz ce5c59e8fb Misc problems noticed by David Strubbe
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12388 c92efa57-630b-4861-b058-cf58834340f0
2016-05-04 20:20:39 +00:00
pietrodelugas d693bca737 the default value on nqx1 nqx2 and nqx3 is 1 and not 0
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12384 c92efa57-630b-4861-b058-cf58834340f0
2016-05-03 11:52:10 +00:00
giannozz aad378d9a8 More cleanup of k+G indices in PP/ codes: re-calculations of indices deleted,
except in a few cases in which it is not immediately clear what to do.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12382 c92efa57-630b-4861-b058-cf58834340f0
2016-05-01 18:07:07 +00:00
giannozz cb996b7b91 Cleanup of indices igk: bands.x
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12381 c92efa57-630b-4861-b058-cf58834340f0
2016-05-01 07:55:25 +00:00
pietrodelugas 53a179d11c fixed the failure of the input initialization when the K_POINTS card was missing
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12380 c92efa57-630b-4861-b058-cf58834340f0
2016-04-30 15:59:03 +00:00
giannozz 00a7f45db9 Oops, this wasn't supposed to be committed
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12379 c92efa57-630b-4861-b058-cf58834340f0
2016-04-30 15:26:55 +00:00
giannozz 02624a5d03 Make.depend updated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12378 c92efa57-630b-4861-b058-cf58834340f0
2016-04-30 15:25:47 +00:00
giannozz 55167aab52 Indices of k+G, igk_k, ans number of plane waves per k-point, ngk, are now
allocated and computed in a routine init_igk in module klist. This routine is
called by "hinit0" and by "read_file". Asymptotically, all codes using pw.x 
data should read once from data file and never recompute them. This change 
should be safe and shouldn't break anything; three postprocessing codes 
needed some changes.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12377 c92efa57-630b-4861-b058-cf58834340f0
2016-04-30 15:23:33 +00:00
pietrodelugas b9bd67d01a removed a wrong reference from PW/src/pw_init_qexsd_input.f90
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12373 c92efa57-630b-4861-b058-cf58834340f0
2016-04-29 18:24:12 +00:00
pietrodelugas 0213240c44 The data types and routines for writing the schema-compliant XML output
of pw.x, developed in a distinct branch  are merged to the trunk. 
Work done by: 
Giovanni Borghi, Andrea Ferretti, Pietro Delugas  

N.B. The feature is still experimental. To compile it,
 add in make.sys the manual preprocessing  flag   
              -D __XSD   

  


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12372 c92efa57-630b-4861-b058-cf58834340f0
2016-04-29 17:19:28 +00:00
giannozz 129d39d416 Cleanup of routine "n_plane_waves", transformed into a function; changed name
of a variable with the same name (no conflicts but it wasn't nice); source
beautification. Should be harmless: n_plane_waves is used only in two places


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12370 c92efa57-630b-4861-b058-cf58834340f0
2016-04-29 09:35:09 +00:00
giannozz df30a665aa Explicit preprocessing produces *_tmp.f90 files instead of *.F90 files, to
prevent trouble with OS-X. May or may not work (it won't unless configure
is updated: please somebody with v.2.63 of autoconf do it), may turn out to
be obsolete anyway.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12364 c92efa57-630b-4861-b058-cf58834340f0
2016-04-27 14:53:38 +00:00
spigafi 02331b28b7 Update version number in the documentation. I always forget to do it... do it now instead of at the last moment
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12360 c92efa57-630b-4861-b058-cf58834340f0
2016-04-25 20:40:08 +00:00
giannozz 9e024fe28c Obsolete __ESSL preprocessing flag removed (there are no more IBM AIX machines
for scientific computing), only __LINUX_ESSL left


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12358 c92efa57-630b-4861-b058-cf58834340f0
2016-04-25 20:05:24 +00:00
giannozz e94ed4d517 Bug in Raman fixed, misc documentation updates
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12334 c92efa57-630b-4861-b058-cf58834340f0
2016-04-22 12:51:16 +00:00
giannozz 8ea8de7af6 The openmp directive "reduction" with xlf must distinguish between + and -
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12332 c92efa57-630b-4861-b058-cf58834340f0
2016-04-22 09:51:23 +00:00
giannozz 78f0bacde4 Old-style tests deleted
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12330 c92efa57-630b-4861-b058-cf58834340f0
2016-04-22 06:22:52 +00:00
giannozz 7e6c7f1e11 Very likely bug: in QM-MM, the total force on the quantum region should not be
set to zero (it wasn't in the previous version with MS2)
IMPORTANT NOTE 1: anybody using the new QM-MM please check and report.
IMPORTANT NOTE 2: the way it is implemented assumes that QM-MM and ESM are
not both active


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12324 c92efa57-630b-4861-b058-cf58834340f0
2016-04-21 08:43:27 +00:00
giannozz 03f584e114 Clarification (?) of the effects of some obscure symmetry flags.
Check preventing bad usage of option "use_all_frac"


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12317 c92efa57-630b-4861-b058-cf58834340f0
2016-04-20 05:56:39 +00:00
giannozz 64af1331a8 Wyckoff positions like "Atom 48n x y z" should be now recognized and yield
the same results as "Atom x y z"


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12314 c92efa57-630b-4861-b058-cf58834340f0
2016-04-17 13:59:21 +00:00
giannozz bb78076f39 The routines that listed atoms with Wyckoff position input were occasionally
unable to recognize that 1 and 0 are the same coordinate in crystal coordinates


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12313 c92efa57-630b-4861-b058-cf58834340f0
2016-04-17 13:34:22 +00:00
giannozz 51b2746bfa Added simple test (alpha-quartz) for Wyckoff positions
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12312 c92efa57-630b-4861-b058-cf58834340f0
2016-04-15 19:33:12 +00:00
giannozz 3bb4e1104e Avoid calls to pw2casino in unimplemented cases
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12304 c92efa57-630b-4861-b058-cf58834340f0
2016-04-12 20:44:38 +00:00
giannozz f5f19028e4 Minor documentation updates
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12298 c92efa57-630b-4861-b058-cf58834340f0
2016-04-11 17:55:42 +00:00
giannozz 3c5e774079 Misc changes for NAG compiler, by Samuel, plus make.depend update
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12286 c92efa57-630b-4861-b058-cf58834340f0
2016-04-06 16:41:55 +00:00
degironc a2ede6d760 qexml.f90/pw_restart.f90 : saves/reads variable acfdt_in_pw which is set by default
to .false. in acfdt_in_pw.f90.

wfcinit.f90  checks whether wfc unit is open before reading. if not opens it and 
closes it after reading. ie: the status of the unit is the same as it was originally.
 
makedeps.sh updated for ACFDT/src directory

all these changes should be harmless unless one plays with acfdt_in_pw 




git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12278 c92efa57-630b-4861-b058-cf58834340f0
2016-04-04 20:16:41 +00:00
giannozz 78830ab2c8 Neither OpenMP nor MPI was properly working in the routine just added. The
latter was actually a pre-existing bug: some variables related to the 
treatment of van der Waals interactions were neither set nor properly 
broadcast. Not a big deal until the day you want to use them.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12275 c92efa57-630b-4861-b058-cf58834340f0
2016-04-02 07:44:22 +00:00
ccavazzoni 5852cc814c - pw band parallelization is working properly only if diagonalization group is
generated from the band group, and not from the pool group.
  In general we need to review the band parallelization in PW, and its consequences,
  before the next release.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12272 c92efa57-630b-4861-b058-cf58834340f0
2016-04-01 12:29:25 +00:00
giannozz f7c86da2a7 No need to globally redefine the maximum number of plane waves (npwx) for exact exchange:
it can be redefined locally in the only place where it is needed (compute_becxx). 
Routines allocate_nlpot and  n_plane_waves simplified a little bit.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12244 c92efa57-630b-4861-b058-cf58834340f0
2016-03-24 10:57:41 +00:00
giannozz c1968106bd Hybrid functionals + Ultrasoft + G-space + k-point parallelization now works.
The bug was very interesting: the "smooth" and the "custom" grid, that were
supposed to be the exactly the same, weren't: the ordering was different.
Added some comments, removed some others that did not apply any longer.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12242 c92efa57-630b-4861-b058-cf58834340f0
2016-03-23 21:14:40 +00:00
giannozz 4c34ba3ab3 make.depend updated; added missing make.depend for bse
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12240 c92efa57-630b-4861-b058-cf58834340f0
2016-03-23 14:55:51 +00:00
puma a61d177b04 This prevents problems with gamma only.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12229 c92efa57-630b-4861-b058-cf58834340f0
2016-03-21 10:22:22 +00:00
giannozz 87c66da0fe Minor cleanup
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12223 c92efa57-630b-4861-b058-cf58834340f0
2016-03-19 12:09:03 +00:00
giannozz c8937dd9e8 Suite of the previous truncated messsage: I wonder whether it makes sense to
keep the G-space treatment of hybrid USPP, since it is so slow that it is 
unlikely to be of any use.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12222 c92efa57-630b-4861-b058-cf58834340f0
2016-03-17 10:00:53 +00:00
giannozz de778717d6 Hybrid functionals with USPP and real-space treatment seem to work with
k-point parallelization. I wonder if we should keep the G-space
case, since it is so slow that no


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12221 c92efa57-630b-4861-b058-cf58834340f0
2016-03-17 09:58:31 +00:00
paulatto 20ea69119f Small typo in doc
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12217 c92efa57-630b-4861-b058-cf58834340f0
2016-03-15 13:52:27 +00:00
giannozz 2c88ed349b Minor changes for clarity; misplaced comment clarified and moved to a more
appropriate place


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12207 c92efa57-630b-4861-b058-cf58834340f0
2016-03-13 10:37:22 +00:00
giannozz ce81a0b744 Minor improvements
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12206 c92efa57-630b-4861-b058-cf58834340f0
2016-03-11 16:03:09 +00:00
ccavazzoni 7b4856a1ac - QMMM ( lammps+qe ), Adding EC coupling
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12199 c92efa57-630b-4861-b058-cf58834340f0
2016-03-06 15:43:18 +00:00
giannozz fd0f6ef173 I think that this was a bug, though harmless because in the Gamma case there
is always one k-point (not sure about the LSDA case, though). I am not sure 
whether my fix is more correct than the previous situation: 


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12197 c92efa57-630b-4861-b058-cf58834340f0
2016-03-06 14:07:22 +00:00
giannozz 5656a4921e EXX with k-point parallelization: the last of the three variables in module
exx used by k-point parallelization is made local to where it belongs


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12196 c92efa57-630b-4861-b058-cf58834340f0
2016-03-06 13:37:18 +00:00
giannozz 1224e9fd13 EXX with k-point parallelization: obsolete routine wg_all removed
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12195 c92efa57-630b-4861-b058-cf58834340f0
2016-03-06 09:12:52 +00:00
giannozz 598960090d EXX with k-point parallelization: more cleanup. New routine "poolcollect"
collects data distributed across pools and broadcast them to all processors.
Routines operating on pools are collected in file para.f90, whose comments
have been updated to reflect what those reoutine really do.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12194 c92efa57-630b-4861-b058-cf58834340f0
2016-03-06 08:51:17 +00:00
giannozz 0b1fffd2a2 EXX with k-point parallelization: removal of a useless variable
--- This line, and those below, will be ignored--

M    PHonon/PH/phq_init.f90
M    PHonon/PH/elphon.f90
M    PW/src/xk_wk_collect.f90
M    PW/src/exx.f90


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12193 c92efa57-630b-4861-b058-cf58834340f0
2016-03-05 15:24:02 +00:00
giannozz 1d62aebdda EXX with k-point parallelization: more simplification. Should be safe but
no warranty, I tried it in a single case


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12192 c92efa57-630b-4861-b058-cf58834340f0
2016-03-05 15:11:17 +00:00
giannozz 0b79e3a9b0 EXX with k-point parallelization: minor simplification
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12191 c92efa57-630b-4861-b058-cf58834340f0
2016-03-05 12:19:37 +00:00
giannozz 5a53fc1af1 There is a problem with k-point parallelization and hybrid functionals in the
US case. Not a priority, given the curret  poor performances of hybrid with 
USPP: for the time being, I added a check to disable this case


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12190 c92efa57-630b-4861-b058-cf58834340f0
2016-03-05 09:21:30 +00:00
dceresoli 67d40de185 I forgot to document london_rcut
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12188 c92efa57-630b-4861-b058-cf58834340f0
2016-03-03 13:41:26 +00:00
dceresoli dd3cbdf020 london_rvdw(1:nsx) to enter vdw radii
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12187 c92efa57-630b-4861-b058-cf58834340f0
2016-03-02 15:31:08 +00:00