change proc count to color for MPI_Comm_split

This commit is contained in:
Steven J. Plimpton
2018-08-02 14:47:20 -06:00
parent b2c75cc0b9
commit b2d1332d46
3 changed files with 32 additions and 34 deletions

View File

@ -91,12 +91,11 @@ Mpi/one mode of messaging:
Launch LAMMPS twice in a single mpirun command:
mpirun -np 2 lmp_mpi -mpi 2 -in in.message.client -v mode mpione -log log.client : -np 4 lmp_mpi -mpi 2 -in in.message.server -v mode mpione -log log.server
mpirun -np 2 lmp_mpi -mpi 0 -in in.message.client -v mode mpione -log log.client : -np 4 lmp_mpi -mpi 1 -in in.message.server -v mode mpione -log log.server
The two -np values determine how many procs the client and the server
run on.
A LAMMPS executable run in this manner must use the -mpi P
command-line option as their first option, where P is the number of
processors the first code in the mpirun command (client or server) is
running on.
A LAMMPS executable run in this manner must use the -mpi color
command-line option as their first option, where color is set to
one integer value for the 1st app, and another value for the 2nd app.