Commit Graph

370 Commits

Author SHA1 Message Date
cavazzon bb4db10003 - FPMD prepared for NEB
- variables in module pwcom/varie moved to Modules/control_flags
- module PW/format moved to Modules/format
- in module PW/supercell added workaround for AUTOMATIC variable and
  AIX compilers
- PH Makefile added rbecmod.o


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@468 c92efa57-630b-4861-b058-cf58834340f0
2004-01-07 22:54:02 +00:00
giannozz 3eae140f76 More uninitialized variables have been initialized
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@467 c92efa57-630b-4861-b058-cf58834340f0
2004-01-06 16:53:55 +00:00
giannozz 5a8c4a05dc Tabs removed (again)
NEB/ removed from makedeps.sh
plotrho: added possibility to have contour lines of various type
A few undefined variables defined (again)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@465 c92efa57-630b-4861-b058-cf58834340f0
2004-01-05 18:11:01 +00:00
sbraccia 3a4d6e8d5c Minor bugs in BFGS structural relaxation fixed.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@462 c92efa57-630b-4861-b058-cf58834340f0
2003-12-18 13:39:53 +00:00
sbraccia 44ea99cbea Cleanup of this module.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@461 c92efa57-630b-4861-b058-cf58834340f0
2003-12-17 17:15:34 +00:00
giannozz 7c4f3cf840 Documentation updated to reflect merge of Gamma and k-point versions
variable filpun removed everywhere


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@454 c92efa57-630b-4861-b058-cf58834340f0
2003-12-11 11:10:03 +00:00
sbraccia 2f4d7baded PW, Gamma and NEB are now unified.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@449 c92efa57-630b-4861-b058-cf58834340f0
2003-12-10 14:57:07 +00:00
sbraccia 506600d510 Yet another bug in CI_scheme = 'manual' (neb code).
Cleanup.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@446 c92efa57-630b-4861-b058-cf58834340f0
2003-12-09 08:16:59 +00:00
sbraccia 9bde3085bb Several bugs fixed in neb (CI_scheme = 'manual') and in the way c_mkdir was called.
Cleanup of bfgs_module.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@445 c92efa57-630b-4861-b058-cf58834340f0
2003-12-06 10:32:04 +00:00
sbraccia f2b5db377d Cleanup. Source code documentation improved.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@444 c92efa57-630b-4861-b058-cf58834340f0
2003-12-04 13:39:48 +00:00
sbraccia e219eeea88 General cleanup of pwneb code. Some unused features removed.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@441 c92efa57-630b-4861-b058-cf58834340f0
2003-12-03 10:29:12 +00:00
ballabio ff247c327d Cleanup [Gerardo]
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@439 c92efa57-630b-4861-b058-cf58834340f0
2003-12-02 15:47:00 +00:00
giannozz fd6348978e spin-polarized calculations: at least one value for
starting_magnetization must be explicitly set in input
(fixed previously introduced bug).


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@438 c92efa57-630b-4861-b058-cf58834340f0
2003-12-02 14:28:22 +00:00
sbraccia c40b0f7092 Fixed a problem that prevents from compiling on sp4.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@437 c92efa57-630b-4861-b058-cf58834340f0
2003-12-02 14:22:16 +00:00
sbraccia b5528ff616 Several bugs in the new BFGS implementation have been fixed.
A linear scaling BFGS minimization algorithm has been implemented too.
The two test cases of example3 are optimized with a performance comparable to
the old BFGS, but in other systems where old BFGS fails the new implementation
has given good results. On the side of linear scaling algorithm much has still
to be done.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@436 c92efa57-630b-4861-b058-cf58834340f0
2003-12-01 10:39:02 +00:00
sbraccia 0675249830 Cleanup of the bfgs_module. The module basic_algebra_routines has been separated
from bfgs stuff.
The new implementation of bfgs now seems to work reasonably good. It can be tested using
the pwneb.x program with exactly the same input file needed by pw.x for a bfgs relaxation.
pw.x still uses the old bfgs implementation (useful for comparison).
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@435 c92efa57-630b-4861-b058-cf58834340f0
2003-11-28 17:41:44 +00:00
sbraccia 667fd18812 The inverse BFGS hessian is saved (prefix.hess) when convergence is achieved.
It could be useful to have a very rough estimate of the force constants.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@434 c92efa57-630b-4861-b058-cf58834340f0
2003-11-27 15:31:36 +00:00
sbraccia 1603f66312 Again several bugs have been fixed. Note that the new bfgs scheme can start with
a large conv_thr (~1.D-4,1.D-5), provided the upscale variable is setted in order to
have a final conv_thr strict enough (~1.D-8). This is due to the fact that no line
search is needed (the place where high accuracy in the forces is needed).
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@433 c92efa57-630b-4861-b058-cf58834340f0
2003-11-26 17:22:24 +00:00
sbraccia 29e2121426 Other bugs fixed. Performance is slightly better than yesterday.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@432 c92efa57-630b-4861-b058-cf58834340f0
2003-11-26 09:44:49 +00:00
sbraccia c0a675e6e2 Several bugs fixed. Nevertheless performance is still poor.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@431 c92efa57-630b-4861-b058-cf58834340f0
2003-11-25 18:19:16 +00:00
sbraccia bf94d608c6 A module containing a new implementation of the BFGS minimization scheme has been
added in Module. (see references in the code)
At present it is used in the pwneb code only (see routine NEB/move_ions).
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@430 c92efa57-630b-4861-b058-cf58834340f0
2003-11-24 15:35:36 +00:00
sbraccia 8be0d235f7 CI_scheme = 'manual' implemented (an option for neb calculations).
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@429 c92efa57-630b-4861-b058-cf58834340f0
2003-11-24 15:24:07 +00:00
giannozz 37d70e62b2 Fixed bug if Gamma+doublegrid
Misc cleanup (tabulators), doc. update


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@425 c92efa57-630b-4861-b058-cf58834340f0
2003-11-21 15:20:29 +00:00
ballabio 4025c251fc fixed NEB compilation problems [Gerardo]
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@420 c92efa57-630b-4861-b058-cf58834340f0
2003-11-21 11:43:53 +00:00
sbraccia b66e182cce Module miscellany moved from NEB to Modules. C.S.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@414 c92efa57-630b-4861-b058-cf58834340f0
2003-11-21 10:04:11 +00:00
sbraccia 4de0beae5b Added support for neb code. C.S.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@400 c92efa57-630b-4861-b058-cf58834340f0
2003-11-17 11:52:06 +00:00
sbraccia 325209b241 Added another unit needed by neb (and eventually by other codes)
to terminate a simulation creating an empty file "EXIT" in the
working directory.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@399 c92efa57-630b-4861-b058-cf58834340f0
2003-11-17 09:31:14 +00:00
sbraccia f160dbb108 Units and files needed by neb has been added.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@386 c92efa57-630b-4861-b058-cf58834340f0
2003-11-12 15:03:32 +00:00
cavazzon 0e5a990287 default values for file units
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@383 c92efa57-630b-4861-b058-cf58834340f0
2003-11-09 18:37:00 +00:00
cavazzon 9ce7263953 - bug (alpha compiler) reported by Sergey has been fixed
- module filnam in pwcom moved to io_files module
- module units in pwcom moved to io_file

