dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #05148
Re: [Viper-dev] update display
On Thu, Jun 14, 2007 at 10:56:29AM +0200, Ola Skavhaug wrote:
> Garth N. Wells skrev den 14/06-2007 følgende:
> > Is it possible to update the viper plot window during a computation? For
> > the unsteady advection-diffusion demo, it's necessary to press 'q' after
> > each of the 40 time steps.
>
>
> In Python, this is very simple; simply calling update(u) should do the
> trick.
>
> In cpp, however, this cannot be done today. I think I can make it work, but I
> have to discuss this with Anders.
>
> Assuming that DOLFIN starts a viper process that does not die, we can
> communicate with it through files, right?
>
> Ola
How about a Python process is started and that process simply polls
the file continuously (but not too often) and calls update when the
file is changed? So then there's no communication. DOLFIN just writes
new data to the file and then the Python process will look for new
data.
/Anders
Follow ups
References