Commit Graph

418 Commits

Author SHA1 Message Date
giannozz d99d0c0b2b Removed duplicated routine write_header in Modules/xml_io_base.f90
make.depend and release-notes updated


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@11030 c92efa57-630b-4861-b058-cf58834340f0
2014-06-06 12:54:01 +00:00
sclauzer a531252e7a Example for PWcond within LDA+U(pseudo) fixed and updated (GS)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@10878 c92efa57-630b-4861-b058-cf58834340f0
2014-04-14 08:41:05 +00:00
giannozz 7c01062ba0 Final (?) set of changes to the build system, especially for Windows (Axel)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@10590 c92efa57-630b-4861-b058-cf58834340f0
2013-11-07 21:06:06 +00:00
giannozz 54aa35ab00 More changes to the build system for MinGW by Axel, more Makefile cleanup
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@10586 c92efa57-630b-4861-b058-cf58834340f0
2013-11-06 20:45:58 +00:00
giannozz d224f9d7b8 Small fixes for unitialized variables and questionable constructs,
courtesy of Ake Sandgren


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@10577 c92efa57-630b-4861-b058-cf58834340f0
2013-11-05 14:35:41 +00:00
giannozz 19782a8bbb Missing & in continuation line (harmless but some compilers don't like)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@10561 c92efa57-630b-4861-b058-cf58834340f0
2013-10-28 09:27:07 +00:00
giannozz 95600c8582 More cleanup of parallel modules: mp_global no longer contains references to
variables for the "world" MPI communicator. The latter are to be found in 
world_comm instead. mp_global should be used only to start and to end the
various parallelization levels. Many small but harmless changes: a few 
variables removed or moved to another module in most cases.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@10558 c92efa57-630b-4861-b058-cf58834340f0
2013-10-27 09:09:10 +00:00
ccavazzoni 3667d17bd3 - optional communicator completely removed
- PWCOND was not compiling any more after last branch merging,
  I fix it mapping old to new variables (realus), but I need someone checking it 


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@10532 c92efa57-630b-4861-b058-cf58834340f0
2013-10-12 21:32:01 +00:00
giannozz 041d970f65 More minor MPI changes by Axel:
- adapt mp_abort() to have a mandatory communicator
- remove the unused err_msg string variable
- fix a compilation issue
- update dependencies



git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@10501 c92efa57-630b-4861-b058-cf58834340f0
2013-10-01 20:04:21 +00:00
ccavazzoni 8e3c312346 - more implicit communicator clean-up
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@10500 c92efa57-630b-4861-b058-cf58834340f0
2013-09-30 11:35:20 +00:00
ccavazzoni b1fabb0fd9 - more clean-up about mp call without communicator
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@10498 c92efa57-630b-4861-b058-cf58834340f0
2013-09-28 23:32:46 +00:00
ccavazzoni 8b9c1a54d0 - more Axel patches for LAMMPS and QE integration
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@10493 c92efa57-630b-4861-b058-cf58834340f0
2013-09-27 14:37:51 +00:00
ccavazzoni 8f624ecd1d adding explicit communicator in "mp" cals
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@10491 c92efa57-630b-4861-b058-cf58834340f0
2013-09-26 20:53:32 +00:00
giannozz e0086b6882 The IFLAGS variable is set in make.sys to a value that works if sources are
one directory down, not two directories down. Now it is explicitly set to
something (hopefully) appropriate everywhere. Note that include/f_defs.h 
is obsolete and shouldn't be included (it is still in GWW and TDDFPT).


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@10446 c92efa57-630b-4861-b058-cf58834340f0
2013-08-26 16:36:27 +00:00
giannozz db78b5799b More careful removal of scratch files in examples: only files starting with
"pwscf" or "cp" are removed when the scratch directory is cleaned. May still
need some tweaking in some cases, though, because not all files start with
the value of "prefix" variable


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@10437 c92efa57-630b-4861-b058-cf58834340f0
2013-08-16 14:39:10 +00:00
smogunov d1d6cdf335 Bug fix: addition to the total transmission was not in the
right place. 



git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@10301 c92efa57-630b-4861-b058-cf58834340f0
2013-06-06 13:08:04 +00:00
giannozz 97e60dad78 make.depend updated\
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@10285 c92efa57-630b-4861-b058-cf58834340f0
2013-05-30 13:39:55 +00:00
smogunov ac119834e7 Fix bug: memory allocation problem encountered at some cases
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@10282 c92efa57-630b-4861-b058-cf58834340f0
2013-05-28 07:16:36 +00:00
smogunov 6e5b4621b4 Some small cleaning.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@10269 c92efa57-630b-4861-b058-cf58834340f0
2013-05-23 09:00:30 +00:00
smogunov a299043f0d Implemented the transport with DFT+U (a simple scheme for collinear case only, at the moment),
where it is assumed that +U orbitals are located only in the scattering region (A. Smogunov).   


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@10266 c92efa57-630b-4861-b058-cf58834340f0
2013-05-23 08:01:57 +00:00
giannozz 05778aacaf There is no reason to store into a file (or into a buffer) the atomic
wavefunctions, unit "iunat": they are used only at the end to calculate
forces and stresses with LDA+U. It takes less than no time to re-generate
them on the fly. Unit "iunat" removed everywhere. Also: unit iunatsicwfc
used only in pw2wannier.f90 moved there.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@10193 c92efa57-630b-4861-b058-cf58834340f0
2013-04-26 20:02:37 +00:00
giannozz bd1f333e47 LDA+U initialization moved out from routine setup.f90 into the lda+U module,
together with lda+U variables extracted from pwcom.f90; stored in a separate 
ldaU.f90 file. Added a yet unused variable "is_hubbard". make.depend update. 
Lot of noise but nothing substantial. 


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@10169 c92efa57-630b-4861-b058-cf58834340f0
2013-04-19 14:14:42 +00:00
giannozz 2a4b284d07 Changed the "open_buffer" call. It is no longer needed to specify the
maximum number of record. Better to specify with a flag if writing to a
RAM buffer than using tricks such as negative units. BEWARE: may break 
things *but it shouldn't)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@10056 c92efa57-630b-4861-b058-cf58834340f0
2013-03-13 21:17:31 +00:00
giannozz 7df850e0c1 Not yet band-parallelization-ready ..
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9971 c92efa57-630b-4861-b058-cf58834340f0
2013-02-14 13:55:44 +00:00
giannozz 414a29622f Addendum to previous commit: a few more instances of questionable
calculation of quantities in real space fixed (I hope). I think there 
can be more (in particular, dipole calculation in Makov-Payne is for sure
affected). Moreover it seems that in several cases there is no check whether
the (i,j,k) indices in real space correspond to a physical position or to
a bogus one. Please have a careful look. The correct (?) way to do things
should be the one in realus.f90. The latter has only been cleaned up a bit.



git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9970 c92efa57-630b-4861-b058-cf58834340f0
2013-02-14 13:44:48 +00:00
giannozz c44dd0535d Further attempt of a I/O cleanup. BEWARE: it may break a number of things.
1) wfc_dir is always set to something sensible: either its value or tmp_dir
2) files containing wavefunctions and the like in pw.x are stored in wfc_dir,
   always; no need to save, modify, reset tmp_dir
