Commit Graph

130 Commits

Author SHA1 Message Date
sbraccia 18d09b6ead Again on the default value of starting***: in the case of a non scf calculation
they are both set to "file".
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@838 c92efa57-630b-4861-b058-cf58834340f0
2004-04-30 07:05:31 +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 cb4704bfda - missing use of iverbosity
- xlf complains for expession like: if ( logical_val == .false. )


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@766 c92efa57-630b-4861-b058-cf58834340f0
2004-04-03 14:42:28 +00:00
degironc 3deee25b0d 2 Apr 2004 A new (experimental) feature is added to LDA+U method.
The +U part of the functional can be built using
              for the projection on localized orbitals some simple
              Wannier functions generated by the post-processing
              code poormanwannier.f90 (pmw.x) from the LDA band
              structure. (SdG)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@764 c92efa57-630b-4861-b058-cf58834340f0
2004-04-02 16:05:17 +00:00
sbraccia 27985f2974 Default value for the neb-time-step (ds) updated.
Crrected csme other small errors in the INPUT_PW file.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@763 c92efa57-630b-4861-b058-cf58834340f0
2004-04-02 15:53:16 +00:00
cavazzon a3e02b9d06 Self interaction correction (SIC)
tentatively added to FPMD,
work still in progress


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@758 c92efa57-630b-4861-b058-cf58834340f0
2004-04-01 16:30:59 +00:00
sbraccia 2a99b6fdac 1) An experimental parallelization of NEB images has been implemented.
This required a deep modification of the parallelism in PWscf:
there are two new communicators (intra_image_comm and inter_image_comm) and the
existing "pool" communicators (intra_pool_comm and inter_pool_comm) are now vectors
of length given by the number of parallel images. #ifdef __PARA is no longer
needed because all "parallel" variables are always initialized for a serial run
and all parallel routines are, in the case of a serial run, dummy routines.
The wrappers to MPI routines used only by PWscf are in the PW/para.f90 file.
The others (mp_***) are in the Modules/mp.f90. All explicit referencies to mpif.h
should be replaced by an "USE parallel_include" (in a serial run parallel_include
is simply a dummy module).

2) The extrapolation of both potential and wavefunctions has been rewritten in
order to be smarter than before: on the basis of the required extrapolation
order, on the basis of the history and on the basis of which files are really
present on the disk, the algorithm chooses the extrapolation order.
All the algorithms in which ions are moved can use the extrapolation.

These are both unstable features: I need the help of everybody to test them.

C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@742 c92efa57-630b-4861-b058-cf58834340f0
2004-03-24 09:36:50 +00:00
sbraccia f94c73e766 Fixed a couple of bugs in the way default values were set (bugs inserted by me in a previous fix).
The same bug is present in the 2.0.1 version and in the patch-2-0p2.
This should be the ultimate fix for defaults-related problems.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@741 c92efa57-630b-4861-b058-cf58834340f0
2004-03-20 15:43:47 +00:00
sbraccia c9c711e147 Fixed a problem with startingpot default value in the case of nscf and phonon calculations.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@716 c92efa57-630b-4861-b058-cf58834340f0
2004-03-12 17:45:30 +00:00
sbraccia c609bca56b Fixed a bug spotted by Konstantin Kudin:
when a calculation was restarted wfc were always read by file
(no matter whether the startingwfc keyword was set or not).
The same was true for the potential.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@714 c92efa57-630b-4861-b058-cf58834340f0
2004-03-12 10:51:49 +00:00
degironc 34c7972a6d documentation about default value for etot_conv_thr and forc_conv_thr
was wrong in INPUT_PW.
more (100) energy-volume points allowed in ev.f


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@691 c92efa57-630b-4861-b058-cf58834340f0
2004-03-03 11:31:08 +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
sbraccia 0224c2a9ad wfc-extrapolation extended to all "relax" algorithms.
Molecular Dynamics based algorithm partially rewritten:
both standard and damped MD are performed with the velocity Verlet
scheme (with or without constrains).
Renata's subroutines are used only in the framework of variable
cell.
constrain.f90 file is no longer needed: cnstrains are set in the
input file (see CONSTRAINTS CARD) with the same input format used
in FPMD. An arbitrary number of constrains can be set.
In the case of constrained relaxation the damped MD
algorithm is used instead of BFGS.
When restart_mode = "from_scratch" many reastr files are removed
from the scratch directory.
Several other modifications here and there. (C.S.)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@675 c92efa57-630b-4861-b058-cf58834340f0
2004-02-26 11:50:36 +00:00
cavazzon 1e09b84177 some more checks when allocating large arrays,
to know why and where the program stops
when there is no more memory


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@599 c92efa57-630b-4861-b058-cf58834340f0
2004-02-15 10:15:06 +00:00
degironc ce9d9804c9 14 feb 2004 LDA+U: variable starting_ns_eigenvalue has been added in
order to allow to specify how to fill starting ns occupation
             matrices. Useful when the default choice take the wrong
             (or not desired) path.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@598 c92efa57-630b-4861-b058-cf58834340f0
2004-02-14 08:39:34 +00:00
giannozz 0b1a5c9fd8 Extensive module cleanup: DP moved from wrong place (parameters) to the
correct place (kinds); module "varie" replaced by "control_flags" (not
yet in pwcom, though) - many many files changed.
64-bit cpus (Opteron, maybe Itanium) should now work if __LINUX64 is defined


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@513 c92efa57-630b-4861-b058-cf58834340f0
2004-01-23 15:08:03 +00:00
sbraccia b59ad69456 Again some problems with ethr: the diagonalization threshold can now be read by the input file (diago_thr_init).
This value of ethr is overwritten (with a warning message) in the case of a phonon calculation (lphonon flag added). If diago_thr_init is not specified in the input file it is automatically set in setup.f90 (for example in the case of a nscf calculation ethr = tr2 / nelec).
I hope this policy is appropriate for all kind of calculations.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@511 c92efa57-630b-4861-b058-cf58834340f0
2004-01-23 09:50:00 +00:00
cavazzon df489b96bf NEB dynamics added to the FPMD code
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@480 c92efa57-630b-4861-b058-cf58834340f0
2004-01-13 09:49:29 +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
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
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
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
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
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
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 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