the three pieces are in three different places: fsocket.f90 in Modules/,
sockets.c in clib/, run_driver in PW/src. Subroutine get_server_address might
actually be moved to module "command_line_options".
Version number updated to 6.beta (6.0.beta too long, 6.0bet? 6.0.b?)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12833 c92efa57-630b-4861-b058-cf58834340f0
Currently intercepted signals are SIGINT (caused by CTRL-C), SIGTERM (by default sent by PBS one minute before wall time expires), SIGUSR1, SIGUSR2
In order to compile this code add -D__TERMINATE_GRACEFULLY to MANUAL_DFLAGS in make.sys
This code partially conflicts with __TRAP_SIGUSR1, although they can both be compiled ony the last signal handler set will work. However they do the same thing, so __TRAP_SIGUSR1 could eventually be removed as it is less general.
You can change the delay between the alert and the end of allocated wall time depending on the queue system. Here are some examples:
* with PBS:
send the signal 120 seconds before the end:
#PBS -l signal=@120
send signal SIGUSR1 10 minutes before the end:
#PBS -l signal=SIGUSR1@600
you cand also send a signal manually with qsig, or send a signal and then stop:
qdel -W 120 jobid
will send SIGTERM, wait 2 minutes than force stop.
* with LodLeveler:
According to documentation, a SIGUSR1 or a SIGTERM is sent, depending if the job will be restarted or not; SIGKILL follows after 2 minutes. There is no mention if this delay can be changed.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@11024 c92efa57-630b-4861-b058-cf58834340f0
res = f_copy(source, dest)
returns:
0 : no error
-1 : cannot open source
-2 : cannot open dest
-3 : error while writing
-4 : disk full while writing
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@10111 c92efa57-630b-4861-b058-cf58834340f0
f_mkdir replaced with a more explicit f_mkdir_safe, f_mkdir is now a direct wrapper of the POSIX function.
f_mkdir_safe now checks if a directory exists and is writable before creating it, it will only return error if at the end the directory is not writable
Possible causes: file exists but is not a directory; exists and is a directory, but not owned by the user; broken filesystem; perverted umask
check_tempdir does not change directly, but it benefits from the changes in f_mkdir_safe
parallel_mkdir replaced with check_tempdir where it was necessary
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@10052 c92efa57-630b-4861-b058-cf58834340f0
restart mechanism (it is already rather broken anyway). Notable changes:
- variable "restart" is set to true if restart_mode='restart' on input,
independently upon the value of other variables
- the way tmp_dir and wfc_dir are created if not existent is simplified
- f_mkdir returns -1 if directory exists, 0 if created, 1 if error
- data-file.xml is no longer removed/renamed if restart_mode='from_scratch'.
I don't remember why it was done (although I remember there was a reason)
and cannot see why it should be done. If restarting is dictated by input
options, it shouldn't matter whether there is already a data-file.xml file
on disk or not
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@10031 c92efa57-630b-4861-b058-cf58834340f0
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
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