Output goes to weird places when logfiles are specified because of Write(6,*) #325
Labels
errors and messages
Essentially: Issues with Rayleigh's print statements, including errors and warnings.
@feathern
In testing multirun mode, I am noticing that although most output from Rayleigh is handled through
stdout%print()
a fair amount is handled through
Write(6, *)
Normally, this will all go to the same place (terminal screen) so if someone just redirects the screen output, say,
mpiexec 2048 ./rayleigh.opt > logfile
it will be fine. However, if a logfile is specified (which we must do in multirun mode),
stdout % print
will go to the logfile, and
write(6, *)
will go to the "screen" which is likely the parent directory.
Unless I am missing something, it seems like Write(6, *) should never be used in the code, only stdout%print ?
Doing a grep looks like these write(6,*) statements appear 49 times. Happy to make a pull request fixing this (if I haven't missed anything) but it will change quite a few files. Can also wait until version 1.0
The text was updated successfully, but these errors were encountered: