|
[Sponsors] | |||||
|
|
|
#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:
|
|||
|
|
|
|||
|
|
|
#2 |
|
Senior Member
Chris Sideroff
Join Date: Mar 2009
Location: Ottawa, ON, CAN
Posts: 154
Rep Power: 6 ![]() |
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 |
|
|
|
|
|
|
|
|
#3 |
|
Senior Member
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 345
Rep Power: 12 ![]() |
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 |
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Residuals in the log file | jml | OpenFOAM Programming & Development | 1 | July 20, 2012 08:13 |
| Working directory via command line | Luiz | CFX | 4 | March 6, 2011 20:02 |
| Version 15 on Mac OS X | gschaider | OpenFOAM Installation | 120 | December 2, 2009 10: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 20:51 |