Re: gnuplotfortran bug?



Madhusudan Singh schrieb:
Matthias Möller wrote:


Hi,

I have combined my FE-code with gnuplot via the gnuplotfortran library.
I need "realtime" visualization of some statistical data, i.e.
convergence rate. Hence, in each simulation step I append the
convergence rate to a queue (array of size N) and plot (gnuplot_plot2d)
the contents of the queue each time N new entries have been inserted.

After some iterations gnuplotfortran exists with
GNUPlot-Fortran95 Interface Error Message :
     registernewdatafile :
                                too many temporary files

If I understand the manual correctly, I should use gnuplot_resetsession
each time I want to remove all previous tempfiles. But nevertheless this
does not help.

Perhaps you can give me some hints, how to solve this problem.

Thanks in advance,
Matthias Möller


Hello,

Yes, this is a bug. Please file it in the bug repository on sourceforge for
fixing. For now, you may use the following workaround :

In the file gnuplot_fortran95.f90, change the following line :

integer(i4b), parameter :: GP_MAX_TMP_FILES = 64

with

integer(i4b), parameter :: GP_MAX_TMP_FILES = <whatever number you think
your iterations will run to>

Recompile the library and relink.

Yes, this is a klutz, but the bug fix might take some time (in the upcoming
version of the library), and I do not want your work to be held up by that.

Hope this helps in the short term,

MS
Hello,

thank you for the fast reply. I "fixed" this bug by hacking in the gnuplotfortran library. In the subroutine gnuplot_resetsession, you reset ptr_gctrl%nplots=0 to zero. A added the line ptr_gctrl%ntmp=0 such that existing files are overwritten.

Matthias Möller
.



Relevant Pages

  • gnuplotfortran bug?
    ... I have combined my FE-code with gnuplot via the gnuplotfortran library. ... in each simulation step I append the convergence rate to a queue and plot the contents of the queue each time N new entries have been inserted. ...
    (comp.graphics.apps.gnuplot)
  • Re: Why does Thread class not support IDisposable?
    ... done towards your actual problem set. ... of threads via a queue, ... you've still got a bug using thread pool threads. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Bug in DBD::Oracle v 1.21 ?
    ... Unless this is not an exact copy, there appears to be a bug in your ... I am trying to write to an Oracle Stored procedure defined as: ... In perl ... ... For each execution, I get no errors and the queue is ...
    (perl.dbi.users)
  • Re: Memory leak in 1.9.2-p330?
    ... hopefully finding a bug in the code and not in Ruby:) ... The code pushes elements to a "time window" queue of 2 seconds. ... the max RSS size stays fixed when running with 1.8.7. ... All tests were done on Ruby compiled using rvm. ...
    (comp.lang.ruby)
  • Re: [PATCH 2/3] workqueue: not allow recursion run_workqueue
    ... works is not run orderly when recursion run_workqueue ... It's bug. ... So we should not allow workqueue trying to flush its own queue. ...
    (Linux-Kernel)