3) with the exception of TDDFPT, all other codes do not read wfc_dir. Thus,
   wfc_dir is set to tmp_dir by read_file(), since in any case it is where 
   it is looking for wavefunctions
4) TDDFPT reads and uses wfc_dir; for the time being, wfc_dir is set to
   either its value or to "undefined", in order to keep compatibility with 
   its usage in TDDFPT. The setting is done AFTER read_file is called
May or may not work. I hope it does.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9965 c92efa57-630b-4861-b058-cf58834340f0
2013-02-12 16:42:54 +00:00
giannozz 847297ba79 Interface for read/write in memory slightly simplified. Note that now the
unit for writing in memory is -10. Shouldn't have unexpected effects but
no warranty


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9964 c92efa57-630b-4861-b058-cf58834340f0
2013-02-12 13:34:22 +00:00
sclauzer 76c65671c9 Support for ballistic transport with DFT+U using pseudopotential projectors added to PWcond.
Example of usage included (needs PP with AE wfcs, added in pseudo/).


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9572 c92efa57-630b-4861-b058-cf58834340f0
2012-10-24 09:41:28 +00:00
dalcorso 0a64c6da77 Added a script to run all PWCOND examples and a script to clean all the
examples.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9376 c92efa57-630b-4861-b058-cf58834340f0
2012-08-25 13:44:48 +00:00
ccavazzoni 55990bc1a2 - new dependencies
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9235 c92efa57-630b-4861-b058-cf58834340f0
2012-07-26 15:44:01 +00:00
giannozz 7cfc6e68fc make.depend updated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9211 c92efa57-630b-4861-b058-cf58834340f0
2012-07-20 13:54:45 +00:00
giannozz f7a9f33a2e integer used as logical: not all compilers like it
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9207 c92efa57-630b-4861-b058-cf58834340f0
2012-07-20 13:10:58 +00:00
smogunov 50aa74b1c1 Documentation updated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9185 c92efa57-630b-4861-b058-cf58834340f0
2012-07-12 13:24:03 +00:00
smogunov f9729c4a23 Added a possibility to plot a k-resolved transmission
using the option tk_plot, integer, if it is > 0 the code
will plot the transmission in k-space region [Full BZ x tk_plot]
Also an option to change the order of 2 loops over k and E
is introduced by using the parameter loop_ek (if .true.
E loop is outside the k-point loop) which could be useful
for 2D interfaces. (A. Smogunov)  

(A. Smogunov) 



git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9184 c92efa57-630b-4861-b058-cf58834340f0
2012-07-12 13:01:34 +00:00
giannozz ff6d238f00 Address for network download of pseudopotentials updated and moved to
environment_variables


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@8999 c92efa57-630b-4861-b058-cf58834340f0
2012-05-14 13:10:13 +00:00
giannozz 7c7b785364 Coommunicators in mix_pot reverted to previous value; mix_pot is
actually used only in phonon so it can stay there. Makefiles and 
make.depend update


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@8706 c92efa57-630b-4861-b058-cf58834340f0
2012-02-22 14:50:25 +00:00
giannozz 56b0ca1402 Cleanup of the "divide" routine. I also change the order of arguments
so that input variables come first, output variables last. Minor 
documentatin updates


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@8697 c92efa57-630b-4861-b058-cf58834340f0
2012-02-20 15:47:33 +00:00
marsamos 7ffce9cfd6 divide now with argument comm. all calls
have been changed



git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@8692 c92efa57-630b-4861-b058-cf58834340f0
2012-02-20 09:34:55 +00:00
giannozz 6fbe035be4 Very minor corrections (misspells etc)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@8599 c92efa57-630b-4861-b058-cf58834340f0
2012-02-10 13:19:37 +00:00
marsamos 891d1c420b examples deleted, environment_variables moved to main dir, all run_examples changed
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@8593 c92efa57-630b-4861-b058-cf58834340f0
2012-02-08 19:11:33 +00:00
dalcorso 0c780c4270 Small change to previous commit.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@8592 c92efa57-630b-4861-b058-cf58834340f0
2012-02-08 16:49:40 +00:00
dalcorso 71d71fd222 Now pwcond checks that the leads and scattering regions have been calculated
with the same cut-offs.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@8591 c92efa57-630b-4861-b058-cf58834340f0
2012-02-08 16:47:45 +00:00
giannozz 4de42518ea No reason to have both __PARA and __MPI preprocessing options: they have the same meaning. __MPI is more explicit, so I am keeping it
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@8572 c92efa57-630b-4861-b058-cf58834340f0
2012-02-02 22:12:26 +00:00
marsamos 1cabaf5a83 updated README for examples in PW PP PHonon PWCOND and CPV
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@8569 c92efa57-630b-4861-b058-cf58834340f0
2012-02-02 15:31:33 +00:00
marsamos 523ae083c0 make_clean and run_all_examples copied to PWCOND/examples dir
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@8519 c92efa57-630b-4861-b058-cf58834340f0
2012-01-20 16:57:46 +00:00
marsamos 54126e2a11 added "make doc" and "make doc_clean" on dirs Doc/Makefile
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@8508 c92efa57-630b-4861-b058-cf58834340f0
2012-01-20 13:13:27 +00:00
kokalj e73f5e12ba changing doc-def/input_xx.xsl to dev-tools/input_xx.xsl
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@8494 c92efa57-630b-4861-b058-cf58834340f0
2012-01-20 12:18:23 +00:00
marsamos d909171c23 some cleaning of Doc's Makefile
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@8484 c92efa57-630b-4861-b058-cf58834340f0
2012-01-20 11:10:18 +00:00
marsamos feb165f333 add link to input_xx.xsl style file for NEB/Doc and PWCOND/Doc
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@8451 c92efa57-630b-4861-b058-cf58834340f0
2012-01-16 14:57:08 +00:00
marsamos 557853f646 dependency PP/xsf.o updated to PP/src/xsf.o
in PWCOND