From now on, all file names and their unit and attributes (i.e. reclen)
should be defined in Modules/io_files.f90


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@382 c92efa57-630b-4861-b058-cf58834340f0
2003-11-09 18:30:08 +00:00
cavazzon c5d8ff2f66 - unit 6 replaced by stdout in CPV
- ^M removed from pseudo files
- wavefunctions arrais moved to module
  wavefunctions_module, common to all codes
  this is required to reduce duplicated subroutine
- new lapack subroutine, called from PWCOND,
  added to lib/lapack.f lib/lapack_ibm.f


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@381 c92efa57-630b-4861-b058-cf58834340f0
2003-11-09 10:42:50 +00:00
sbraccia 5c5e5e2070 Added eps16 (1.0D-16) and eps32 (1.0D-32).
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@368 c92efa57-630b-4861-b058-cf58834340f0
2003-11-05 11:35:48 +00:00
sbraccia d5030e787e Unit stdout (set in io_global.f90) is used to write on standard output
instead of 6 or *.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@364 c92efa57-630b-4861-b058-cf58834340f0
2003-11-04 10:26:03 +00:00
sbraccia 4e747a2445 Version number updated to 1.3.1
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@363 c92efa57-630b-4861-b058-cf58834340f0
2003-11-04 09:32:24 +00:00
sbraccia 33921e1f1e iunsdtout removed by PW/pwcom.f90. The unit for standar output (stdout)
is contained in Modules/io_global.f90.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@362 c92efa57-630b-4861-b058-cf58834340f0
2003-11-03 18:13:21 +00:00
moscac 59cf4dd721 non collinear variables put into Modules
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@360 c92efa57-630b-4861-b058-cf58834340f0
2003-10-30 13:58:42 +00:00
sbraccia 58d64207ca eV_to_kelvin PARAMETER added.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@349 c92efa57-630b-4861-b058-cf58834340f0
2003-10-29 10:41:05 +00:00
sbraccia 9de9d052ba In fft_types deallocation of fft_dlay_descriptor objects is done without
checking if they are allocated or not. Fixed.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@346 c92efa57-630b-4861-b058-cf58834340f0
2003-10-28 14:17:36 +00:00
sbraccia 2465c4f57c SAVE attribute added.
Now all modules containing global variables should have a SAVE attribute.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@338 c92efa57-630b-4861-b058-cf58834340f0
2003-10-21 13:37:54 +00:00
giannozz ecc6fd0eda sp4 compilation glitches
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@335 c92efa57-630b-4861-b058-cf58834340f0
2003-10-16 17:41:11 +00:00
giannozz bba38fd761 bfgs modified to work with arbitrary components of the atomic positions
kept fixed (Carlo Sbraccia)
"Total force" now prints a more sensible quantity:
\sqrt(\sum_{i,n} f_i(n)^2) instead of \sum_{i,n} |f_i(n)|
Cleanup in several routines and in modules.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@334 c92efa57-630b-4861-b058-cf58834340f0
2003-10-16 16:30:12 +00:00
cavazzon cbff0f48de different modules containing filenames and directories
substituted by common module:
Modules/io_files.f90


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@317 c92efa57-630b-4861-b058-cf58834340f0
2003-09-23 14:45:12 +00:00
giannozz b04721ac28 *** empty log message ***
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@316 c92efa57-630b-4861-b058-cf58834340f0
2003-09-22 17:12:43 +00:00
giannozz 494d7a4fd3 more t3e fixes
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@315 c92efa57-630b-4861-b058-cf58834340f0
2003-09-19 18:47:23 +00:00
giannozz e212a3e854 Wrong coordinates written if atomic_positions='crystal'
Errors in makefiles for cygwin and hp
Various compilation problems for t3e, alpha


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@313 c92efa57-630b-4861-b058-cf58834340f0
2003-09-17 08:36:08 +00:00
fabris afa4cbf4ac *** empty log message ***
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@298 c92efa57-630b-4861-b058-cf58834340f0
2003-09-02 12:44:56 +00:00
cavazzon 0afcf95c6f io_base logic simplified even more,
variable wf_collect added to the control namelist.
This logical variable will be used in pw to
collect wave funcions at the end of a parallel run.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@295 c92efa57-630b-4861-b058-cf58834340f0
2003-09-02 09:16:09 +00:00
giannozz d0706224d4 Version number centralized in Modules/version.f90, updated to 1.3.0
Auxiliary programs in pwtools/: equation of state (ev.x),
distances/angles (dist.x), k-point generation (kpoints.x).
D3 fixes (maybe). Misc cleanup.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@291 c92efa57-630b-4861-b058-cf58834340f0
2003-08-29 17:15:25 +00:00
cavazzon a042e7a1f5 - io_base logic simplified
- substitution of USE ... with USE ... ONLY ...
- directories and filenames moved to io_files,
  common to all codes
