Log command problem

Axel,

I’ve just tried your newly introduced log command in the input script:

log log.lammps append

but the old log is still overwritten instead of being appended. What’s wrong with that syntax?

Best regards,

Vitaly

Axel,

I’ve just tried your newly introduced log command in the input script:

log log.lammps append

but the old log is still overwritten instead of being appended. What’s wrong
with that syntax?

nothing. it works for me. check this out:

[[email protected]... tmp]$ cat in.append
log test1.log
print "test 1"
log test2.log
print "test 2"
log none
print "test 3"
log test1.log append
print "test 4"
log none
shell cat test1.log
shell cat test2.log

[[email protected]... tmp]$ ~/compile/lammps-icms/src/lmp_serial -echo screen
-log none -in in.append
LAMMPS (30 Sep 2013-ICMS)
log test1.log
print "test 1"
test 1
log test2.log
print "test 2"
test 2
log none
print "test 3"
test 3
log test1.log append
print "test 4"
test 4
log none
shell cat test1.log
test 1
test 4
shell cat test2.log
test 2

axel.

Hmm, in my case it doesn't matter, whether the log command is the very
first one in the script or not, the Lammps timestamp with the version
number overwrites previous log. Two strings below the version number it
writes out the log command itself with the append keyword:

LAMMPS (30 Sep 2013)
USER-CUDA mode is enabled (../lammps.cpp:401)
  using 1 OpenMP thread(s) per MPI task
# General parameters
log log.lammps append
package cuda gpu/node 1 dotiming
package omp
ERROR: Illegal package omp command (../fix_omp.cpp:73)

Anyhow the log is always overwritten

-Vitaly

That is because you open log.lammps without append implicitly. You need to use -log none on the command line.

Axel.

Got it, thanks!