Commit Graph

234 Commits

Author SHA1 Message Date
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 52e6da3bfb now PW could be linked with fft_scalar fft drivers
also on SGI machine


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@186 c92efa57-630b-4861-b058-cf58834340f0
2003-04-24 09:14:58 +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
giannozz 93246242dc cft from cernlib moved to PP, more fft cleanup
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@183 c92efa57-630b-4861-b058-cf58834340f0
2003-04-23 07:53:18 +00:00
cavazzon 7705b68b8a function allowed moved to fft_scalar
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@182 c92efa57-630b-4861-b058-cf58834340f0
2003-04-22 21:45:49 +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
giannozz b58fd34c11 oops... PP/addusdens1d.f90 e PP/average.f90 usavano ancora la cernfft.
Corretto, ma va verificato


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@180 c92efa57-630b-4861-b058-cf58834340f0
2003-04-22 20:07:23 +00:00
giannozz 126d78de8a FFT : Cern fft, option NOPENCILS removed
Make.ibmsp modified to work without modifications for all codes
Misc minor changes. Initialization to zero added to regterg as well


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@179 c92efa57-630b-4861-b058-cf58834340f0
2003-04-22 19:34:27 +00:00
degironc c830a68c37 22 apr 2003 All setv statements in PW repalaced by f90 constructs.
Minor changes in PW & PH (code readability).


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@178 c92efa57-630b-4861-b058-cf58834340f0
2003-04-22 16:03:45 +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
giannozz 4d60840971 Makefile fixes (PP, PH, D3, Gamma)
Calls to allocate_fft, ggen moved out of setup.f90
Minor change in mix_rho to reduce memory use
CPV: Exch_corr: gradr not deallocated in some cases


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@175 c92efa57-630b-4861-b058-cf58834340f0
2003-04-21 20:42:34 +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 3da1e1a693 fix for floating point execption that happens on alpha machine
in parallel execution, this are due to unused/unset elements
of variables: spsi, psi, hpsi. Now after the allocation
they are set to 0.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@172 c92efa57-630b-4861-b058-cf58834340f0
2003-04-21 09:58:16 +00:00
cavazzon f6dec30511 scnds.f90 removed from the list of object
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@171 c92efa57-630b-4861-b058-cf58834340f0
2003-04-21 09:45:47 +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 336a77c9b7 wrapper again
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@167 c92efa57-630b-4861-b058-cf58834340f0
2003-04-18 12:22:38 +00:00
cavazzon d4fe11821f small fix, again output format descriptors
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@166 c92efa57-630b-4861-b058-cf58834340f0
2003-04-18 10:52:59 +00:00
cavazzon 3d80ab439b Eispack replaced by a wrapper to the LAPACK routines
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@165 c92efa57-630b-4861-b058-cf58834340f0
2003-04-18 10:29:27 +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 7699b67b62 Small fix for SGI compiler and FORMAT descriptor within a write statement:
write(6, ' ( " .... ", &
   " .... " ) ' )
changed to
 write(6, ' ( " .... ", &
  &  " .... " ) ' )

