Commit Graph

99 Commits

Author SHA1 Message Date
paulatto e4e7d4e226 Apparently the t_mode c structure is not so trivial to use, removed the possobility to specify an umask in mkdir and removed the interface to chmod
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@8584 c92efa57-630b-4861-b058-cf58834340f0
2012-02-06 15:03:21 +00:00
paulatto dd92bf644a Small fix because of mkdir returning -1 when directory already exists
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@8583 c92efa57-630b-4861-b058-cf58834340f0
2012-02-06 14:50:38 +00:00
giannozz d54950b4e7 Harmless memory leak: missing deallocation
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@8216 c92efa57-630b-4861-b058-cf58834340f0
2011-10-22 14:13:21 +00:00
giannozz b133da40d2 Added a few final deallocations - There should be no side effects, but
I haven't tried all codes calling clean_pw (e.g. phonon)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@8214 c92efa57-630b-4861-b058-cf58834340f0
2011-10-21 21:22:04 +00:00
marsamos b077c491e5 forgot to clean patches before commit
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@7786 c92efa57-630b-4861-b058-cf58834340f0
2011-05-17 09:39:46 +00:00
marsamos 051b652b95 deleted old GIPAW
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@7785 c92efa57-630b-4861-b058-cf58834340f0
2011-05-17 09:38:53 +00:00
ccavazzoni 4e1dba6525 - adding symlink function to be used with PLUMED and CP
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@7698 c92efa57-630b-4861-b058-cf58834340f0
2011-04-25 20:57:25 +00:00
marsamos 371ebb3859 add chdir to c_mkdir.c
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@7560 c92efa57-630b-4861-b058-cf58834340f0
2011-03-10 16:40:29 +00:00
marsamos 352f0611e5 c_mkdir modified. Now returns value of -1 if he do not manage
to create the dir and the dir does not exist, otherwise reurns value of 0.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@7443 c92efa57-630b-4861-b058-cf58834340f0
2011-01-27 10:08:28 +00:00
degironc b91c455bb2 clean-up of the md5_from_file routine
R.Sabatini (via SdG)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6995 c92efa57-630b-4861-b058-cf58834340f0
2010-08-19 15:30:58 +00:00
giannozz 3e16cf2b10 New routine calculating md5 seems to work properly
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6988 c92efa57-630b-4861-b058-cf58834340f0
2010-08-18 14:39:50 +00:00
marsamos c673310ef8 io part of parallelization on images moved to image_io_routines. First step
for NEB cleaning.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6974 c92efa57-630b-4861-b058-cf58834340f0
2010-08-17 15:39:53 +00:00
degironc b75413adf0 adding a few routines needed to calculate md5 checksum of a given file.
They are intended to be used to calculate (and echo on the output) the
md5 checksum of the peudopotential files in order to be able to verify their
identity/integrity when comparing calculations performed at different
times or on different machines