git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@8419 c92efa57-630b-4861-b058-cf58834340f0
2012-01-09 14:54:55 +00:00
marsamos 59d6818a9b PW/src PW/tools compiling makedeps updated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@8335 c92efa57-630b-4861-b058-cf58834340f0
2011-12-14 17:33:33 +00:00
marsamos 2496b745bd PH re-structured. PH Now called PHonon, D3 and Gamma moved to dir PHonon
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@8158 c92efa57-630b-4861-b058-cf58834340f0
2011-09-21 13:43:24 +00:00
smogunov c1806a87c8 Some cleaning in pwcond (A. Smogunov)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@8151 c92efa57-630b-4861-b058-cf58834340f0
2011-09-13 11:28:19 +00:00
giannozz 5ca88c4122 Exotic symmetry option made explicit (see variable "skip_equivalence")
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@8140 c92efa57-630b-4861-b058-cf58834340f0
2011-09-02 16:08:24 +00:00
marsamos b2587a6ecc now new module/Doc/Makefile for INPUT_*.def
extended to PWCOND



git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@8104 c92efa57-630b-4861-b058-cf58834340f0
2011-08-23 15:45:52 +00:00
marsamos 8ff617c901 moved INPUT_PWCOND.def from doc-def to PWCOND/Doc
no idea on how to generate human readable
doc. 



git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@8097 c92efa57-630b-4861-b058-cf58834340f0
2011-08-16 15:17:52 +00:00
marsamos beb3244f38 example02 of PWCOND now only contains pwcond related things
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@8095 c92efa57-630b-4861-b058-cf58834340f0
2011-08-16 11:25:43 +00:00
marsamos ecca04136b PWCOND new dir structure
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@8093 c92efa57-630b-4861-b058-cf58834340f0
2011-08-16 11:08:13 +00:00
ccavazzoni 8040dea31d - grid data structure merged with the fft data structure.
Now all variables regarding real space grid, fft and 
  their parallelization are contained into the objects:
  dfftp (dense grid) 
  dffts (smooth grid)



git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@7973 c92efa57-630b-4861-b058-cf58834340f0
2011-07-14 22:14:15 +00:00
giannozz 7ef57339ca Misc compilation problem in serial execution after recent changes
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@7966 c92efa57-630b-4861-b058-cf58834340f0
2011-07-11 15:54:56 +00:00
ccavazzoni 930828018e - real space grid variables (nr1, nr2, ecc...) substituted by a data type.
Further changes will follow in order to reduce dependencies and 
  duplicate variables (especially with dfft data structure) 
  


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@7961 c92efa57-630b-4861-b058-cf58834340f0
2011-07-10 20:56:44 +00:00
marsamos f83cfca2a0 open_input_file modified to automatically detect xml. There is no nedd
for arg -xmlinput now.
all routines calling find_free_unit or trimcheck have been
modified. 


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@7926 c92efa57-630b-4861-b058-cf58834340f0
2011-07-04 15:27:16 +00:00
giannozz 863a50a17d "a_0" renamed "alat" in printout to prevent confusion with Bohr radius
and to be consistent with documentation (upon advice from Nicola Manini)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@7793 c92efa57-630b-4861-b058-cf58834340f0
2011-05-17 11:18:28 +00:00
smogunov 191384532f Bug fix: when the write/read option is used in pwcond for the case of different leads. (A. Smogunov)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@7782 c92efa57-630b-4861-b058-cf58834340f0
2011-05-16 08:37:29 +00:00
giannozz df160c95f3 Variable ecutwfc moved from "gvect" to "wvfct"
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@7341 c92efa57-630b-4861-b058-cf58834340f0
2010-12-22 21:44:25 +00:00
giannozz 473a19205a All references to EE/ subdirectory and to libraries in Multigrid/ removed.
Calls to variables and routines in EE/ commented, for the time being.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@7226 c92efa57-630b-4861-b058-cf58834340f0
2010-11-18 15:49:00 +00:00
giannozz 08d96590f9 More merge of grid dimensions:
1) variables nrxx, nr[123][x] moved from gvect to grid_dimensions
2) when the FFT descriptor, fdfftp, is presewnt, values contained
   in the descriptor are used instead
