Commit Graph

34 Commits

Author SHA1 Message Date
giannozz 70e40efc0c L=3 sort of implemented (untested). ng0 => gstart
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@808 c92efa57-630b-4861-b058-cf58834340f0
2004-04-21 17:11:56 +00:00
cavazzon 8f259a07ce - Changes in FPMD required by SIC implementation
- simplified ionic positions management in FPMD ( many staff moved to
  Modules/ions_base.f90
- sort_gvec.f90 ( a part of ggen common to FPMD and CP )


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@794 c92efa57-630b-4861-b058-cf58834340f0
2004-04-13 22:30:02 +00:00
giannozz e277741dc8 First steps in USPP merge between CP and PW:
PW: nqfm => nqfx, some us variables and aainit moved to Modules/uspp.f90 (new)
CP: lx, lqx => lqmax, lix => lmaxx+1, variables moved, aainit not yet merged
invmat moved to flib/ and merged with invmat3 of CP/FPMD,
rndm and ylmr2 moved to flib/ in rranf.f90


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@793 c92efa57-630b-4861-b058-cf58834340f0
2004-04-13 21:49:51 +00:00
cavazzon 9b67f06d87 - date_and_tim moved to flib and used by all code,
- cleanup in clib
- tictac substituted by start_clock/stop_clock
- other cleanup


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@751 c92efa57-630b-4861-b058-cf58834340f0
2004-03-28 21:36:28 +00:00
cavazzon c880a0a848 - Almost all neb routines moved to Modules
- New module check_stop used by all codes
  to check for exit conditions ( maximum time
  or EXIT file )


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@718 c92efa57-630b-4861-b058-cf58834340f0
2004-03-15 00:08:26 +00:00
cavazzon d15696e8a0 Porting of NEB to CP
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@712 c92efa57-630b-4861-b058-cf58834340f0
2004-03-11 17:03:51 +00:00
cavazzon 2b9008ea8a - More merging between CP and FPMD
- some common NEB modules moved to Modules directory
  others NEB modules will be moved soon


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@687 c92efa57-630b-4861-b058-cf58834340f0
2004-02-29 23:30:07 +00:00
giannozz 88f90f0851 Support for SGI Altix (Martin Hilgeman) - see cpdocs/ChangeLog
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@681 c92efa57-630b-4861-b058-cf58834340f0
2004-02-26 16:26:48 +00:00
cavazzon 11cb02075a merging FPMD/CPV added common subroutines
( wave_steepest wave_verlet )
to advance wave_functions .
FPMD friction parameter for electrons gdelt substituted with frice


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@669 c92efa57-630b-4861-b058-cf58834340f0
2004-02-25 11:44:39 +00:00
cavazzon adc7521f95 more support for NEB and meta dynamics.
I do not include NEB dynamics modules in this version,
because I want to wait for common neb modules,
to be built as soon as this version has been released


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@617 c92efa57-630b-4861-b058-cf58834340f0
2004-02-18 17:00:32 +00:00
cavazzon 6ad165c90a outdir added to the path of the output and restart files,
pseudopotential reading moved out from cprmain subroutine


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@608 c92efa57-630b-4861-b058-cf58834340f0
2004-02-17 09:53:14 +00:00
cavazzon 962296d977 deallocation statements added to CPV
for neb like dynamics


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@601 c92efa57-630b-4861-b058-cf58834340f0
2004-02-16 09:53:00 +00:00
cavazzon 860ca5c917 CPV has been "subroutinized" like PW and FPMD, and is ready for
NEB like dynamics.
Note that iosys has been split into two subroutines:
read_input_file and iosys.
The first routine simply calls read_namelists
and read_cards to read in the stdin, and do not perform any initialization.
The second (iosys) do not read anythings but copy values from input_parameters
to local variables.
read_input_file is called from the new main program.
iosys is called from the cprmain subroutine (the old main program).
This is the scheme of FPMD.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@600 c92efa57-630b-4861-b058-cf58834340f0
2004-02-15 10:29:15 +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
giannozz ce8515b1be many calls to "setv" replaced by f90 assignements
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@314 c92efa57-630b-4861-b058-cf58834340f0
2003-09-17 21:50:03 +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
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
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 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
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
giannozz 8f7900d5c9 CP bug: namelist &ions must be read in all cases
Write charge density (if required) only at last step
Documentation updated


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@211 c92efa57-630b-4861-b058-cf58834340f0
2003-05-14 16:09:14 +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 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
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 4808f50277 Misc installation problems on SP3
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@92 c92efa57-630b-4861-b058-cf58834340f0
2003-02-25 09:45:09 +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
giannozz b6cab8a97a Sun, intel+linux+CP, misc
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@58 c92efa57-630b-4861-b058-cf58834340f0
2003-02-10 14:44:51 +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