R. Sabatini - S. de Gironcoli


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6962 c92efa57-630b-4861-b058-cf58834340f0
2010-08-13 10:50:08 +00:00
giannozz 4934b395ba Added signal processing by RdM. Disabled by default, enabled by option
-D__TRAP_SIGUSR1 or using "./configure --enable-signals"


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6370 c92efa57-630b-4861-b058-cf58834340f0
2010-02-08 19:25:34 +00:00
giannozz 881fac18e1 Removed a few comments in C++ style (//). Some old compilers might complain.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@6318 c92efa57-630b-4861-b058-cf58834340f0
2010-01-26 14:06:59 +00:00
giannozz 04a06fec64 memstat.c modified to be compliant with C standard (picky compilers may complain)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5998 c92efa57-630b-4861-b058-cf58834340f0
2009-10-10 16:36:49 +00:00
giannozz 235929fb79 More of the same...
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5796 c92efa57-630b-4861-b058-cf58834340f0
2009-08-01 20:55:14 +00:00
dalcorso 37fc952f13 ctrl+M removed.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5544 c92efa57-630b-4861-b058-cf58834340f0
2009-05-01 13:41:10 +00:00
kokalj 721f0716d5 Fixing an overflow bug:
for(i=0;i-len-1;i++) strHelper[i]=' '

This was probably a typo and i<len-1 was meant.
This overflow bug had a very severe consequence on one of my
machine: all negative values were parsed as being positive.

Adding a check that a maximum size of len is 256, and also the length
of strHelper/strError strings changed to 257, or the last char in
strExpression was eaten. For more detailes see the file.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5517 c92efa57-630b-4861-b058-cf58834340f0
2009-04-10 11:20:32 +00:00
ccavazzoni 8a2f375337 - char array (string) substituted with int array, name of function
modified with the addition of _int suffix


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5503 c92efa57-630b-4861-b058-cf58834340f0
2009-04-05 07:51:20 +00:00
ccavazzoni 98c33296cb - few more drivers useful in the MPI+OpenMP parallel FFT
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5488 c92efa57-630b-4861-b058-cf58834340f0
2009-03-31 14:49:54 +00:00
giannozz 3675de688a #ifdef __INTEL moved inside clib/stack.c .The C code used to be compiled
in all cases, causing problems in at least one obscure software configuration


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5482 c92efa57-630b-4861-b058-cf58834340f0
2009-03-25 15:11:41 +00:00
giannozz 682e063081 Minor changes for Sun Sparcs
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5263 c92efa57-630b-4861-b058-cf58834340f0
2008-11-04 11:04:30 +00:00
giannozz 0b8cbf3b75 Configure modified so that it recognizes FFTW3 and FFT libraries from ACML.
Mostly untested. Support for external fftw v.2 removed.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5228 c92efa57-630b-4861-b058-cf58834340f0
2008-10-18 14:40:51 +00:00
giannozz 8cd13cb00b Common "symme" moved to a separate file; some cleanup. Symmetries of the
Bravais lattice are written (but not yet read nor used) to the xml file


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5125 c92efa57-630b-4861-b058-cf58834340f0
2008-08-22 15:53:34 +00:00
paulatto 31b7791b9a Simple espressions parser re-inroduced in code for atomic positions and
occupations. Added two very simple tests to check it. Not yet implemented
for NEB path selection.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5060 c92efa57-630b-4861-b058-cf58834340f0
2008-07-22 12:40:51 +00:00
giannozz c946fc6b2d Changed according to da Silva's suggestions
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5044 c92efa57-630b-4861-b058-cf58834340f0
2008-07-06 20:11:10 +00:00
giannozz d861e85d7e Incorrect definition of function eval_infix (in)fixed:
F77_FUNC (func,FUNC) for functions without underscore(s) in name
F77_FUNC_(f_nc,F_NC) for functions with    underscore(s) in name


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5043 c92efa57-630b-4861-b058-cf58834340f0
2008-07-06 19:52:39 +00:00
paulatto e93f86fcac reverting smal fix...
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5042 c92efa57-630b-4861-b058-cf58834340f0
2008-07-03 15:09:19 +00:00
paulatto fee201dd0a Mini fix.
LP


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5041 c92efa57-630b-4861-b058-cf58834340f0
2008-07-03 14:47:16 +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 bea61e7dc2 Support for Solaris PC with Sun compiler added
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4631 c92efa57-630b-4861-b058-cf58834340f0
2008-01-16 15:23:43 +00:00
cavazzon 4106a91276 - added a more informative warning message
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4618 c92efa57-630b-4861-b058-cf58834340f0
2008-01-12 14:24:36 +00:00
giannozz 23a71a493a Small changes
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4532 c92efa57-630b-4861-b058-cf58834340f0
2007-12-18 21:30:55 +00:00
giannozz 856f7a5714 Yet another attempt towards a working memory report - not sure it works
now but for sure it was not working before on AIX


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@4009 c92efa57-630b-4861-b058-cf58834340f0
2007-07-09 17:02:35 +00:00
giannozz 56175fab69 Dependencies updated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3998 c92efa57-630b-4861-b058-cf58834340f0
2007-07-05 11:08:31 +00:00
giannozz 6b1373a372 Workaround for mysterious crashes with intel compilers finally (maybe) found.
Apparently the reason is insufficient stack size, but it may not be sufficient
to use command "limits" o "ulimit", because the stack size seems to be reset
either by queueing systems or by the code itself. A C routine that removes
stack limits has been added and is called at the beginning of the run.

Fixed format error in printout of parameters for Berendsen thermostat (Eduardo)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3954 c92efa57-630b-4861-b058-cf58834340f0
2007-06-04 15:01:14 +00:00
ceresoli 35bdbe290e Better(?) memory statistics. Unfortunately every libc fills in different
struct mallinfo fields. Tested in Linux and AIX. (D.C.)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3797 c92efa57-630b-4861-b058-cf58834340f0
2007-02-21 09:15:19 +00:00
giannozz 4708082eb9 Added function "c_rename" to rename a file - not sure how portable
it is and whether it is really useful


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3741 c92efa57-630b-4861-b058-cf58834340f0
2007-02-02 17:53:13 +00:00
giannozz 6c2b6abe1c Axel's patch for times - should hopefully work on all machines
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3584 c92efa57-630b-4861-b058-cf58834340f0
2006-11-29 09:05:35 +00:00
giannozz 853f5ec075 Patches by Axel for Cray XT3 weirdness
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3514 c92efa57-630b-4861-b058-cf58834340f0
2006-11-06 15:21:11 +00:00
giannozz aab0e4a65b More preprocessing and installation cleanup (or maybe messup)
The include file for C routines is generated by configure,
in a way that should be very general and robust.  Beware:
you need to re-run configure to regenerate include/c_defs.h


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3423 c92efa57-630b-4861-b058-cf58834340f0
2006-09-29 15:25:53 +00:00
giannozz 1c2a940e58 oops, lost two functions...documentation updated
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3417 c92efa57-630b-4861-b058-cf58834340f0
2006-09-22 15:49:32 +00:00
giannozz 18f702a8c1 Mangling of C routines to be called by fortran is done by the "standard"
F77_FUNC and F77_FUNC_ preprocessor macro . It is easy now to select the
good functions with "configure" (it is still done with -D flags though)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3416 c92efa57-630b-4861-b058-cf58834340f0
2006-09-22 14:59:25 +00:00
giannozz 43e4e5d38d There is no reason to generate dependencies every time. Files
make.depend are now in the CVS and shouldn't be updated unless
needed. Configure no longer runs makedeps.sh. Type 'make depend'
to regenerate dependencies.

Remove all */make.depend files before updating!


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3409 c92efa57-630b-4861-b058-cf58834340f0
2006-09-21 17:49:53 +00:00
giannozz 10abc1bd3e Timing functions for Mac and other machines that do not define CLK_TCK
Preprocessing flag __HAVE_MALLINFO, set by configure, flags machines
having the "mallinfo" structure used by the memory estimator
config.h removed: it wasn't used anywhere


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3402 c92efa57-630b-4861-b058-cf58834340f0
2006-09-20 10:40:34 +00:00
cavazzon fafe34f06b - fixed a configuration problem with pgi compiler and preprocessor
- elapsed_seconds substituted by cclock
- fortran version of scnds substituted by c version.

now time information is taken only through:
cclock   for the real wall clock time
scnds    for cpu time of the running process
defined in file clib/cptimer.c


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3400 c92efa57-630b-4861-b058-cf58834340f0
2006-09-19 17:00:18 +00:00
giannozz 65988cde08 Minor changes related to Mac OS-X support - hopefully no more need to
locate malloc.h and to define __MAC


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3379 c92efa57-630b-4861-b058-cf58834340f0
2006-09-12 16:17:24 +00:00
cavazzon 6748616e7c - allocated memory statistic using mallinfo. Mallinfo seems the most
used function to get the allocated memory by a process.
  Is available on Linux and AIX, and possibly on many other systems.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@3207 c92efa57-630b-4861-b058-cf58834340f0
2006-06-26 07:50:31 +00:00
giannozz 0032789b2f Only the __AIX case is kept (it was the only nonobsolete working one)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@2972 c92efa57-630b-4861-b058-cf58834340f0
2006-03-28 15:39:28 +00:00