Beware unintended side effects.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@7167 c92efa57-630b-4861-b058-cf58834340f0
2010-10-26 08:28:22 +00:00
giannozz 6bfc647bc8 Grid dimensions for the smooth grid, nr[123]s and nr[123]sx, are only in
module smooth_grid_dimensions and no longer in gsmooth. Note that in most
cases, dffts%nr[123] is used instead (of course they are the same).
Lots of changes but nothing substantial. Beware unintended side effects


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@7159 c92efa57-630b-4861-b058-cf58834340f0
2010-10-22 15:47:22 +00:00
giannozz b41ba40564 Harmonization of FFT grid variables with CP:
nrx1, nrx2, nrx3 => nr1x, nr2x, nr3x
  nrx1s,nrx2s,nrx3s=> nr1sx,nr2sx nr3sx


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@7091 c92efa57-630b-4861-b058-cf58834340f0
2010-09-18 16:48:39 +00:00
giannozz 893be56652 removal of unused variables
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@7069 c92efa57-630b-4861-b058-cf58834340f0
2010-09-02 10:21:40 +00:00
giannozz a561a61e98 Forgot to update GIPAW in previous commits, plus minor things (removal of
unused routines and of unused variables)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@7050 c92efa57-630b-4861-b058-cf58834340f0
2010-08-31 13:13:51 +00:00
nn245 2d682524e5 run makedep on directories (N. Nemec)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6882 c92efa57-630b-4861-b058-cf58834340f0
2010-07-05 16:39:50 +00:00
dalcorso c35ba30d85 Small cleanup of pwcond.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6841 c92efa57-630b-4861-b058-cf58834340f0
2010-06-14 14:23:17 +00:00
dalcorso 9f6796f4cc Small change.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6839 c92efa57-630b-4861-b058-cf58834340f0
2010-06-14 13:40:34 +00:00
dalcorso 284ec662ca Missing Copyright.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6838 c92efa57-630b-4861-b058-cf58834340f0
2010-06-14 13:35:44 +00:00
giannozz b856043fff First preliminary step towards I/O cleanup: unused/obsolete file names
removed, file names used only in PWCOND moved there into module cond_files


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6830 c92efa57-630b-4861-b058-cf58834340f0
2010-06-11 13:55:58 +00:00
dalcorso f38c1d3c7a Harmless bug fix: check of an unitialized variable.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6574 c92efa57-630b-4861-b058-cf58834340f0
2010-03-31 09:17:08 +00:00
giannozz da3f938442 More symmetry cleanup (sort of). Symmetry-related variables, together with
routines that find the symmetry of a system, are in module symm_base;
module symme contains only routines for symmetrization of the various
quantities.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6403 c92efa57-630b-4861-b058-cf58834340f0
2010-02-12 20:57:55 +00:00
smogunov 2ffd42bb81 Bug fix in automatic generation of 2D k-points (A. Smogunov)
----------------------------------------------------------------------


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6402 c92efa57-630b-4861-b058-cf58834340f0
2010-02-12 11:47:42 +00:00
giannozz c22a10cc2f All makefiles simplified, make.depend updated, fixed an inconsistency in
XSpectra coming from recent changes


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6379 c92efa57-630b-4861-b058-cf58834340f0
2010-02-09 15:21:51 +00:00
sclauzer dc55c9662b Oops... forgot to remove debug line in previous commit. GS
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6183 c92efa57-630b-4861-b058-cf58834340f0
2009-11-20 10:49:09 +00:00
sclauzer 59416e4e75 Small fixes (removed useless line, deallocate unallocated array, fixing clocks). GS
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6182 c92efa57-630b-4861-b058-cf58834340f0
2009-11-20 10:46:19 +00:00
sclauzer 27fc049c74 Fixing missing initialization of a control flag. GS
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6170 c92efa57-630b-4861-b058-cf58834340f0
2009-11-18 14:54:37 +00:00
giannozz 90a501d84e variables ortho_para and use_task_group moved from control_flags to
mp_global, which seems to me a more appropriate place. Many changes
but little stuff. Hopefully harmful, but no guarantee: please check!


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6122 c92efa57-630b-4861-b058-cf58834340f0
2009-11-09 16:07:19 +00:00
giannozz fcb09dd617 More initialization cleanup: clock and stack initialization moved into
environment_start; a few useless wrappers removed


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6115 c92efa57-630b-4861-b058-cf58834340f0
2009-11-08 10:11:24 +00:00
giannozz 805b860d62 Merge of initial printout between CP and PW: CPV/environment.f90 moved
to Modules/environment.f90 and generalized to PW and other codes.
PW/startup.f90 is kept as a wraper for now. The initial message in CP
looks now like the one in PW (please check if it satisfactory). The
compilation date has disappeared from info printed by CP: was it useful?
Makefiles and make.depends updated. ld1 does not depend any longer upon
files in PW/ . Miscellaneous cleanup.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6111 c92efa57-630b-4861-b058-cf58834340f0
2009-11-06 17:28:19 +00:00
giannozz 7370db21a7 Intrinsic AND that some compilers don't like replaced with stanbdard IAND
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6054 c92efa57-630b-4861-b058-cf58834340f0
2009-10-20 10:58:58 +00:00
degironc fb6d84f554 In an attempt to unifying the management of becp-like variables in various cases
(gamma_only, noncolin and generic k) a derived data-type bec_type is introduced
in becmod with component %r (for gamma real case), %nc (for non colinear case)
and %k (for the generic k case) .
The changes were tivial (rbecp -> becp%r, becp->becp%k, becp_nc->becp%nc) but
pervasive... I tried my best to test that everything is ok

stefano


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5937 c92efa57-630b-4861-b058-cf58834340f0
2009-09-16 15:26:25 +00:00
degironc ea12898a5d first implementation of Martyna-Tuckerman method to decouple periodic
images in a cluster calculation.  Still to be tested in parallel, it
 has been tested for Gamma vs 0 0 0 and for nspin=1 and 2. Forces seem
 to be ok. In the few cases considere there is no significant increase
 of workload with respect to the periodic calculation.

 plot_io.f90 moved from PP to flib because it may be needed
 in PW/martyna_tuckeman.f90 for debugging and in this way circular
 references are avoided. It only USE low-level modules like io_global,
 kinds, and constants so it should be ok.

 Module ws_base.f90 added in Modules. It deals with basic operations
 associated to Wigner-Seitz cell. The implementation should be general;
 it has been tested for SC and FCC only.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5911 c92efa57-630b-4861-b058-cf58834340f0
