Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define MD engine run command in Python #92

Open
mimischi opened this issue Sep 25, 2018 · 0 comments
Open

Define MD engine run command in Python #92

mimischi opened this issue Sep 25, 2018 · 0 comments

Comments

@mimischi
Copy link
Contributor

A user currently writes the whole run command in their job script by hand. We just replace a few variables.

# Run {{ module }} for {{ time }} minutes
{%- if mdengine == "gromacs" %}
srun gmx_mpi mdrun -v -maxh {{ time / 60 }} -deffnm {{ name }}
{%- elif mdengine == "namd" %}
srun namd2 {{ name }}.namd
{%- endif %}

It would probably be of greater use to generate this whole line in Python and just replace one variable, e.g., {{ hpc_command }} in the job script. This would help with later features like parameterization of HPC/MD engine specific settings. Also we would not need all those if-clauses ({%- if mdengine == "gromacs" %}), when we add more MD engines.

CC @kain88-de @MSiggel: I would suggest to push this feature to the future (3.0?), because we would be massively changing the user-facing interface again. I am not sure if we can fully flesh out the details and finish it before we release 2.0. Or maybe we introduce it in 2.x and deprecate old variables in 3.0 (if we need to deprecate them at all).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant