Commit Graph

27 Commits

Author SHA1 Message Date
cavazzon 9917e27772 - SIC again
- bug fix, allocation in CP


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@801 c92efa57-630b-4861-b058-cf58834340f0
2004-04-19 07:29:16 +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
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 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 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 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
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
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
giannozz a8bbb6a06a PW/startup.f90: longer character variable np needed
Band extraction moved out of PP/pp.x, into PP/bands.x
Band plotting program (PP/plotband.f90) added
Misc corrections


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@244 c92efa57-630b-4861-b058-cf58834340f0
2003-06-20 15:30:55 +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 c511ef1c70 CP: some cleanup for occupancy and empty state calculation
PW:  some cleanup in c_bands, timing, documentation
     removed obsolete "scf in/out correction"


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@214 c92efa57-630b-4861-b058-cf58834340f0
2003-05-19 17:46:44 +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 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 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
giannozz 312e17a71f FFTW, __FFTWDRV, __FFTW => __FFTW, piu' altre piccole modifiche
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@77 c92efa57-630b-4861-b058-cf58834340f0
2003-02-15 18:03:15 +00:00
giannozz d3b8eea7b5 calculation of empty orbitals re-added (not sure it works properly)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@66 c92efa57-630b-4861-b058-cf58834340f0
2003-02-13 18:03:02 +00:00
giannozz f3c6f33266 pseudo_dir implemented
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@60 c92efa57-630b-4861-b058-cf58834340f0
2003-02-11 12:48:02 +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 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