CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   how to interrupt pyFoamPlotWatcher.py (http://www.cfd-online.com/Forums/openfoam-solving/118453-how-interrupt-pyfoamplotwatcher-py.html)

peettter May 28, 2013 04:18

how to interrupt pyFoamPlotWatcher.py
 
What is the most suitable way to interrupt the excellent pyFoam tool pyFoamPlotWatcher.py?

I do not want to interrupt the simulation, I just want to stop the watcher such that I again have access to the command line. When press CTRL+C, i do get the message "Watcher: keyboard interrupt", but nothing else happens afterwards.

thanks in advance

gschaider May 28, 2013 06:57

Quote:

Originally Posted by peettter (Post 430430)
What is the most suitable way to interrupt the excellent pyFoam tool pyFoamPlotWatcher.py?

I do not want to interrupt the simulation, I just want to stop the watcher such that I again have access to the command line. When press CTRL+C, i do get the message "Watcher: keyboard interrupt", but nothing else happens afterwards.

thanks in advance

Does this happen all the time or just at some times? The problem is that it happens only some times (for me) and is thus awkward to debug. The problem is that in order to do the plotting and other stuff smoothly the utility uses some multithreading and sometimes not all threads are terminated correctly.

The workaround is to suspend the watcher with CTRL-Z and then kill it with "kill %3" (or whatever is the number that was written by the shell). Alternatively you can of course kill with the PID you get with ps

peettter May 28, 2013 07:24

Thanks for the answer. The problem happens all the time (although I have used the tool only for one case so far)...

i will go ahead with the CTRL-Z workaround.


All times are GMT -4. The time now is 09:48.