Closed stefanbringuier closed 3 months ago
Sounds reasonable, do you want to open a PR for this?
Sounds reasonable, do you want to open a PR for this?
Yep, will work on it.
Sounds reasonable, do you want to open a PR for this?
Yep, will work on it.
Tried to give this a try but seems there is some async behavior with LMP()
, or at least I think this is the issue since its spawning a lammps instance for each command before it fails:
Note the same example works fine when using the standard approach, ex, command(lmp,lammps-input-line)
. The digest(example)
function call just formats a string with into a Vector{String}
and removes \n
and \t
etc.
command
can now parse multiline statements. Maybe that's enough?
Does anyone have some thoughts on a macro to wrap lammps input script lines with
command(lmp,line)
, something along the lines of:In particular, say we already have an input script we want to use, so we read it in and wrap it with the macro and then add additional commands when that are needed.