Skip to content

Commit

Permalink
make sure example does not send uninitialized values through MPI to g…
Browse files Browse the repository at this point in the history
…et caught by valgrind
  • Loading branch information
BarrySmith committed Feb 13, 2014
1 parent 2da8f66 commit 4ff6614
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tao/leastsquares/examples/tutorials/chwirut2f.F
Expand Up @@ -460,6 +460,7 @@ subroutine TaskWorker(ierr)
integer status(MPI_STATUS_SIZE)
tag = IDLE_TAG
f = 0.0
! Send check-in message to master
call MPI_Send(f,1,MPIU_SCALAR,0,IDLE_TAG,PETSC_COMM_WORLD,ierr)
CHKERRQ(ierr)
Expand Down

0 comments on commit 4ff6614

Please sign in to comment.