|
[Sponsors] |
mpirun--> output be written in both Log file and Terminal |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 19, 2011, 13:18 |
mpirun--> output be written in both Log file and Terminal
|
#1 | ||
Senior Member
|
Hi,
How can i use parallel run and have output not only in log file, also in terminal window. Only in log file: Quote:
Quote:
|
|||
January 19, 2011, 13:31 |
|
#2 |
Senior Member
Chris Sideroff
Join Date: Mar 2009
Location: Ottawa, ON, CAN
Posts: 434
Rep Power: 22 |
Option 1) Try 'tee'. E.g.
Code:
mpirun -np 8 icoFoam -parallel | tee log Option 2) Redirect the output to a log file like for your first command: Code:
mpirun -np 8 icoFoam -parallel > log & Code:
tail -f log Open an new screen: Code:
screen Code:
mpirun -np 8 icoFoam -parallel Reattach your screen to view your running job later: Code:
screen -r |
|
January 19, 2011, 13:37 |
|
#3 |
Senior Member
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 23 |
Isn't dumping it all to both screen AND file a bit unnecessary? Why not output it to log and use 'tail log' to look at the log file? Or if you're interested in looking at residuals use foamLog / pyFoam.
__________________
Laurence R. McGlashan :: Website |
|
June 23, 2017, 00:31 |
|
#5 |
New Member
Vitor Moura
Join Date: Dec 2016
Posts: 4
Rep Power: 10 |
I was lurking and saw this thread. I got a solution that might help others (since the post is old).
On a second terminal, use this command: Code:
watch -n(secondsinterval) tail -n(numberoflines) logfile |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Residuals in the log file | jml | OpenFOAM Programming & Development | 1 | July 20, 2012 09:13 |
Working directory via command line | Luiz | CFX | 4 | March 6, 2011 21:02 |
Version 15 on Mac OS X | gschaider | OpenFOAM Installation | 113 | December 2, 2009 11:23 |
Residuals in the log file | jml | OpenFOAM | 0 | October 29, 2009 07:05 |
Results saving in CFD | hawk | Main CFD Forum | 16 | July 21, 2005 21:51 |