Commit Graph

3397 Commits

Author SHA1 Message Date
dalcorso 77dbbceb7c Several arrays with zero dimension are not allocated in the free electrons
case.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3458 c92efa57-630b-4861-b058-cf58834340f0
2006-10-16 15:25:42 +00:00
giannozz cc951caba5 Small changes by Andrea Ferretti: cleanup of unused variable in epsilon.f90,
fixed a bug (uninitialized array) in pw_export.f90, some additions to the
output format (header with version number, fractionary tranmsations)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3457 c92efa57-630b-4861-b058-cf58834340f0
2006-10-16 14:57:31 +00:00
giannozz 8f7963f462 Minor output changes - this should be the final format of the next version
so please complain now or stay silent forever (and update your scripts).


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3456 c92efa57-630b-4861-b058-cf58834340f0
2006-10-16 14:07:46 +00:00
dalcorso 048b0c5a3d Recent changes to pwcond did not work with free electrons.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3455 c92efa57-630b-4861-b058-cf58834340f0
2006-10-16 08:33:25 +00:00
degironc 50bfcaaadb Fix for the Hubbard contribution to the stress tensor.
SdG


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3454 c92efa57-630b-4861-b058-cf58834340f0
2006-10-16 07:35:41 +00:00
degironc c4aad60813 correction of an indexing error that affected the off-diagonal part of the Hubbard stress in a LDA+U calculation.
sdg


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3453 c92efa57-630b-4861-b058-cf58834340f0
2006-10-12 14:34:09 +00:00
giannozz 6232da2eaf getenv replaced by wrapper get_env, preprocessed only in a single file
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3452 c92efa57-630b-4861-b058-cf58834340f0
2006-10-11 14:42:42 +00:00
degironc 29daefc685 clean-up
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3451 c92efa57-630b-4861-b058-cf58834340f0
2006-10-11 12:56:58 +00:00
smogunov eab3607dee scatter_back.f90 is not needed anymore (A. Smogunov)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3450 c92efa57-630b-4861-b058-cf58834340f0
2006-10-11 09:53:13 +00:00
smogunov aad16258e6 Some optimization (A. Smogunov)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3449 c92efa57-630b-4861-b058-cf58834340f0
2006-10-11 09:31:53 +00:00
dalcorso a806c4703e Free electrons in pwcond. Small change.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3448 c92efa57-630b-4861-b058-cf58834340f0
2006-10-10 14:59:35 +00:00
dalcorso 79c2be9a76 Small change.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3447 c92efa57-630b-4861-b058-cf58834340f0
2006-10-10 14:47:35 +00:00
dalcorso 9e7f5571d9 Other small changes to deal with the free electrons case.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3446 c92efa57-630b-4861-b058-cf58834340f0
2006-10-10 09:44:53 +00:00
giannozz 44c8bc4b7f Autopilot patch from Yonas Abraham
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3445 c92efa57-630b-4861-b058-cf58834340f0
2006-10-09 17:07:23 +00:00
giannozz f905843c79 reverted to previous version: putting all modules into a library
and loading the library doesn't seem to work


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3444 c92efa57-630b-4861-b058-cf58834340f0
2006-10-09 16:45:50 +00:00
giannozz cebb1d8db0 There was a complex scalar that was passed instead of a real argument
probably harmless - There was some confusion with the definitions of
ZERO, ONE, RZERO, RONE, CZERO, CONE. Now: ZERO AND ONE are complex,
RZERO and RONE are real, CZERO and CONE are no more. Please check!


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3443 c92efa57-630b-4861-b058-cf58834340f0
2006-10-09 16:30:28 +00:00
giannozz 0263240f32 More fun with "configure": some cleanup + fixes for bugs introduced
with the latest changes


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3442 c92efa57-630b-4861-b058-cf58834340f0
2006-10-09 16:21:45 +00:00
giannozz b1a6e79fa0 Excess parenthesis removed
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3441 c92efa57-630b-4861-b058-cf58834340f0
2006-10-06 23:52:55 +00:00
giannozz 27c4f86482 Do not ignore (but do not check either) the values of BLAS_LIBS and
LAPACK_LIBS if set


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3440 c92efa57-630b-4861-b058-cf58834340f0
2006-10-06 20:58:03 +00:00
cavazzon 08c786d8a2 - cleanup, module cell_module substituted by cell_base + interfaces
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3439 c92efa57-630b-4861-b058-cf58834340f0
2006-10-06 17:21:32 +00:00
sbraccia 718bd8ec96 Debug printout removed. C.S.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3438 c92efa57-630b-4861-b058-cf58834340f0
2006-10-06 15:23:08 +00:00
sbraccia bc90fc7750 Further clean up of realus module. qsave array is now stored as a 1-dim array to
reduce the memory usage to the very minimum. Implemented a more efficient scheme
to find all the points in each small box. The charge is rescaled to the correct
number of electrons unless the relative error is larger that 0.01% (in this case
an error message is issued suggesting to increase ecutrho). Added a sort of
Fourier filter to remove the features in the chrage density that are not
compatible with the chosen cut-off (this is used only with the small booxes).
Addded an aternative estimate of the total energy based on the
Harris-Weinert-Foulkes functional. The difference between the Kohn-Sham energy
and the HWF one provides an alternative estimate for the level of
self-consistency.
Added a few more clocks to monitor the efficiency of the small-boxes and the
time spent to calculate the Hatree potential and the Exchange-Correlation
potential (the latter can be pretty high).
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3437 c92efa57-630b-4861-b058-cf58834340f0
2006-10-06 14:08:36 +00:00
giannozz 0874b4a10c More minor installation cleanup
lapack_mkl.f does not seem to be needed any longer starting from mkl v6 or so
Since earlier versions are not supported by configure anyway I removed it


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3436 c92efa57-630b-4861-b058-cf58834340f0
2006-10-05 21:11:19 +00:00
giannozz af76cd8021 More installation cleanup / messup :
blas and lapack libraries are specified solely in BLAS_LIB and LAPACK_LIB,
no more in MYLIB. A Lapack library is always compiled but used only if
needed. Problem with conflicting essl/lapack on cineca sp5 solved (i hope)
Re-run configure before complaining that nothing works !


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3435 c92efa57-630b-4861-b058-cf58834340f0
2006-10-05 18:00:50 +00:00
giannozz bd24b32d6f Installation cleanup (maybe) : the blas libraries are always compiled,
loaded only when nothing else is found using BLAS_LIBS


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3434 c92efa57-630b-4861-b058-cf58834340f0
2006-10-05 01:19:44 +00:00
giannozz 2caa042612 PGI doesn't like "END INTERFACE some_interface" and apparently the
standard is "END INTERFACE", period


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3433 c92efa57-630b-4861-b058-cf58834340f0
2006-10-04 14:56:35 +00:00
giannozz 16631dd274 Bug in clinear fixed (courtesy of Yingli Niu)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3432 c92efa57-630b-4861-b058-cf58834340f0
2006-10-04 14:08:11 +00:00
degironc 5835a2c225 ibrav=13 (one face centered monoclinic) vectors changed again.
The rectangular base (a,b) is centered while the monoclinic angle<>90 is
  between b and c. Problem pointed out by Young-Su Lee @ mit .

  SdG


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3430 c92efa57-630b-4861-b058-cf58834340f0
2006-10-04 11:29:53 +00:00
giannozz c29cecb4fe Unused variables removed
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3429 c92efa57-630b-4861-b058-cf58834340f0
2006-10-03 23:47:00 +00:00
giannozz 61652e343c Objects in PW, PH, CPV are stored into libraries (libpw.a, libph.a,
libcp.a respectively), used to load the executables. This removes
the need to specify all needed objects in many different makefiles.
Works with 95, ifort, xlf. Please let me know if there are problems
with more exotic or lousy compilers.