- clean up in control_flags


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@290 c92efa57-630b-4861-b058-cf58834340f0
2003-08-24 22:25:53 +00:00
dalcorso 72a8f4b592 Very simple implementation of occupations='from_input' in pwscf.
Useful for atomic calculations.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@287 c92efa57-630b-4861-b058-cf58834340f0
2003-08-21 09:41:51 +00:00
giannozz 7c657dc0ff punch_band.f90 works in parallel. Misc cleanup. "aceived" => "achieved"
nelec, nelup, neldw may be real (PW only: CP, FPMD to be verified)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@284 c92efa57-630b-4861-b058-cf58834340f0
2003-08-20 16:16:26 +00:00
cavazzon da47185a66 All namelists and cards moved to Modules/input_parameters.f90 .
From now on, all new input variables should be added
  to this module, and then copied to the code internal
  variables in the input.f90 subroutine
The namelists and cards parsers are in :
  Modules/read_namelists.f90 and Modules/read_cards.f90

files input_parameters.f90 read_namelists.f90 read_cards.f90
are shared by all codes, while each code has its own version
of input.f90 ( used to copy input values into internals variables ).

EXAMPLE:
 suppose you need to add a new input variable called "pippo"
 to the namelist control, then:

1) add pippo to the input_parameters.f90 file containing the
   namelist control

   INTEGER :: pippo = 0
   NAMELIST / control / ....., pippo

   remember: always set an initialization value!

