Skip to content

Commit

Permalink
Refs #4976 Broadcast is not always from rank 0
Browse files Browse the repository at this point in the history
  • Loading branch information
VickieLynch committed Mar 22, 2012
1 parent 9b70121 commit cf9ecbb
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ DECLARE_ALGORITHM(BroadcastWorkspace)
void BroadcastWorkspace::init()
{
// Input is optional - only the 'BroadcasterRank' process should provide an input workspace
if(mpi::communicator().rank())
declareProperty(new WorkspaceProperty<>("InputWorkspace","",Direction::Input,PropertyMode::Optional));
else
declareProperty(new WorkspaceProperty<>("InputWorkspace","",Direction::Input,PropertyMode::Mandatory));
declareProperty(new WorkspaceProperty<>("InputWorkspace","",Direction::Input,PropertyMode::Optional));
declareProperty(new WorkspaceProperty<>("OutputWorkspace","",Direction::Output));

declareProperty("BroadcasterRank",0, boost::make_shared<BoundedValidator<int>>(0,mpi::communicator().size()-1));
Expand Down

0 comments on commit cf9ecbb

Please sign in to comment.