% MPIRUN MPIRUN MPI Process Run
% 
% Usage
% 
% This function is a simple example of how to use FreeMat and MPI
% to execute functions remotely.  More documentation on how to
% use this function will be written later...

% Copyright (c) 2002-2006 Samit Basu

function mpirun(toexec,ranks)
  for rank=ranks
     mpisend(toexec,rank,2840);
  end