2) add pippo to the control_default subroutine
   ( cantained in module  read_namelists.f90 )

   subroutine control_default( prog )
     ...
     IF( prog == 'PW' ) pippo = 10
     ...
   end subroutine

   this routine set the default value for pippo,
   that could vary with the code

3) add pippo to the control_bcast subroutine
   ( cantained in module  read_namelists.f90 )

   subroutine control_bcast( )
     ...
     call mp_bcast( pippo )
     ...
   end subroutine


4) add pippo to the control_checkin subroutine
   ( cantained in module  read_namelists.f90 )

   subroutine control_checking( prog )
     ...
     IF( pippo < 0 ) &
       CALL error(' control_checkin ',' variable pippo less than 0 ', 1 )
     ...
   end subroutine

5) Copy the value of pippo in the code internal variables
   ( file input.f90 )

   subroutine iosys()
     use input_parameters, only: ...., pippo
     use pwcom, only: ....., myvar
     ...
     call read_namelists( 'PW' )
     ...
     myvar =  pippo
     ...
   end subroutine


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@282 c92efa57-630b-4861-b058-cf58834340f0
2003-07-31 13:24:20 +00:00
cavazzon 21473c7a29 FPMD:
PRIVATE keyword added to all FPMD source files,
variables that have to be known outside the module
are explicitly declared as PUBLIC
CPV:
now CP uses the same input parser as FPMD


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@267 c92efa57-630b-4861-b058-cf58834340f0
2003-07-21 15:59:32 +00:00
giannozz 6b9b7b9725 Atomic positions are written in a relaxation run in input units
The unit cell can be given using crystallographic parameters a, b, c,
(all in A), cosab cosac, cosbc .  Misc. cleanup


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@263 c92efa57-630b-4861-b058-cf58834340f0
2003-07-11 15:16:00 +00:00
cavazzon 534f1a5db5 FPMD berry_phase and polarizability made shareable by other codes
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@262 c92efa57-630b-4861-b058-cf58834340f0
2003-07-10 16:59:11 +00:00
cavazzon eac7b833e4 a new iosys subroutine, called iosys2 added in CPV/input.f90 .
This sub. share the input parsers (read_namelist and read_cards)
with FPMD. Soon it will be possible to initialize and call all
CP subroutines within FPMD, and viceversa.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@259 c92efa57-630b-4861-b058-cf58834340f0
2003-07-07 21:58:02 +00:00
cavazzon 6ca8b2ce58 more merging, "only" keyword added to many "use"
io_base: strings with the name of the data sections added to the
restart file, this will allow R/W of data sections in any order


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@257 c92efa57-630b-4861-b058-cf58834340f0
2003-07-06 21:47:17 +00:00
cavazzon b361a00b78 restart file restructure started.
new hpsort that should solve the problems with the unique
g vectors ordering, d1, d2, d3 eliminated from ggens of all
the codes.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@253 c92efa57-630b-4861-b058-cf58834340f0
2003-06-30 14:30:44 +00:00
cavazzon de9a865b6c subroutine latgen and volume moved to flib
and used by all codes,
as common latgen it has been used the one contained in CPV,
sice this version solve some problems related to left-handed cell

