Changeset 7205 for branches/MPI/HeuristicLab.Operators.MPISupport/3.3/MPIUnidirectionalRingMigrator.cs
- Timestamp:
- 12/19/11 11:08:33 (12 years ago)
- Location:
- branches/MPI/HeuristicLab.Operators.MPISupport/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/MPI/HeuristicLab.Operators.MPISupport/3.3
- Property svn:ignore
-
old new 3 3 obj 4 4 HeuristicLabOperatorsMPISupportPlugin.cs 5 Plugin.cs
-
- Property svn:ignore
-
branches/MPI/HeuristicLab.Operators.MPISupport/3.3/MPIUnidirectionalRingMigrator.cs
r6354 r7205 48 48 if (MPI.Communicator.world != null) { 49 49 int size = MPI.Communicator.world.Size; 50 if (size > 2) {50 if (size > 1) { 51 51 int i = MPI.Communicator.world.Rank; 52 52 IScope scope = ExecutionContext.Scope; … … 56 56 int recipent = i + 1; 57 57 if (recipent == size) 58 recipent = 1;58 recipent = 0; 59 59 60 60 Console.WriteLine("MIGRATE " + i + " TO " + recipent); … … 64 64 IScope immigrants = null; 65 65 int sender = i - 1; 66 if (sender < 1)66 if (sender < 0) 67 67 sender = size - 1; 68 68
Note: See TracChangeset
for help on using the changeset viewer.