A:
This is really a feature of your C and/or Fortran runtime system. For C,
consider
setbuf( stdout, (char *)0 );or
setvbuf( stdout, NULL, _IONBF, 0 );
A:
mpich has no built-in way to do this. In fact, it prides itself on
gathering the stdouts for you. You can do one of the following:
2. Write explicitly to files instead of to stdout (use
fprintf instead of printf, etc.). You can create the file name
from the process's rank. This is the most portable way.
set: Variable name must begin with a letter.or
upshot: syntax error at line 35: `(' unexpected
ln -s /usr/local/tk3.6/bin/wish /usr/local/bin/wishThen edit the upshot script to use this shorter name instead. This may require root access, depending on where you put the link.
2. Create a regular shell program containing the lines
#! /bin/sh /usr/local/tk3.6/bin/wish -f /usr/local/mpi/bin/upshot(with the appropriate names for both the wish and upshot executables).