LAMMPS WWW Site - LAMMPS Documentation - LAMMPS Mailing List Archives
[lammps-users] passing string arguments to write_dump
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lammps-users] passing string arguments to write_dump

From: Gideon Simpson <gideon.simpson@...24...>
Date: Thu, 21 Dec 2017 14:55:23 -0500

I’m trying to pass a string type variable to write_dump as
variable mystring string “file.out"
write_dump all atom ${mystring} 

This generates the error:

WARNING: Calling write_dump before a full system init. (../write_dump.cpp:81)
ERROR on proc 0: Cannot open dump file (../dump.cpp:551)
application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0
[unset]: write_line error; fd=-1 buf=:cmd=abort exitcode=1
system msg for write_line failure : Bad file descriptor

No such error is generated if I just do

write_dump all atom file.out