Commit Graph

2738 Commits

Author SHA1 Message Date
Paolo Giannozzi 814c3d5615 Cleanup of parallel modules:
- mp_world and world_comm should be used only in MPI initialization,
  not directly in codes - replaced by mp_images and intra_image_comm
  (except in a few cases whose usage is unclear to me)
- mp_global should be used only to provide initialization routines
  mp_startup, mp_global_end
- specific mp_* modules should be used for parallelization level on *
  (* = images, pools, bands, orhtoh, ...)
Nothing actually changes (I hope) but things will look cleaner if the module
for the required parallelization level is USEd instead of a generic one that
does too meny things at the same time. The final goal of this operation is to
better disentangle the various parallelization levels and to have a better
organized, more granular MPI initialization that does not introduces artificial
and meaningless dependencies. Not done for: PHonon, CPV, TDDFPT, GWW, EPW
2019-01-31 15:51:00 +01:00
Paolo Giannozzi 11d764fddf Removal of obsolete lkpoint_dir variable 2019-01-28 22:26:32 +01:00
Paolo Giannozzi 987f245570 BFGS silently stops if the history has already been reset. While this
typically happens close to convergence, a message should be issued to
distinguish between true convergence and "stopping because no progress"
2019-01-28 10:28:52 +01:00
Paolo Giannozzi da041348d1 twfcollect variable deleted. It is still mentioned here and there, still written
into xml files, listed among input variables, but it is never used and no longer
useful. In case, it is easy and quick to reintroduce it, in a less confusing way
2019-01-26 18:26:16 +01:00
Paolo Giannozzi 92e226eacd Before removing these obsolete variables wf_collect and lkpoint_dir,
better to set their default value to the expected one, just in case
2019-01-25 19:18:41 +01:00
Paolo Giannozzi d2b1759025 More cleanup and maaybe small bugs fixed 2019-01-25 17:42:46 +01:00
Paolo Giannozzi 27ec78d0ce Cleanup of Tkatchenko-Scheffler 2019-01-24 19:18:48 +01:00
Paolo Giannozzi 98bb7fadab Why using two lines to do what can be done with a single line? 2019-01-23 16:27:45 +01:00
Paolo Giannozzi a3f54e002a Cleanup: make.depend updated, unused references removed, removed ^M
PLEASE DO NOT COMMIT FILES CONTAINING DOS ^M CHARACTERS
2019-01-22 21:22:13 +01:00
Pietro Delugas 17069747ed added broadcas of the the fixed_file string 2019-01-22 15:29:50 +01:00
giannozz eb361421f9 Merge branch 'develop' into 'develop'
complete LSDA rho conversion

See merge request QEF/q-e!273
2019-01-22 13:20:41 +00:00
Paolo Giannozzi c29c5ca8e7 First round of updates to the PW user manual 2019-01-22 10:26:23 +01:00
fabrizio22 bcbd660c53 hopefully final lsda rho conversion 2019-01-21 15:20:46 +01:00
fabrizio22 9c87cf7106 full lsda rho conversion 2019-01-21 12:02:37 +01:00
Paolo Giannozzi 3df108f640 After recent changes, read_pseudo was overwriting and deleting PPs
in old formats or containing unwanted characters, if the code was
running in tmp_dir. Noticed by Samuel.
2019-01-20 16:59:50 +01:00
Paolo Giannozzi e42041360b Merge branch 'develop' of gitlab.com:QEF/q-e 2019-01-16 21:48:07 +01:00
Paolo Giannozzi f1b4f3d510 Miscellaneous cleanup: release notes, make.depend in EPW, pseudopotentials.
About the latter: please do not add PP files to the distribution unless
really needed; download them from the web instead.
2019-01-16 21:13:04 +01:00
fabrizio22 f3114d67e1 merge develop with rho_updw_mz 2019-01-14 11:40:47 +01:00
Paolo Giannozzi 8fbad7e5a9 UPF v.1 files were no longer recognized after the recent UOF cleanup 2019-01-13 14:24:04 +01:00
Paolo Giannozzi 9c4216c087 Align (re-)calculation of celldm to latest commit 2019-01-11 18:03:29 +01:00
giannozz e2096312e4 Merge branch 'requests' into 'develop'
New cell_dofree choice "ibrav" allows vc-relax while keeping the ibrav representation of unit cell

