Commit Graph

27 Commits

Author SHA1 Message Date
giannozz a3a39fc998 Cleanup: uniform spelling for "Quantum ESPRESSO", removal of f_defs.h,
CMPLX is explicitly typed, blas/lapack are lowercase (consistently with
the convention: FORTRAN COMMANDS = uppercase, all the rest lowercase)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5789 c92efa57-630b-4861-b058-cf58834340f0
2009-08-01 14:26:46 +00:00
paulatto d7ee6d1899 Adding a simple mathematical expression parser written in C and the necessary
wrapper and functions to allow the input of atomic coordinates.
The author of the parser is Vincenzo Lo Cicero who I wish to thank.

PLEASE READ THIS PARAGRAPH:
fortran strings and c strings are different in very subtle ways, thus I am
far from sure that it will work with all compiler. Please try this patch
on you system and report to me if it's giving strange problems!

The parser understands only +, -, *, / and ^ (power), which is more than
enough for out purposes.

At the moment a single card must not contain spaces, e.g. the following line
is correct:
 Si 1/4 1/4 1/4
while the following would return an error:
 Si 1 / 4  1 / 4   1 / 4
this can be improved, but I have not time now.

Additional colums are NOT parsed.

LICENCE:
The parser is copyrighted by Vincenzo Lo Cicero, originally released
under the GPL v3 licence has been relicenced under the GPL v2 in order
to be included in the Quantum-ESPRESSO code.

The author permission has been expressed in the following way by email:
``Per me va bene. Potete includere il codice nel vostro
software sotto licenza GPLv2.''


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5040 c92efa57-630b-4861-b058-cf58834340f0
2008-07-03 14:30:52 +00:00
giannozz f577757c85 Changes by Andrea Ferretti to make the qexml format more rational:
version number added to the file, so that we have a way to deal with
incompatible changes in the future; miscellaneous tags put into a
CONTROL files; field IONS made uniform with the rest of the file;
rationalization of the names of tag STARTING_MAG (now MAGNETIZATION_INIT),
uniform tag structure (as for IONS above). Some of these changes are
incompatible with the previous format, but it will still possible to
read files from previous versions, though. Only third-party software
reading the qexml format may be affected, but it is unlikely that there
is any (in addition to those by AF)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4774 c92efa57-630b-4861-b058-cf58834340f0
2008-04-04 14:34:52 +00:00
giannozz 0792ed8d25 Call to infomsg simplified, removed the absurd "error -1"
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3987 c92efa57-630b-4861-b058-cf58834340f0
2007-06-26 16:46:01 +00:00
giannozz 2fb4a947a1 Support for Mac OS-X (Intel) with g95 added in configure
re-aligned configure and configure.ac
fixed minor format glitches signaled by g95
added __XLF preprocessing option
updated documentation and Make.*, removed obsolete Make.ibm*


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3374 c92efa57-630b-4861-b058-cf58834340f0
2006-09-11 12:56:12 +00:00
cavazzon 26987d2472 - init_pool moved to mp_global (it is now used by CP too)
- further changes to support image parallelization in CP
- bug fix in XML save file for wave functions / charge density / pools .
  In siple case and combinations of procs and polls now it seem to work.
  More testing is required


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2963 c92efa57-630b-4861-b058-cf58834340f0
2006-03-26 17:14:44 +00:00
giannozz 0c7b6e2902 __AIX (IBM machines with essl) split into __AIX and __ESSL
Beware: configure not yet updated


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2924 c92efa57-630b-4861-b058-cf58834340f0
2006-03-16 18:04:33 +00:00
giannozz 3831a5e7cf - compilation problem in plan_avg fixed
- add check on end-of-file when reading k-points. A mistake in the
  specification of k-points could lead to a strange crash with no
  apparent reason


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2756 c92efa57-630b-4861-b058-cf58834340f0
2006-02-02 15:20:26 +00:00
giannozz 8eda231bbb - Variable cell: use Cesar Da Silva's version of the damping algorithm
(he claims it is more tested); documentation updated (sort of)
- routines find_free_unit, delete_if_present, moved from 'parser'
  to 'io_files' (it is a more natural place)
- routines int_to_char moved from 'parser' to flib/ (it is quite
  unrelated with the rest of the module)
- routine trimcheck moved from flib/ to 'io_files' (more natural place)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2753 c92efa57-630b-4861-b058-cf58834340f0
2006-02-01 17:56:16 +00:00
sbraccia 4bb69b1153 Bug fix in delete_if_present: only ionode has to remove the file.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2181 c92efa57-630b-4861-b058-cf58834340f0
2005-09-15 15:14:58 +00:00
targacept 9f487bd7ad Adding Autopilot Feature Suite
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2122 c92efa57-630b-4861-b058-cf58834340f0
2005-08-24 14:23:09 +00:00
giannozz d450333ead Various fixes for Mac by AK
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1797 c92efa57-630b-4861-b058-cf58834340f0
2005-04-13 13:36:49 +00:00
degironc 536ea2840f comments (lines beginning by "#") are allowed while reading an input card
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1795 c92efa57-630b-4861-b058-cf58834340f0
2005-04-13 10:44:37 +00:00
sbraccia f22df81366 Mixing scheme modified in order to conserve the total charge.
The charge is renormalized at nelec after it has been generated from atomic
densities. It is also renormalized to nelec after the extrapolation procedure.
Added a further check in electrons. rho2zeta modified so that the forward and
backward procedure are exactly one the opposite of the other. Fixed a bug in
update_pot : the wavefinctions were not extrapolated in parallel runs.
Global cleanup of these routines: level 1 blas removed. C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1519 c92efa57-630b-4861-b058-cf58834340f0
2004-12-21 15:28:01 +00:00
sbraccia 1da8f302e2 Fixed the problem spotted by Aaron (PW forum)
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@1366 c92efa57-630b-4861-b058-cf58834340f0
2004-10-01 15:56:21 +00:00
giannozz 5563bfdc66 Functions "capital" and "matches" taken out of module "parser"
and added to flib; duplicated routines removed. Manual update.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@900 c92efa57-630b-4861-b058-cf58834340f0
2004-05-19 16:56:56 +00:00
giannozz 9a81ea6915 Bad format, doc update
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@863 c92efa57-630b-4861-b058-cf58834340f0
2004-05-07 16:47:13 +00:00
sbraccia deadd3e6ef Fixed a bug highlighted by P.G. with ifor.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@754 c92efa57-630b-4861-b058-cf58834340f0
2004-03-29 09:34:14 +00:00
sbraccia 28bfb48b47 - General cleanup.
- NEB: 1) units for activation energy and errors are printed in the output file
       2) elastic constants are automatically rescaled so that "spring"-forces have the
          same magnitude as "external-potential"-forces: this permits a larger time step
	  in NEB optimizations (the default will be changed later)
       3) fixed a bug in the way istep and istep_neb were set
- parser: the subroutine delete_if_present has a logical optional input argument to require a
          warning message when a file is removed
- check_stop: the function check_stop_now has an option input argument to assign an output unit
              different from stdout
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@753 c92efa57-630b-4861-b058-cf58834340f0
2004-03-29 08:42:37 +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
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
sbraccia 424e28d6c1 Function int_to_char moved from miscellany to parser.
C.S.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@546 c92efa57-630b-4861-b058-cf58834340f0
2004-02-02 17:25:03 +00:00
cavazzon 5260d7731d function cpitoa replaced by int_to_char everywhere
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@533 c92efa57-630b-4861-b058-cf58834340f0
2004-01-27 16:57:58 +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 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
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 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