I have been using termios.h to detect a keypress and then deal
with it inside of a loop and when porting it over to mpi, and using
mpirun it now will wait and the loop is paused waiting for a carrige
return checking for a keypress.
I then tried ncurses with nodelay() function and the loop continues
but still requires a return before it deals with the input inside of
mpirun. Where alone it would respond to a keypress without a return.
Both methods above are contained within if( rank == 0 ) { } and in a
for(;;)
And I am using svn checkout of OpenMPI.
I would like to be able to press a key within a loop in main to
change values and exit the loop. Very easy with both methods above.
But mpirun seems to alter the behavior.
Do any of you know of a method to acomplish this within an mpi
application. I want to loop forever and respong to keyboard input when it
comes in or shortly there after.
Ross