The sgi compiler is right, the descriptor is a string '( ... )'
and a continuation is possible only if "&" is added at the beginning
of the line


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@163 c92efa57-630b-4861-b058-cf58834340f0
2003-04-18 08:40:17 +00:00
cavazzon 591f49e3a4 small fix for ifc 7.0 and FORMAT descriptor:
'( '' string '' )' --> "( ' string ' )"


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@162 c92efa57-630b-4861-b058-cf58834340f0
2003-04-18 08:32:46 +00:00
cavazzon 71acabc344 New Machine file tested and fixed for ifc 7.0
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@161 c92efa57-630b-4861-b058-cf58834340f0
2003-04-18 08:11:58 +00:00
cavazzon 81e9693160 New machine file for beowulf
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@160 c92efa57-630b-4861-b058-cf58834340f0
2003-04-18 07:56:05 +00:00
cavazzon c47c361862 Variables FFTW_INC_DIR and FFTW_LIB_DIR added to many machine files,
this will be needed to link FFTW through "C" wrappers  in /clib and
to automatically detect the number of underscores.
The new machine files should be checked and possibly corrected


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@159 c92efa57-630b-4861-b058-cf58834340f0
2003-04-17 23:02:38 +00:00
cavazzon 908a82d32e modified for compatibility with other codes
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@158 c92efa57-630b-4861-b058-cf58834340f0
2003-04-17 22:10:24 +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 868ba9919a Doc and install files updated (MKL problem)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@156 c92efa57-630b-4861-b058-cf58834340f0
2003-04-15 17:40:01 +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 be52103a27 All filenames => 80 char
All directories=> 80 char
Filenames + directories + other => 256
---------------------------------------------------------------


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@154 c92efa57-630b-4861-b058-cf58834340f0
2003-04-12 19:25:08 +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
degironc ee14f0ed3c small I/O fix in projwave: ios is undefined for all nodes but the first,
thus execute the call to errore based on ios value only for the first node.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@151 c92efa57-630b-4861-b058-cf58834340f0
2003-04-09 15:54:09 +00:00
giannozz 644e487002 Iterative diag for Gamma case updated - comments, indent etc.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@150 c92efa57-630b-4861-b058-cf58834340f0
2003-04-09 13:58:05 +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
giannozz b25079f896 evc is dimensioned (npwx, nbnd) - various routines changed
(extensive changes to wfcinit, rotate_wfc, ccginitg).
Residual wrong dimension et(nbndx,nkstot) removed.
Common efield_0 in PW renamed extfield to avoid name
clash with common efield in PH (PGI compiler)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@148 c92efa57-630b-4861-b058-cf58834340f0
2003-04-08 07:13:30 +00:00
degironc 63c59eb8b1 08 apr 2003 g_psi, g_psi_mod: new preconditioning (better behaved when
hdiag-e*sdiag is close to zero) used in cegterg. This
             removes most of the warning messages when using Davidson
             diagonalization. Although the overall performance (number of
             h_psi performed) does not seem to change very much in small
             tests, except pathological cases like ni.band.in in example1,
             it should be wise to have a more stable preconditioning.
             cegterg: use always GEMM instead of GEMV in the update.
             electrons: in a relaxation run perform accurately the first
             iteration after ionic move but reset the diagonalization
             threshold according to the actual self-consistence for the
             following ones.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@147 c92efa57-630b-4861-b058-cf58834340f0
2003-04-08 06:44:33 +00:00
degironc 712427ae53 solo piccole riformattazioni per aumentare la leggibilita`
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@146 c92efa57-630b-4861-b058-cf58834340f0
2003-04-07 14:13:17 +00:00
giannozz ab5b6af5e5 D3/Makefile : missing add_efield added
cegterg, regterg: use GEMM instead of GEMV, do not require
any longer evc, et to be dimensioned nbndx (et is now
dimensioned (nbnd,nkstot)) - misc. cleanup

Il calcolo di (H-eS)*psi ('update') nella diagonalizzazione iterativa
prendeva un tempo esagerato. L'ho modificata in modo da usare prodotti
matrice-matrice su tutti gli psi invece che matrice-vettore su ogni
psi, se piu' di 1/4 dei vettori non e' a convergenza. La cosa e' fatta
a naso e richiede ulteriori di prove, ma mi sembra che apporti dei
miglioramenti.

In TODO ho messo una lista di cose da fare.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@145 c92efa57-630b-4861-b058-cf58834340f0
2003-04-07 12:55:29 +00:00
giannozz 6e3853d809 Some cleanup and marginal improvements in force calculation for US PP
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@144 c92efa57-630b-4861-b058-cf58834340f0
2003-04-04 14:36:00 +00:00
dalcorso 0efed33427 Piccola correzione per compilare con il flag DEBUG (Thanks to J. Tobik.)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@143 c92efa57-630b-4861-b058-cf58834340f0
2003-04-04 12:36:18 +00:00
dalcorso 3d09a2cd9a Ancora una modifica per il campo elettrico finito.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@142 c92efa57-630b-4861-b058-cf58834340f0
2003-04-04 12:29:13 +00:00
dalcorso 513f48608f Introdotto il calcolo del dipolo di cariche localizzate al centro della
cella unitaria in chdens (utile solo per molecole isolate).
Introdotta la possibilita' di aggiungere un potenziale a forma di dente
di sega al potenziale degli ioni per simulare un campo elettrico
finito. (by J. Tobik)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@141 c92efa57-630b-4861-b058-cf58834340f0
2003-04-03 15:35:36 +00:00
dalcorso 139c026205 Il tar include anche i .h della clib.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@140 c92efa57-630b-4861-b058-cf58834340f0
2003-04-03 14:31:56 +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
giannozz 96ea2f812f Do not restart bfgs from previous results if restart_mode='from_scratch'
(this time correct)
BEWARE: tmp_dir => outdir in all namelists and examples
misc. cleaning


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@138 c92efa57-630b-4861-b058-cf58834340f0
2003-03-27 15:47:30 +00:00