A few minor things fixed as well.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3428 c92efa57-630b-4861-b058-cf58834340f0
2006-10-03 19:26:15 +00:00
giannozz cc73a76a46 - misspell in configure
- symmetrize_at needed for compilation of PP
- more preprocessing cleanup


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3427 c92efa57-630b-4861-b058-cf58834340f0
2006-10-03 14:29:27 +00:00
degironc 71880a9ab5 bug coorected in the newly introduced subroutine symmetrize_at.f90
SdG


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3426 c92efa57-630b-4861-b058-cf58834340f0
2006-10-02 11:07:45 +00:00
degironc c11b1c6adc When checkallsym finds that the symmetry is lower than the original one
the code symmetrizes the atomic (and iif needed the cell) configuration
before stopping, so as to allow to restart from a symmetric configuration
if desired.
SdG


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3425 c92efa57-630b-4861-b058-cf58834340f0
2006-10-02 09:37:35 +00:00
cavazzon 1148ec8480 - small fix for xcrysden format
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3424 c92efa57-630b-4861-b058-cf58834340f0
2006-09-29 15:26:20 +00:00
giannozz aab0e4a65b More preprocessing and installation cleanup (or maybe messup)
The include file for C routines is generated by configure,
in a way that should be very general and robust.  Beware:
you need to re-run configure to regenerate include/c_defs.h


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3423 c92efa57-630b-4861-b058-cf58834340f0
2006-09-29 15:25:53 +00:00
giannozz 4b02c49e54 There still some confusion about the meaning of the various energy terms.
I added some comments here and there and slightly modified the output,
removing the 'band sum' which seems to me of no interest to anybody,
leaving the various contributions whose sum adds up to the total energy.
The nfamous 'correction for metal' is labeled as ' "-TS" contribution ',
so making clear that there can be a relation with the free energy


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3422 c92efa57-630b-4861-b058-cf58834340f0
2006-09-29 13:35:55 +00:00
giannozz 34354a154e Cleanup; qvan2 should be slightly faster
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3421 c92efa57-630b-4861-b058-cf58834340f0
2006-09-27 23:51:54 +00:00
giannozz b1292fee43 Exact comparisons of real numbers: if (a == b) then ... are dangerous
even when a and b should be EXACTLY equal. Some compilers manage to
make them slightly differnt anyway. Courtesy of E.A. Menendez.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3420 c92efa57-630b-4861-b058-cf58834340f0
2006-09-27 18:13:37 +00:00
giannozz 11548ed15b Fix for PGI compiler bug was buggy as well! Courtesy of Paolo Cazzato
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3419 c92efa57-630b-4861-b058-cf58834340f0
2006-09-25 15:00:54 +00:00
giannozz 0bb659974f all other makefiles use MPIF90, not F90
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3418 c92efa57-630b-4861-b058-cf58834340f0
2006-09-24 19:52:44 +00:00
giannozz 1c2a940e58 oops, lost two functions...documentation updated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3417 c92efa57-630b-4861-b058-cf58834340f0
2006-09-22 15:49:32 +00:00
giannozz 18f702a8c1 Mangling of C routines to be called by fortran is done by the "standard"
F77_FUNC and F77_FUNC_ preprocessor macro . It is easy now to select the
good functions with "configure" (it is still done with -D flags though)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3416 c92efa57-630b-4861-b058-cf58834340f0
2006-09-22 14:59:25 +00:00
sbraccia 563af7b167 In an IF with multiple conditions one should never assume that the conditions
are tested from left to right (different compilers do different things). C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3415 c92efa57-630b-4861-b058-cf58834340f0
2006-09-22 14:49:32 +00:00
ceresoli fc69c968ad make.depend in NMR_new (by D. Ceresoli)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3414 c92efa57-630b-4861-b058-cf58834340f0
2006-09-22 13:38:25 +00:00
giannozz 2bbb557fd4 Bug in the --disable-parallel option of configure fixed.
It had gone unnoticed for a long time, but the recent changes
made its presence noticeable via a rather obscure failure.
C_POINTER is defined integer*N instead of integer(kind=N).
The former definition is obsolescent but always valid, while the latter
may fail for compilers (ex. NAG) not using the length in bytes as kind


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3413 c92efa57-630b-4861-b058-cf58834340f0
2006-09-22 12:49:52 +00:00
giannozz 7d8cbc267d oops, I forgot this
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3412 c92efa57-630b-4861-b058-cf58834340f0
2006-09-21 20:12:02 +00:00
giannozz 2f0d3e7008 More minor tweaking: obsolete or useless variables removed,
call to oslevel on aix commented (shouldn't be useful anyway)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3411 c92efa57-630b-4861-b058-cf58834340f0
2006-09-21 20:07:55 +00:00
giannozz 572c0d914c flush => flush_unit, as everywhere else
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3410 c92efa57-630b-4861-b058-cf58834340f0
2006-09-21 20:04:37 +00:00
giannozz 43e4e5d38d There is no reason to generate dependencies every time. Files
make.depend are now in the CVS and shouldn't be updated unless
needed. Configure no longer runs makedeps.sh. Type 'make depend'
to regenerate dependencies.

Remove all */make.depend files before updating!


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3409 c92efa57-630b-4861-b058-cf58834340f0
2006-09-21 17:49:53 +00:00
giannozz 1beef54c1c The check for dependencies must be done after fft_defs.h is written
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3408 c92efa57-630b-4861-b058-cf58834340f0
2006-09-21 15:35:25 +00:00