2009-09-09 12:59:40 +00:00
sclauzer 54612f051c BUG FIX: check of lspinorb flag consistency was assuming wrong precedence of .neqv. operator.
Small fix to the print out of the scattering energy (when Nchannels=0).
GS


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5896 c92efa57-630b-4861-b058-cf58834340f0
2009-09-07 10:30:34 +00:00
giannozz a13cd1f18b Misplaced routines re-placed, Makefiles updated:
Modules/vxccg.f90 split into atomic/vxcgc.f90 and flib/radial_gradients.f90
Modules/metagga.f90 moved to flib/metagga.f90


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5884 c92efa57-630b-4861-b058-cf58834340f0
2009-09-04 13:40:13 +00:00
giannozz 5c2f8645f8 Removed SHMEM, Makefiles and make.depend updated; lenght => length ; misc
Second attempt - for some reason the cvs on qe-forge more often than not
doesn't complete the job


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5815 c92efa57-630b-4861-b058-cf58834340f0
2009-08-04 14:36:12 +00:00
giannozz afec752184 End of this set of not-so-fundamental changes. Summary:
1) no more f_defs.h file to be included in fortran files
2) all CMPLX explicitly defined as CMPLX(...,KIND=dp)
3) blas/lapack names in lowercase (not all of them, actually)
4) documentation accordingly updated (plus unrelated changes to user_guide)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5805 c92efa57-630b-4861-b058-cf58834340f0
2009-08-03 09:19:02 +00:00
giannozz 68603defdd More references to removed files
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5744 c92efa57-630b-4861-b058-cf58834340f0
2009-07-23 12:18:36 +00:00
giannozz 86186c5c7d Small change to the installation mechanism: the list of locations for
modules is provided by the Makefile in each subdirectory, rather than
by make.sys. No big advantage but neater solution than before


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5737 c92efa57-630b-4861-b058-cf58834340f0
2009-07-22 17:18:42 +00:00
giannozz a9ea33203d SOme compilers do not like the "X" format descriptor alone
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5526 c92efa57-630b-4861-b058-cf58834340f0
2009-04-21 09:56:12 +00:00
ccavazzoni d2ad7f7f23 - adding module wrappers.o
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5505 c92efa57-630b-4861-b058-cf58834340f0
2009-04-05 07:58:54 +00:00
smogunov dc01cf6f6a Added the check on the number of allowed CPUs (A. Smogunov)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5454 c92efa57-630b-4861-b058-cf58834340f0
2009-02-26 10:39:49 +00:00
smogunov b778840d15 Slightly modified (simplified) the format of the output (A. Smogunov)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5453 c92efa57-630b-4861-b058-cf58834340f0
2009-02-26 09:54:46 +00:00
smogunov 1241151ce9 Added the possibility to calculate and to plot left moving scattering states (A. Smogunov)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5449 c92efa57-630b-4861-b058-cf58834340f0
2009-02-25 17:38:33 +00:00
dalcorso fb6d1f0d62 Other routines with unused variables, and removed old unused routines.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5448 c92efa57-630b-4861-b058-cf58834340f0
2009-02-25 16:51:30 +00:00
dalcorso a2b5ab5e50 Minor partial cleanup. Many routines declared unused variables. Many others
could be cleaned.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5445 c92efa57-630b-4861-b058-cf58834340f0
2009-02-25 15:58:53 +00:00
giannozz 3386dfcdb9 Name conflict between module start_k and variable with the same name
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5433 c92efa57-630b-4861-b058-cf58834340f0
2009-02-19 09:14:51 +00:00
degironc d3ebcd964d additions to makefile files needed by the new DFT+DMFT part
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5398 c92efa57-630b-4861-b058-cf58834340f0
2009-02-12 08:09:57 +00:00
giannozz afea924d82 make.depend updated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5320 c92efa57-630b-4861-b058-cf58834340f0
2008-12-02 12:38:23 +00:00
sclauzer 753732be54 Added a simple restart mechanism for transmission calculations. The partial transmission for each scattering energy and k-point will be saved in a dedicated directory (by specifying tran_prefix), and a run can be then restated using the recover flag. Added also the possibility to stop a job smoothly using the max_seconds variable from the check_stop module.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5292 c92efa57-630b-4861-b058-cf58834340f0
2008-11-25 12:53:58 +00:00
sclauzer 75401bec87 Added the possibility to do transmission calculation for a subset of points in the energy grid (using the new input variables start_e and last_e) and for a subset of k-points (using start_k and last_k). This enables to split the whole calculation into smaller pieces, suitable for usage on the GRID. (Gabriele Sclauzero)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5275 c92efa57-630b-4861-b058-cf58834340f0
2008-11-10 10:12:55 +00:00
giannozz aa9228750b integer index should be defined before its usage (some compilers complain)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5269 c92efa57-630b-4861-b058-cf58834340f0
2008-11-04 22:19:10 +00:00
giannozz 3446c2f5e3 #ifdef __SCALAPACK moved around so that serial compilation works.
make.depend's updated


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5244 c92efa57-630b-4861-b058-cf58834340f0
2008-10-27 08:33:19 +00:00
smogunov 238c8882c4 Added the possibility to calculate and plot the scattering states (A. Smogunov).
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5235 c92efa57-630b-4861-b058-cf58834340f0
2008-10-23 13:47:43 +00:00
smogunov 6defd54dcf A bug with some array bounds fixed (A. Smogunov)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5210 c92efa57-630b-4861-b058-cf58834340f0
2008-09-24 11:30:13 +00:00
giannozz 34b5009948 Better workaround for clean_pw
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5205 c92efa57-630b-4861-b058-cf58834340f0
2008-09-19 09:53:11 +00:00
giannozz f946339d97 Some undesired changes slipped into yesterday's commit.
Workaround for crash in pwcond after recenbt changes to phonon symmetry:
a more definitive solution is needed for clean_pw, though


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5204 c92efa57-630b-4861-b058-cf58834340f0
2008-09-19 08:46:31 +00:00
cavazzon bb65b5df9b - missing Modules object files
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5192 c92efa57-630b-4861-b058-cf58834340f0
2008-09-12 16:58:08 +00:00
giannozz be76efc343 More cleanup (?): modules "uspp" and "symme" extracted from "pwcom"
everywhere. I didn't like the previous half-baked state.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5128 c92efa57-630b-4861-b058-cf58834340f0
2008-08-23 17:55:06 +00:00
smogunov ddce89a72f Automatically generated 2D k points are converted to crystallographic
coordinates and a small bug in the generation of 2D G vectors fixed
(A. Smogunov).


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5018 c92efa57-630b-4861-b058-cf58834340f0
2008-06-25 13:16:10 +00:00
smogunov 5a5f6ec1a9 Corrected and slightly modified output of complex k vectors (A. Smogunov).
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5017 c92efa57-630b-4861-b058-cf58834340f0
2008-06-25 12:50:10 +00:00
giannozz eac102ea22 Updated Makefiles. a) a target name should not coincide with a directory
name (remember tha some machines like Mac OSX have case-insensitive file
systems! ee == EE) b) some linkers require an explicit presence of all
modules in the list of files to be linked


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5001 c92efa57-630b-4861-b058-cf58834340f0
2008-06-18 15:08:53 +00:00
smogunov 42858405fe Missing broadcast of the variable nkpts (A. Smogunov)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4978 c92efa57-630b-4861-b058-cf58834340f0
2008-06-12 14:52:41 +00:00
paulatto e607e3c176 g95 does not like when you use .ne. to compare logical variables: .neqv. or
.xor. have to be used instead.

LP


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4955 c92efa57-630b-4861-b058-cf58834340f0
2008-05-29 12:27:39 +00:00
dalcorso da30151710 Bug fix: problem with orthorombic cells. (Contributed by Zhiping)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4938 c92efa57-630b-4861-b058-cf58834340f0
2008-05-16 07:14:54 +00:00
dalcorso 7dc01928de Introduced a check to avoid mixing calculations with and without spin-orbit.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4930 c92efa57-630b-4861-b058-cf58834340f0
2008-05-15 13:03:25 +00:00
dalcorso 9476f6098d Small bug fix: uninitialized printing variable.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4852 c92efa57-630b-4861-b058-cf58834340f0
2008-04-30 07:26:23 +00:00
giannozz c85f1c444e Minor changes tothe qexml file format, by AF: in particular, added the
flag reporting whether only half G-vector sphere is present (not
actually used in q-e but it may be useful for other codes). make.depend
updated


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4819 c92efa57-630b-4861-b058-cf58834340f0
2008-04-18 12:29:55 +00:00
cavazzon c3fe9dd438 - reduce substituted by mp_sum
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4793 c92efa57-630b-4861-b058-cf58834340f0
2008-04-12 16:12:49 +00:00
paulatto ba4e005094 This is a quite complex check-in, but actually not very much is done. Changelog follows.
LP

