Skip to content

Add doc info about how to run python script on subset of all ranks (i.e. rank 0 only) #422

@andeplane

Description

@andeplane

I'm running a python script from LAMMPS input script which does file handling. I want only rank 0 to execute it. I didn't find how to do this in the docs, but one solution was to load MPI4Py in the script and do the test on rank there.

If this is solution that you think will always work, it could be nice to mention this in the docs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions