private ParallelTask RecvTaskFromMaster() { var polarization = Mpi.RecvInt(Mpi.Master, (int)Tag.TaskData, Mpi.CommWorld); var frequency = Mpi.RecvDouble(Mpi.Master, (int)Tag.TaskData, Mpi.CommWorld); return(ParallelTask.NewFrequencyTask(frequency, polarization)); }
private int RecvCompleteCommandFromSlave() { int source; int command = Mpi.RecvInt(Mpi.AnySource, (int)Tag.Command, Mpi.CommWorld, out source); if (command == (int)Command.TaskIsComplete) { return(source); } throw new InvalidOperationException(); }
private Command RecvCommandFromMaster() { return((Command)Mpi.RecvInt(Mpi.Master, (int)Tag.Command, Mpi.CommWorld)); }