UPF file format updated completely, UPFv2 introduced:
* ld1.x can still produce old format, with the switch upf_v1_format=.true. in inputp
  this is disabled by default, but we can discuss if it should be the opposite.
* pw.x cp.x and all utilities should notice no difference
* some utilities in upftools still need to be updated, anyway conversion UPFv1 to UPFv2
  is very easy, so this should be no big issue
* starting from now to produce an UPF file you need to fill the pseudo_upf derivedd type
  and feed it to write_upf woutine in upf_module (Modules/upf.f90)
* extensive use of iotk

I have tried to make the new format as self contained as possible, e.g. there should be
minimal need for post-processing after the data is read, no more reconstruction of known
quantities, and no more odd syntax to save negligible quantity of space. Also the human
readable section is a bit richer, all the rest is more machine readable.

I hope this will not cause any throuble, and tried really hard to, all examples and all
tests works as fine as before and gives (what really looks like) the same results.

Other changes that I needed to make:
* radial grids are now allocatable, they management is a bit less of a hack too
* paw and uspp augmentation are stored in the same place
* paw print total all-electron energy if all atoms are paw, not very useful, but nice
* most of the pseudopotential-writing reading files have been renamed to  some more
  logical name, I spare you the list. E.g. read_oldpseudo -> read_pseudo_rrkj3
* paw_t derived type was only used in atomic, so I have put it there (as the pseudo_type
  module take ages to recompile it was awkward to leave it there).

PAW tests inserted in test/ there are 6 of them, as a consequence I have also put 5 paw
pseudopotentials in the pseudo/ directory.

I will update the PAW scf examples soon, by deleting them (as running a pw with a PAW
pseudopotential requires no option at all). PAW generation examples should be updated.

