pyiron_base icon indicating copy to clipboard operation
pyiron_base copied to clipboard

How to pass command line arguments

Open samwaseda opened this issue 4 years ago • 3 comments

This one is closely related to this issue. Now I'd like to pass command line arguments to the executable. Currently, the LAMMPS executable contains:

#!/bin/bash
module load pyiron/dev
mpiexec -n $1 lmp_mpi -in control.inp

But I'd like to extend it to something like

#!/bin/bash
module load pyiron/dev
mpiexec -n $1 lmp_mpi -in control.inp ${@:2}

and from LammpsBase I'd love to pass custom arguments. Is there a possibility to do something like this?

samwaseda avatar Feb 15 '21 06:02 samwaseda

@samwaseda Currently it is not possible.

jan-janssen avatar Feb 15 '21 08:02 jan-janssen

@niklassiemer Was I supposed to do this one in the end or are you gonna do it? I can't remember what we agreed on at the pyiron meeting...

samwaseda avatar Feb 22 '21 07:02 samwaseda

I will take a shot at this, however, starting with next week.

niklassiemer avatar Feb 22 '21 10:02 niklassiemer