Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/08/11 15:52:16 (13 years ago)
Author:
svonolfe
Message:

Added MPIEngine view (#1542)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/MPI/HeuristicLab.MPIAlgorithmRunner/3.3/Program.cs

    r6394 r6398  
    6868        Console.WriteLine("Clients: " + clients);
    6969
    70         int updateInterval = 5000;
    71 
    7270        MPI.Communicator communicator = MPI.Communicator.world.Clone() as MPI.Communicator;
    7371
     
    119117        } else {
    120118          Program p = new Program();
    121           p.StartAlgorithm(updateInterval, communicator);
     119          p.StartAlgorithm(communicator);
    122120        }
    123121      }
    124122    }
    125123
    126     public void StartAlgorithm(int updateInterval, MPI.Communicator communicator) {
     124    public void StartAlgorithm(MPI.Communicator communicator) {
    127125      IAlgorithm alg = communicator.Receive<MPITransportWrapper<IAlgorithm>>(0, 0).InnerItem;
     126      int updateInterval = communicator.Receive<int>(0, 1);
    128127
    129128      Console.WriteLine("Starting algorithm...");
Note: See TracChangeset for help on using the changeset viewer.