See merge request QEF/q-e!247
2019-01-11 16:22:35 +00:00
Lorenzo Paulatto (naquite) aaae9936cf Fixed a bug (or inconsistency) in at2ibrav that would print celldm(1) in units of alat (aka itself) except when ibrav=0, wourk-around in remake_cell rolled back 2019-01-11 09:43:46 +01:00
Lorenzo Paulatto (naquite) b213016580 latgen and copany taken back to level with 98d6147e that somehow got lost, also fixedremake_cell accordingly as celldm(1) seems to be now returned by at2ibrav in units of alat. 2019-01-11 09:32:42 +01:00
Paolo Giannozzi fbe5001585 Fixes for UPF "amendment": line length extended to 1024, filename
of temporary file containing amended pseudopotential corrected
2019-01-10 22:07:49 +01:00
Lorenzo Paulatto (naquite) 3ac3385a4c New cell_dofree option to keep ibrav representation of lattice during vc-relax 2019-01-10 15:03:50 +01:00
Paolo Giannozzi 6b7440d131 Last change wasn't working as expected on old formats. Cleanup.
set_dft_from_name modified to recognize syntax "INDEX: 1 2 3 4 0 0"
where the numbers are the internal indices used in XC functionals.
2019-01-06 22:48:20 +01:00
Paolo Giannozzi e82cf997de More minor fixes 2019-01-03 16:06:50 +01:00
Paolo Giannozzi c80872f1b1 More upf cleanup: on-the-fly fix for UPF v.2 files containing undesired & characters moved one level up
(it was inside read_upf, now it has to be called explicitly after read_upf fails). The rationale is to
disentangle PP reading from parallelism (now parallelism is hidden deep inside PP reading), eventually
moving all utilities for reading and convering PP's into a single, "almost stand-alone" library.
2019-01-03 15:55:31 +01:00
Paolo Giannozzi 8870d4ff3a More minor cleaning of pseudopotential reading 2018-12-31 18:39:46 +01:00
Paolo Giannozzi a323a89b01 Pseudopotential cleanup:
- variable oldvan deleted. I think everything should work as before,
  because both Q functions and the Herman-Skillman grid are correctly
  computed in this case as well, but cannot check it. The old Vanderbilt
  format is anyway really old, dating back to 20 years or so.
- variable newpseudo merged into the upf% structure as upf%is_multiproj.
  I think I have reproduced exactly the previous behaviour but again
  cannot check it. I haven't checked the current logic (or lack thereof)
  of this variable, but a better logic would be to actually check whether
  the PP is multi-projector and in all cases (USPP and PAW as well as NCPP)
2018-12-31 15:43:38 +01:00
Paolo Giannozzi d5082b01f9 Cleanup of routines rewading pseudopotentials:
- upf%tcoulombp is properly set by all routines reading PP in any format.
Previously its value was overridden by a bad initialization (apparently
without consequences: Fourier transforms were computed numerically instead
of analytically as they should, but the difference is not noticeable)
- same for upf%is_gth, which is never read but it is convenient to have it
set while reading
- the dft value is set in a single place, outside the routines reading PP
(removes an illogical dependency)
- additional upf initialization needed in some cases is clearer and better
documented (previousy it was confusing and documentation was misleading)
2018-12-29 22:09:38 +01:00
Paolo Giannozzi bb4b2e6116 Missing factor (105.0) in the analytical form of GTH pseudopotentials.
Courtesy Fadjar Fathurrahman
NB: I also added the same factor to mk_dffnl_gth because I think it
should be there, but I have no "experimental" evidence in support
2018-12-20 14:57:18 +01:00
Pietro Delugas b8f3380db4 new function match_skipping_spaces fixed 2018-12-15 11:08:29 +01:00
Pietro Delugas daa4b32a45 fix the matching of symmetry names in spinsym.f90
the names of the symmetries read from the xml file must be matched
with the tabled ones skipping spaces which may be different ...
2018-12-14 20:11:00 +01:00
Pietro Delugas 526ab6181e Hdf5 config 2018-12-11 09:11:52 +00:00
Paolo Giannozzi 98d6147e92 Some time ago I modified routine at2celldm so that it computed the value of
ibrav even if it was set to 0 and lattice defined by at vectors. It wasn't
such a great idea: may break the phonon code, produces a different output
for scf and non-scf runs, does not account for the unlikely but not impossible
case of rotatted cell. This commit reverts to the previous behaviour, while
still allowing to guess an ibrav if desired.
2018-12-03 21:39:32 +01:00
Paolo Giannozzi a1f2d603b1 ppACF.x code, contributed by Yang Jiao, Elsebeth Schroeder, Per Hyldgaard
(Chalmers) - aligned to current development version with minor changes
2018-11-09 16:48:16 +01:00
giannozz 6203ebdd19 Merge branch 'fix_dfpt_plus_u' into 'develop'
Minor changes in DFPT+U