new common module ions_base with ionic basic variables


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@247 c92efa57-630b-4861-b058-cf58834340f0
2003-06-25 12:43:25 +00:00
cavazzon 21187430a4 More common modules for grid dimensioning,
recips.f90 moved to flib and used by all codes


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@245 c92efa57-630b-4861-b058-cf58834340f0
2003-06-24 21:38:49 +00:00
cavazzon c77bf5f61d more merging in Module/recvecs
intel compiler bug workaround: it seems that the intel compiler
does not set the save attribute to the module variables unless
there is an explicit initialization, this only for module not directly
accessible to the main (if they are not in the same directory).
The workaround is to set an initial value for all variables


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@243 c92efa57-630b-4861-b058-cf58834340f0
2003-06-19 16:49:30 +00:00
cavazzon 1491227547 more merging, recvecs module
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@239 c92efa57-630b-4861-b058-cf58834340f0
2003-06-16 10:41:12 +00:00
giannozz 1cd87510e6 Spelling : "Informations" => "Information"
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@237 c92efa57-630b-4861-b058-cf58834340f0
2003-06-13 16:55:38 +00:00
cavazzon 19d6d59207 fix for alpha platform and FFTW:
SIZE( c ) substituted with ldc * nsl


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@233 c92efa57-630b-4861-b058-cf58834340f0
2003-06-12 16:46:56 +00:00
giannozz 6dc987f2fe Yet another line continuation problem in bp_c_phase.f90 (with ifc)
DEC __QSW TRU64 => __ALPHA for Alpha machines (with OSF/Tru64 or
whatever it is called now: any Alpha Linux around?)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@232 c92efa57-630b-4861-b058-cf58834340f0
2003-06-12 11:23:17 +00:00
cavazzon 55bca2f76e Compilation on SGI:
in fft_scalar.f90 there wasn't all proper #ifdef
 bc_c_phase.f900 : when continuing a string on a new line an "&"
  character should be added on the new line too!


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@230 c92efa57-630b-4861-b058-cf58834340f0
2003-06-12 08:56:47 +00:00
cavazzon 7015d67784 merging: new module recvec.f90 will be used by all code
to store reciprocal vectors  dimensions


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@229 c92efa57-630b-4861-b058-cf58834340f0
2003-06-12 08:23:01 +00:00
cavazzon a85db0682b More merging: modules energies and control_flags of FPMD and CPV
merged and moved to Modules
Basic modules descriptors and parallel_types moved from FPMD to Modules


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@225 c92efa57-630b-4861-b058-cf58834340f0
2003-06-09 21:27:20 +00:00
cavazzon daad304857 - Cleanup
- similar subroutines and variables merged together


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@223 c92efa57-630b-4861-b058-cf58834340f0
2003-06-02 20:55:14 +00:00
cavazzon d6d6eef8a0 - common subroutine sph_bes linked to the CP in place
of bess
- FPMD clean up and some performance issues


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@218 c92efa57-630b-4861-b058-cf58834340f0
2003-05-26 22:02:26 +00:00
cavazzon a5d1d4085f bug fix in serial transpose (used by FPMD)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@217 c92efa57-630b-4861-b058-cf58834340f0
2003-05-24 16:56:48 +00:00
cavazzon f56b9ef4d0 - also FPMD now is linked to the
same fft scalar drivers as CPV and PWSCF


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@216 c92efa57-630b-4861-b058-cf58834340f0
2003-05-23 09:39:48 +00:00
cavazzon 7ec278895a bug fix, sticks and serial Gamma code. The do_fft_x and do_fft_y
vectors was built only from half of G-space.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@201 c92efa57-630b-4861-b058-cf58834340f0
2003-05-03 15:10:42 +00:00
cavazzon 90d14d64ca isign convention set as in PW and CPV
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@200 c92efa57-630b-4861-b058-cf58834340f0
2003-05-03 09:48:45 +00:00
cavazzon 07c97593b8 - cleanup
- serial code sticks enabled with fftw to (then we should check when
  it is worth to use them, in most cases seems convenient)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@197 c92efa57-630b-4861-b058-cf58834340f0
2003-05-01 22:47:53 +00:00
cavazzon 23aec87a2f - more performance issues
- ifdef __PARA removed from the main subroutine of PW, Gamma, D3, PP, PH
  now startup is called both for serial and parallel codes.
