dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #05151
Re: [Viper-dev] update display
Anders Logg skrev den 14/06-2007 følgende:
> On Thu, Jun 14, 2007 at 11:09:23AM +0200, Ola Skavhaug wrote:
> > Anders Logg skrev den 14/06-2007 følgende:
> >
> > [snip]
> >
> > > 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
> >
> > Something like that. I was thinking of an event loop where a buffer is
> > searched for a new filename. If so, update the plot, else, continue vtk
> > event-loop.
> >
> > Ola
>
> But how is the buffer communicated?
The buffer could be a file or a pipe. If DOLFIN opens a file and appends
filenames to it, viper can watch the file and pull filenames.
Ola
> /Anders
Follow ups
References