See merge request QEF/q-e!204
2018-11-08 14:01:52 +00:00
Iurii Timrov 112d8c6760 Minor changes in DFPT+U
1) DFPT+U with ortho-atomic orbitals is disables,
because it is more complicated than it was expected.
First, Hubbard forces in pw.x must be extended to ortho-atomic orbitals
and then DFPT+U must be reconsidered.
2) Update the reference files for example18 for DFPT+U
3) Various minor changes
2018-11-08 14:16:19 +01:00
Paolo Giannozzi 8fef4b8619 Ooops, group 33 forgotten ... 2018-11-08 12:15:57 +01:00
Paolo Giannozzi 80e35fe36e Space groups that have only "Na x y z" types of Wyckoff positions were
incorrectly recognized as unimplemented. They should work now.
2018-11-08 11:46:35 +01:00
Riccardo Bertossa d84c8ba587 ion_velocities = 'random' in cp.x now works as expected.
(added new routine to do the initialization, extracted from the old one with some modification to do the equivalent of randpos for the velocities)
2018-10-22 21:32:33 +02:00
Alberto Otero de la Roza 7238421126 revert default exx_fraction to its previous value in pbe0 and other functionals 2018-09-21 10:28:33 +02:00
giannozz 11ba2e9184 Merge branch 'fix_exx_reinit' into 'develop'
fixing vc-relax with exact exchange

See merge request QEF/q-e!173
2018-09-19 12:31:44 +00:00
Alberto Otero de la Roza 99fb77674d Some simple hybrids & XDM parameters 2018-09-19 11:35:43 +00:00
Pietro Delugas 2aa5a66b26 hopefully fixing vc-relax with exact exchange
the coulomb_fac array must be reallocated and upgraded at each variable cell
iteration.

Added to the cell namelist the treinit_gvecs flag if set to
true, fft grid related quantities are upgraded at each iteration.
2018-09-13 19:13:16 +02:00
Pietro Delugas dd533d9363 invert order of real_space_beta and real_space_q
these two arguments in the call of qes_init_algorithmic_info were
inverted.
2018-08-28 13:43:52 +02:00
Paolo Giannozzi f122d1e71b Cleanup of core charge calculation 2018-08-23 14:22:04 +02:00
Pietro Delugas 2df01e13ca fixed header and cpu_time for CP in xml data file 2018-08-23 11:01:17 +02:00
Pietro Delugas b7539005a1 few additions to pw xml schema and other fixes
1. Added in input/electron_control the element real_space_beta.
   It is equivalent to real_space = .true. in the namelist input
2. Added in algorithmic info a real_space_beta which indicates whether
   beta projectors are applied in direct space.
3. Fixed the real_space_q variable in which now copied in the file the value of
   tqr internal variable of pw
4. Added to output/convergence_info/scf_conv the boolean element convergence_achieved
5. Added to ouptut/convergence_info/opt_conv the boolean element convergence_achieved
6. The output/convergence_info element has been set as optional in the schema and now
   in printed only by pw while cp omits printing it.
2018-08-23 11:01:17 +02:00