- cfts_3 included in fft_scalar ( tested for __AIX )
- module pencils in serial executions is no more needed


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@189 c92efa57-630b-4861-b058-cf58834340f0
2003-04-28 07:23:04 +00:00
cavazzon 616b483f36 Performance issues and Harware Performance Monitor
interface for Power4 processor ( can by switched on defining __HPM )


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@187 c92efa57-630b-4861-b058-cf58834340f0
2003-04-24 22:10:04 +00:00
cavazzon 029005dfa4 Comments + cleanup
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@185 c92efa57-630b-4861-b058-cf58834340f0
2003-04-24 08:21:36 +00:00
cavazzon 37a8dec5dd tabmesh tables replaced by good_fft_order in FPMD
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@184 c92efa57-630b-4861-b058-cf58834340f0
2003-04-23 10:40:23 +00:00
cavazzon 23634ce31b good_fft_dimension moved to fft_scalar
small fix (most probably a typo) in scatter.f90


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@181 c92efa57-630b-4861-b058-cf58834340f0
2003-04-22 21:26:28 +00:00
cavazzon 609a2863fe More cleaning and updating from the IBM SP4
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@177 c92efa57-630b-4861-b058-cf58834340f0
2003-04-21 22:11:41 +00:00
cavazzon 45858fb8bd Small fixes in Makefiles (consequence of the directory change of clocks.f90)
..... fixed by PG few minutes ago!
PW interfaced to Module/fft_scalar.f90 when __FFTW is defined.
Extensive tests of parallel and serial execution for all codes,
has been done on ALPHA system.
In pw_examples/example6 found a problem in parallel execution with 4 procs,
related to stdin (I've got an end of file on stdin), no problem
for the serial execution.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@176 c92efa57-630b-4861-b058-cf58834340f0
2003-04-21 21:29:49 +00:00
cavazzon 9b397d0af2 fft driver for SGI added
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@174 c92efa57-630b-4861-b058-cf58834340f0
2003-04-21 16:04:45 +00:00
cavazzon 57b3b443e1 fix for a weird behaviour of compact compiler (#@!$*#?@) and optional
subroutine arguments


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@173 c92efa57-630b-4861-b058-cf58834340f0
2003-04-21 10:32:20 +00:00
cavazzon 4831aaabac FPMD:
cleaning + removing of redundant files ( now in Modules )
  now FPMD rely entirely on Module/fft_scalar and Module/fft_base

CPV:
  fft drivers, in the parallel case, now rely entirely on fft_scalar
  CPV depends on FFTW only through fft_scalar which in turn calls
  the wrappers contained in clib/fft_sticks, in other words CPV and
  FPMD are now completely isolated from FFTW primitives.

PW:
  clocks.f90  moved to Modules
  scnds.f90   moved to flib

  When __AIX is defined PW now uses Module/fft_scalar drivers too.
  For testing and debugging, usage of fft_scalar or
  cft_sp drivers can be selected, for the time being, defining or undefining the
  __FFT_MODULE_DRV macro in the cft3.f90 and cft3s.f90 files.

  fft_scatter has been moved to Module/fft_base, file PW/fft_scatter.f90
  is still there for testing and debugging


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@170 c92efa57-630b-4861-b058-cf58834340f0
2003-04-20 22:22:26 +00:00
cavazzon a382fc8065 All CPV and FPMD FFTW drivers moved to Modules/fft_scalars.f90
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@169 c92efa57-630b-4861-b058-cf58834340f0
2003-04-19 16:39:25 +00:00
cavazzon d5cab68c77 All the fft scalar drivers for AIX moved to Module/fft_scalar.f90
( CPV and FPMD codes )


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@168 c92efa57-630b-4861-b058-cf58834340f0
2003-04-19 07:40:46 +00:00
cavazzon fb90a63222 scalar driver tested and fixed for alpha systems and FFTW
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@164 c92efa57-630b-4861-b058-cf58834340f0
2003-04-18 10:18:46 +00:00
cavazzon 1b9a9caa6b Working on FFTs, added module fft_scalar that will
contain all scalar fft drivers


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@157 c92efa57-630b-4861-b058-cf58834340f0
2003-04-17 21:43:54 +00:00
giannozz 318b756c42 rimossi alcuni write di troppo
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@155 c92efa57-630b-4861-b058-cf58834340f0
2003-04-14 20:14:09 +00:00
giannozz d2c6caca79 Minor things
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@153 c92efa57-630b-4861-b058-cf58834340f0
2003-04-10 20:08:14 +00:00
cavazzon 84b4586127 Bug fix, sticks were not properly set when pool are used
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@152 c92efa57-630b-4861-b058-cf58834340f0
2003-04-10 11:26:03 +00:00
cavazzon 5c35e55713 Work in progress with the FFTs.
I've added a new module, fft_types, containing
a structure for the fft data layout description, this is
common to all cades and independent to a particular grid.
This data structure will be used in few general high level fft drivers.
Another module, fft_base, contains the scatter algorithms,
and low level fft auxiliary functions.
Test with the new data structure are being done with CP and FPMD.
Yet another module, fft_scalar (not yet in the repository),
will contain the scalar wrapper to the machine specific ffts


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@149 c92efa57-630b-4861-b058-cf58834340f0
2003-04-08 22:36:18 +00:00
cavazzon b08605d233 basic subroutines to distribute fft sticks/pencils/columns, now are
common to all codes. Comments have not been revised yet.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@139 c92efa57-630b-4861-b058-cf58834340f0
2003-03-31 08:42:59 +00:00
cavazzon d69c549c5a IMPLICIT NONE added, undeclared variables fixed
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@136 c92efa57-630b-4861-b058-cf58834340f0
2003-03-26 09:25:37 +00:00
giannozz 433ad9a2f9 calls to mpi_bcast replaced by calls to interface mp_bicast
Electron-phonon with Vanderbilt according to MW


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@132 c92efa57-630b-4861-b058-cf58834340f0
2003-03-24 15:25:17 +00:00
giannozz a0cc0b1d7e - call to dvqpsi_us in PH/elphon.f90 updated with recent
recent changes (could cause core dump)
- local_dos.f90 compilation error in parallel case
- more mpi_bcast => mp_bcast, misc. cleaning


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@131 c92efa57-630b-4861-b058-cf58834340f0
2003-03-21 16:20:59 +00:00
degironc 7bf0c09bf6 20 mar 2003 - relaxation using damped dynamics can be used keeping fixed
last fixatom atoms (with the same input procedure as the bfgs
             minimization).
             - LDA+U part has been modified in order run also in the not
             spin-polarized case (some testing still neeeded).
             - Davidson diagonalization returns best estimate for
             eigenvalues and eigenvectors also in the case that not all
             roots have converged. This is more consistent and should
             somehow alleviate the problem of WARNING messages in scf and
             band structure run.
             - Number of beta function in pseudopotentials increased to 8.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@130 c92efa57-630b-4861-b058-cf58834340f0
2003-03-20 11:21:34 +00:00
giannozz 8fae4e4de1 fix for problem when reading local potential fixed again
Make.pc_abs fixed, minor documentation update


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@126 c92efa57-630b-4861-b058-cf58834340f0
2003-03-19 10:48:33 +00:00
cavazzon 07b5bc7d9b - more common pieces of code move to stick_base
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@125 c92efa57-630b-4861-b058-cf58834340f0
2003-03-16 23:02:31 +00:00
cavazzon 3843ebc013 - new subroutine avrec.f90 in flib to compute av(:) = alpha / v(:)
using, when available, fast system library (like mass)
- new module stick_base, that will contain common subroutines
  to compute stick distributions


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@124 c92efa57-630b-4861-b058-cf58834340f0
2003-03-14 17:01:59 +00:00
giannozz 4754cbcb87 data for preprocessing on parallel machines can be read from standard input
problem when reading local potential on ibm-sp3 fixed


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@123 c92efa57-630b-4861-b058-cf58834340f0
2003-03-14 10:22:48 +00:00
cavazzon f66d1a16ef - FPMD linked to sph_bes subroutine
- Startup subroutines of all codes now calls
  mp_start and mp_env mp module subroutines instead of
  mpi_... directly. This is a first step in the direction
  of hiding the communications within a few basic modules.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@120 c92efa57-630b-4861-b058-cf58834340f0
2003-03-11 22:47:22 +00:00
giannozz e890d6dc48 More t3e glitches
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@107 c92efa57-630b-4861-b058-cf58834340f0
2003-03-03 10:39:45 +00:00
cavazzon c5443ef48e - File mp_buffers.f90 and ptoolkit.f90 moved to Module directory
- Some common parameters that were defined in different places for different codes,
  has been move to  Modules/parameters


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@106 c92efa57-630b-4861-b058-cf58834340f0
2003-03-02 23:19:44 +00:00
giannozz cb0e24eda7 File name harmonisation:
filemd => 'prefix'.md, filebfgs => 'prefix'.bfgs
Misc. T3E fixes (c_gemm, s_gemm; idum initialized when written)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@101 c92efa57-630b-4861-b058-cf58834340f0
2003-02-28 17:16:27 +00:00
giannozz 5542a00340 Misc. installation and doc fixes
T3D, T3E, __CRAY => __T3E  ; PC => __LINUX


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@99 c92efa57-630b-4861-b058-cf58834340f0
2003-02-27 13:59:04 +00:00
cavazzon 8f2eefcdce more error (subroutine)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@88 c92efa57-630b-4861-b058-cf58834340f0
2003-02-21 16:06:24 +00:00
giannozz 9e3a2de758 Support for lahey compiler added: "error" renamed to "errore", "rnd" to "rndx"
bug in io_base fixed
PARA => __PARA
cinterpolate moved into interpolate


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@86 c92efa57-630b-4861-b058-cf58834340f0
2003-02-21 14:57:00 +00:00
cavazzon 4455df25ab fpmd.h merged with machine.h and eliminated
use of machine.h extended to CPV in place of compiler macro
 other minor changes


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@79 c92efa57-630b-4861-b058-cf58834340f0
2003-02-16 15:16:33 +00:00
cavazzon 6485045722 1) directory flib now contains only commons general pourpose subroutines,
all FPMD related subs moved back to FPMD directory.
2) All Make.fpmd... merged with Make.cp... and removed.
3) "use parameter .."  added to all cft_3 subroutines .
4) hpsort.f90 erf.f90 simpson.f90 moved to flib .

