pyiron_atomistics icon indicating copy to clipboard operation
pyiron_atomistics copied to clipboard

LAMMPS job scripts require a date attached to them

Open ligerzero-ai opened this issue 1 year ago • 4 comments

LAMMPS job scripts require a date attached to them in the filename; this is problematic for users trying to configure their own executables.

The code is here

The resolution: We agreed to purge the code supporting old versions of lammps (<2016 is 7 years ago) and put in a fail message that clearly states that parsing/running the stuff is unsupported, or at least document it somewhere.

### Tasks
- [ ] Purge the code that supports versions older than 2016
- [ ] (website) Document the fact that we only support LAMMPS>v2016
- [ ] raise an error when it tries to read stuff from those old versions

ligerzero-ai avatar Jul 03 '23 13:07 ligerzero-ai

When calling the lammps executable, its release date is always printed to the command line. Can't we use this to check the version?

mbruns91 avatar Jul 03 '23 14:07 mbruns91

When calling the lammps executable, its release date is always printed to the command line. Can't we use this to check the version?

The difficulty I see is that we would have to execute the LAMMPS command. Depending how the run_lammps_*.sh script is written - maybe it uses srun - this is not possible on the login node. So I am not sure how easy it is to leverage the version number of the executable.

jan-janssen avatar Jul 03 '23 14:07 jan-janssen

When calling the lammps executable, its release date is always printed to the command line. Can't we use this to check the version?

The difficulty I see is that we would have to execute the LAMMPS command. Depending how the run_lammps_*.sh script is written - maybe it uses srun - this is not possible on the login node. So I am not sure how easy it is to leverage the version number of the executable.

In addition, this is even worse when submitting to a remote HPC, where both versions might differ! However, I would really like to parse the real version of the executable in all cases ;) This version would then also be available for the post processing.

niklassiemer avatar Jul 03 '23 14:07 niklassiemer

In addition, this is even worse when submitting to a remote HPC, where both versions might differ! However, I would really like to parse the real version of the executable in all cases ;) This version would then also be available for the post processing.

We could do something like this as part of the installation tests. These should basically be consistency checks, if pyiron is configured correctly. I started with a first implementation in https://github.com/pyiron/pyiron_base/pull/1131 .

jan-janssen avatar Jul 03 '23 14:07 jan-janssen