A lot of small bugfixes here & there mostly uninitialized variables or unallocated
pointers used as subrotuine arguments.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4769 c92efa57-630b-4861-b058-cf58834340f0
2008-04-03 15:50:43 +00:00
paulatto b7d046d01b Two missing objects prevented compilation of pwcond. There are more of these!
LP


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4652 c92efa57-630b-4861-b058-cf58834340f0
2008-01-24 10:38:10 +00:00
cavazzon 636712cef9 - scatter/gather like subroutines that act on fft grids,
moved from PW/para.f90 to Modules/fft_base.f90


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4614 c92efa57-630b-4861-b058-cf58834340f0
2008-01-08 09:19:31 +00:00
giannozz 231f4e72cc "error" moved from flib/ to Modules/, as suggested by Axel, into
Modules/error_handler.f90 . Not really an elegant solution, since
the module in error_handler is never used and subroutine "errore"
is not in the module, but better than it used to be. All makefiles
and make.depend updated (fixes yesterday's linking error as well).
Minor changes here and there as well.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4591 c92efa57-630b-4861-b058-cf58834340f0
2008-01-03 09:02:32 +00:00
cavazzon 2aa6533d13 - again fft_parallel Module
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4582 c92efa57-630b-4861-b058-cf58834340f0
2007-12-31 11:08:09 +00:00
dalcorso 27c2b94f1b Bug fix: PWCOND with PAW was not working any more.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4575 c92efa57-630b-4861-b058-cf58834340f0
2007-12-31 08:57:28 +00:00
degironc 0141bb6d0c update of several PAW routines.
global auxiliary variable saved%v removed and replace by a smaller local array.
ddd_PAW has now the same indexing structure as becsum.

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


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4517 c92efa57-630b-4861-b058-cf58834340f0
2007-12-11 22:46:03 +00:00
dalcorso 152827096e Pwcond does not work with pools. Added a check to stop this case.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4497 c92efa57-630b-4861-b058-cf58834340f0
2007-12-04 14:00:08 +00:00
giannozz 165498def4 Variable 'time_reversal' added. It contains information that was already
present but somewhat hidden. I hope that everything works as before
(matdyn doesn't work with spin-orbit or noncolinear case, but I think
it didn't already) but it is a good idea to check. The choice of a single
q-point in phonon via iq1,iq2,iq3 is presently disabled.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4484 c92efa57-630b-4861-b058-cf58834340f0
2007-11-29 15:39:29 +00:00
paulatto 2239472597 Fixes: ld1 test of upf types was not working anymore (same as reason as CP).
Mods: removed read_paw module and .PAW temporary format support. Makefiles and
make.depend updated accordingly.
Fixes in ld1: test of upf types was not working anymore (same as reason as CP),
added deallocation of pawsetup. As testing of PAW without generation may not
work yet I have put a big error for it.
Other: simpson_cp90 was pretending to be simpson in error messages


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4461 c92efa57-630b-4861-b058-cf58834340f0
2007-11-21 10:39:48 +00:00
dalcorso 101a627c19 Added the possibility to use paw pseudopotentials in PWCOND.
(Still experimental).


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4451 c92efa57-630b-4861-b058-cf58834340f0
2007-11-20 09:12:02 +00:00
degironc ae8be06438 also the scf potential is defined using the scf_type.
then call to v_of_r has been simplified


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4442 c92efa57-630b-4861-b058-cf58834340f0
2007-11-18 20:25:11 +00:00
cavazzon bf74ac09d1 - new file mp_base.f90 containing mpi wrapper for block communications,
like in it was in reduce sub of PW. This is to avoid large temporary
  array allocations in module mp.f90 (mp.f90 calls subs in mp_base.f90).
  On the other hands mp.f90 provide the general interfaces for different
  kind of data and data size checking.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4441 c92efa57-630b-4861-b058-cf58834340f0
2007-11-17 14:32:10 +00:00
paulatto dce5f820da Paw code moved around and unused functions removed; old grid_paw code removed.
This is the first step of code cleanup. Actually nothing should change.

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

Probably there are a few random fixes around.

Next step: remove ndmx and ntpx.

LP


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4422 c92efa57-630b-4861-b058-cf58834340f0
2007-11-12 14:49:09 +00:00
degironc 93c72b5f3b make.depend again and a corrected scf_mod.f90
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4381 c92efa57-630b-4861-b058-cf58834340f0
2007-10-31 23:02:23 +00:00
degironc d5387129e5 module scf has been separated from PW/pwcom.f90 (put in PW/scf_mod.f90) in
order to reorganize the variables needed for mixing and scf cycle.
More changes will follow....


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4379 c92efa57-630b-4861-b058-cf58834340f0
2007-10-31 14:28:18 +00:00
paulatto d858b4a51b New PAW version, now completely working on radial grid. Code on FFT grid can still be compiled using __GRID_PAW flag (but may not work a
nymore). Other things working: parallel, gamma-only.

Files vxc_t, exc_t and vxcgc moved from atomic to Modules (to prevent cyclic dependencies).

Other random fixes: a kind in init_vloc, a call to infomsg in ./PH/add_for_charges.f90.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4358 c92efa57-630b-4861-b058-cf58834340f0
2007-10-22 14:54:29 +00:00
giannozz c138cf41e2 Parameter nbrx (max number of beta functions) removed. Exceptions:
- PAW (still used here and there)
- PWCOND (used in the definition of betar* functions)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4343 c92efa57-630b-4861-b058-cf58834340f0
2007-10-15 16:37:00 +00:00
giannozz 322e4078f4 Two fixes for PWCOND: pseudopotentials are dimensioned up to the actual
number "ntyp" of species, not up to the maximum "npsx"; pseudopotentials
should be deallocated if already allocated when read, or otherwise the
pwcond code will stop complaining that "array is already allocated" (not
all compilers complain, though).


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4322 c92efa57-630b-4861-b058-cf58834340f0
2007-10-07 17:34:26 +00:00
dalcorso d530648029 Fixed the compilation problem of pwcond.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4318 c92efa57-630b-4861-b058-cf58834340f0
2007-10-06 14:58:37 +00:00
giannozz e0378cf043 Various compilation problems after last changes fixed.
There is one left in PWCOND, related to arrays betar*
Misc small changes here and there


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4317 c92efa57-630b-4861-b058-cf58834340f0
2007-10-06 13:50:02 +00:00
paulatto 08fedbe2f0 SCF with Projector-Augmented Wave Pseudopotential (PAW) routines added.
This means that a lot of routines have been modified and a few files have
been added. During the year several people have contributed to this code,
mainly Guido Fratesi, Ricardo Mazzarello, Stefano de Gironcoli, Andrea Dal
Corso and me (Lorenzo Paulatto).

A brief report of modified or added files follows, further down you will
find a loger report of modifications that was necessary to merge develop_PAW
branch with the current CVS version.

Current version is not 100% functional, but it doesn't brake anything else and
can be used to generate and test PAW pseudopotential.

      *************************************
      *** Brief report of modifications ***
      *************************************
Modified files:
PW/clean_pw.f90
PW/electrons.f90
PW/print_clock_pw.f90
PW/hinit0.f90
PW/potinit.f90
PW/newd.f90
PW/summary.f90
PW/setup.f90
PW/read_pseudo.f90
PW/init_us_1.f90
PW/init_run.f90
PW/mix_rho.f90
atomic/atomic_paw.f90
atomic/write_paw_recon.f90
atomic/ld1_writeout.f90
atomic/write_resultsps.f90
atomic/ld1inc.f90
atomic/ld1_readin.f90
atomic/gener_pseudo.f90
atomic/parameters.f900
atomic/run_pseudo.f900
atomic/set_rho_core.f90
atomic/pseudovloc.f90
Modules/read_upf.f90
Modules/uspp.f90
Modules/pseudo_types.f90
Modules/parameters.f90

Added files:
PW/grid_paw_routines.f90
PW/rad_paw_routines.f90
Modules/grid_paw_variables.f90
Modules/read_paw.f90

Added files that will be removed:
PW/rad_paw_trash.f90
PW/paw_xc.f90

Examples:
examples/PAWexample contains a full test of PAW pseudopotential
for Oxygen. The test consist in these tasks:
 - 2 norm conserving, 2 US and 4 PAW pseudopotentials are
   generated and tested in ld1
 - pw test for an isolated O atom at different cutoffs
 - pw test for an O2 molecule at different O-O distance
please read examples/PAWexample/README for (a few) details.

NOTES:
1. new modifications to atomic_paw (and related) from ADC have been rolled
   back, as they were breaking a lot of things, I will reintroduce them
   later when I am sure that everything works properly.
2. the files PW/paw_xc.f90 and Modules/rad_paw_trash.f90 will be removed in
   the next few weeks.

TODO:
1. use new ld1 XC code as much as possible, and remove legacy XC routines
   from rad_paw_routines
2. full self-consistency with radial energies
3. make new Harris-Foulkes estimate paw-aware
4. provide some kind error estimate
5. FORCES and stress!! (require symmetrization of becsums)
6. cleanup

    ************************
    *** merge of PW code ***
    ************************
Versions notation:
OLD=version from 2 years ago used as reference to generate the patches
NEW=CURRENT=current trunk version
PAW=current develop_PAW version

Note: pseudo-potential input and allocation routines changed
      a lot in the last years, this is a diagram:
OLD:PW/readin ~~> PAW:PW/read_pseudo --> disappears
pops out --> PAW:PW/readin ~~> NEW:PW/read_pseudo

added files:
Modules/read_paw.f90    (contains module read_paw_module with subroutines
                         paw_io nullify_pseudo_paw, allocate_pseudo_paw and
                         deallocate_pseudo_paw previously in removed file
                         Modules/readpseudo.f90. Also contains module
                         paw_to_internal with subroutine set_pseudo_paw,
                         previously in upf_to_internal.f90)
PW/paw_xc.f90           (contains OLD=PAW xc and gcxc routines as adapting paw
                         grid code to use new routines was very error prone and
                         quite worthless, as it has to be removed anyway)

Conflicts reported by CVS during merge:
DONE */Makefiles                    (all replaced with new, redone by hand)

DONE  flib/functionals.f90          (nothing to do)

DONE Modules/functionals.f90        (RNV == replaced with NEW version)
DONE Modules/atom.f90               (trivial: duped rgrid)
DONE Modules/autopilot.f90          (trivial)
DONE Modules/bfgs_module.f90        (RNV)
DONE Modules/cell_base.f90          (RNV)
DONE Modules/check_stop.f90         (RNV)
DONE Modules/constants.f90          (RNV)
DONE Modules/constraints_module.f90 (RNV)
DONE Modules/energies.f90           (RNV)
DONE Modules/input_parameters.f90   (RNV)
DONE Modules/ions_base.f90          (RNV, has 3 new subs)
DONE Modules/ions_nose.f90          (RNV)
DONE Modules/parameters.f90         (actually RNV)
DONE Modules/path_base.f90          (RNV)
DONE Modules/path_opt_routines.f90  (RNV)
DONE Modules/path_reparametrisation.f90 (RNV)
DONE Modules/path_variables.f90     (RNV)
DONE Modules/pseudo_types.f90       (cleaned double def of paw_t)
DONE Modules/read_cards.f90         (RNV)
DONE Modules/read_namelists.f90     (checked and RNV)
DONE Modules/uspp.f90               (trivial)
DONE Modules/xml_io_base.f90        (RNV)

DONE PW/read_pseudo.f90             (merged by hand with PAW PW/readin)

DONE PW/bp_calc_btq.f90             (trivial)
DONE PW/c_bands.f90                 (actually RNV)
DONE PW/ccgdiagg.f90                (RNV)
DONE PW/cegterg.f90                 (RNV)
DONE PW/cft3s.f90                   (RNV)
DONE PW/cinitcgg.f90                (RNV)
DONE PW/c_phase_field.f90           (RNV)
DONE PW/divide_et_impera.f90        (nothing to do?)
DONE PW/exx.f90                     (RNV)
DONE PW/hinit0.f90                  (easy)
DONE PW/h_psi.f90                   (RNV)
DONE PW/init_run.f90                (easy)
DONE PW/kpoint_grid.f90             (nothing to do?)
DONE PW/newd.f90                    (required mod in newd_paw_grid, CHECK!!)
DONE PW/openfil.f90                 (actually RNV)
DONE PW/paw.f90                     (actually RNV)
DONE PW/punch.f90                   (RNV)
DONE PW/pwscf.f90                   (quite RNV)
DONE PW/set_kup_and_kdw.f90         (RNV)
DONE PW/setup.f90                   (RNV + 2 line merged by hand)
DONE PW/sgama.f9                    (actually RNV)
DONE PW/sgam_at_mag.f90             (actually RNV)
DONE PW/stop_run.f90                (actually RNV)
DONE PW/stres_gradcorr.f90          (actually RNV)
DONE PW/symrho_mag.f90              (nothing to do)
DONE PW/v_of_rho.f90                (RNV)

DONE PW/compute_fes_grads.f90       (RNV)
DONE PW/gradcorr.f90                (RNV)
DONE PW/input.f90                   (RNV)
DONE PW/pw_restart.f90              (RNV)
DONE PW/read_ncpp.f90               (actually RNV)
DONE PW/summary.f90                 (RNV + inserted new PP type)
DONE PW/wfcinit.f90                 (RNV)

the hard ones:
DONE PW/electrons.f90   (adapted code to new syntaxes, a lot of cleanup, removed
                         some PAW junk that can be readded later, removed parts
                         that were applyed twice, or had been removed in trunk,
                         the rhog allocations and usage may need fixes)
DONE PW/mix_rho.f90     (merged tauk and paw additions, a bit of cleanup and smarter
                         variables names)
DONE PW/init_us_1.f90   (qtot redefined with "triangular" index nb,mb-->ijv)

modified for compiling:
Modules/io_files.f90    (depatched)
PW/pwcom.f90            (depatched)
Modules/parameters.f90  (temporary readded cp_lmax = lmaxx+1)
PW/newd.f90             (merge was wrong, redone mostly by hand)
PW/read_ncpp.f90        (depatched)
PW/read_pseudo          (small fixes)
PW/sgam_at_mag.f90      (depatched)
PW/sgama.f90            (depatched)
PW/stres_gradcorr.f90   (depatched)

modified for running:
PW/clean_pw.f90         (added call to deallocate_paw_internals)

Modifications to PAW routines:
1. compute_onecenter_charges and compute_onecenter_charges modified to
   comply with new structure of v_xc (in v_of_rho.f90), requiring new
   g-space densities to be saved and computed --> using old xc routines
   as this code will be removed.
2. qrad size has changed, prad and ptrad had to be changed accordingly.
3. several minor modifications to use new radial grid structure.
4. infomsg arguments changed, very funny bug followed.
5. added new routine deallocate_paw_internals, called by PW/clean_pw.f90
   required to run pp.x with more than one q-point(and good programming
   practice)


    *************************
    *** merge of LD1 code ***
    *************************
2nd try: atomic code replaced with current version, then merge by hand
the files that are used by paw subsystem:
* atomic_paw.f90        (replaced with most recent version from develop_PAW
                         routine us2paw and paw2us taken from newer trunk
                         version, a lot of minor changes.)
* gener_pseudo.f90      (fixes)
* ld1inc.f90            (PAW variables added)
* ld1_readin.f90        (PAW variables added, I am not sure if lpaw should go
                         in input or inputp namelist)
* ld1_writeout.f90      (it was only necessary to add a few lines)
* pseudovloc.f90        (nothing to do)
* run_pseudo.f90        (almost nothing to do)
* set_rho_core.f90      (readded a few lines for lnc2paw)
* write_paw_recon.f90   (nothing to do)
* write_resultsps.f90   (nothing to do: trunk version is more
                         PAW-aware than PAW version)

Main problems were found in subroutines run_pseudo and gen_pseudo,
a little code had to be rewritten to comply with new variable names
and fix with merge.

TODO: fix atomic_paw routines to use minimal allocated arrays insetad
of ndmx sized ones; try to use the pawet as much as possible. Remove
test lines and other garbage. Find a fix for PAW2.

The first week of september Andrea Dal Corso uploaded a few modifications to
the atomic_paw routines. I had to rollback them as the structure of atomic_paw
has changed a lot and reimplementing them is probably easier and definitely
safer than fixing everything. I will do it soon, I swear!

LP


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4257 c92efa57-630b-4861-b058-cf58834340f0
2007-09-18 10:05:46 +00:00
degironc 6da8252f73 a radial_grid_type is introduced in Modules and used in atomic-related part
many changes but results are identical before and after.
sdg


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4127 c92efa57-630b-4861-b058-cf58834340f0
2007-08-12 00:08:53 +00:00
cavazzon e3961f11e8 - Makefile again
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4112 c92efa57-630b-4861-b058-cf58834340f0
2007-08-09 21:26:12 +00:00
dalcorso 23a8a73ac3 The variables needed to constrain the magnetization written in the punch
file. The ph.x, pwcond.x, pp.x and bands.x codes now stop if pw.x has
been run with constrained magnetization.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4083 c92efa57-630b-4861-b058-cf58834340f0
2007-07-28 16:40:41 +00:00