everything seem to compile fine,
at least on IBM
carlo


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@67 c92efa57-630b-4861-b058-cf58834340f0
2003-02-13 23:10:25 +00:00
cavazzon aa8d833a4f - new common module "cell_base.f90" containing basic
types and subroutines related to the simulation cell

carlo


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@63 c92efa57-630b-4861-b058-cf58834340f0
2003-02-11 23:19:35 +00:00
cavazzon 7aeee66c55 - more comments, docs and examples
carlo


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@48 c92efa57-630b-4861-b058-cf58834340f0
2003-02-03 08:32:06 +00:00
giannozz d6ba3a9877 ancora makefiles...
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@40 c92efa57-630b-4861-b058-cf58834340f0
2003-01-29 14:32:18 +00:00
giannozz 43433b42cd Manuale, dynmat.f90, copyright, misc
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@29 c92efa57-630b-4861-b058-cf58834340f0
2003-01-28 12:28:11 +00:00
cavazzon 6c205ec03a - variable gamma_only added to restart file
- Make.fpmd.lnx.pgi compatible with cpv
- fix for PW/scnds.f90 with PGI compiler
carlo


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@27 c92efa57-630b-4861-b058-cf58834340f0
2003-01-27 23:07:52 +00:00
cavazzon 15dd1c757c - many small changes ( comments and standartd output layout )
- some new pseudo
- some new cp_examples
- NEW shared module constants, this is the merge of FPMD and PW constants module
- NEW fpmd2upf pseudo converter (from fpmd format to upf )

carlo


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@22 c92efa57-630b-4861-b058-cf58834340f0
2003-01-26 22:39:33 +00:00
giannozz 99d3a31e2e Makefiles modified to work if some directory is missing
INSTALL file added, pwdocs/INSTALL.obsolete obsoleted,
README worth reading, misc. cleaning


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@20 c92efa57-630b-4861-b058-cf58834340f0
2003-01-25 18:05:41 +00:00
cavazzon c332002b1f - small bug fix
carlo


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@10 c92efa57-630b-4861-b058-cf58834340f0
2003-01-22 11:37:19 +00:00
giannozz ac9f2144c0 O-sesame
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2 c92efa57-630b-4861-b058-cf58834340f0
2003-01-19 21:58:50 +00:00