Re: gnuplotfortran bug?



Matthias Moeller wrote:

> 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

You are welcome.

That was an equivalent fix. The long term fix will probably do something
similar, but elsewhere in the code.
.



Relevant Pages

  • [Un] Unangband 0.6.3 released
    ... Allow player to assemble friendly monsters and carry eggs to hatch ... Updated druidic spells to use new region code. ... Fix lockup bugs generating the Old Forest. ... Fix bug where items dropped by monster death would infinitely ...
    (rec.games.roguelike.announce)
  • please pull from the trivial tree
    ... Fix spelling in E1000_DISABLE_PACKET_SPLIT Kconfig description ... +- Finding patch that caused a bug ... +Always try the latest kernel from kernel.org and build from source. ... Length of input string in bytes ...
    (Linux-Kernel)
  • Subterrane v0.194 Alpha Released
    ... system, a character sheet, a ton of new spells, new monsters, item ... Added a character sheet that displays your character's ... Fix: Fixed a bug in the encumbrance calculation and status display ...
    (rec.games.roguelike.announce)
  • Re: Larkin, Power BASIC cannot be THAT good:
    ... If they did not produce a product with *adequate* quality then customers would not buy it and the company would not make a profit. ... it is to change a product in the field, and Y axis is bug density. ... but when the in service fix is almost free to the supplier then they will exploit that to their advantage. ... On-screen programming is pretty much type and ignite and see what ...
    (sci.electronics.design)
  • [Un] Unangband 0.6.2-wip7a has been released
    ... This release is mostly a bug fix revision to wip7, however, I was able to sneak ... The player only suffers a monster disease if the monster disease state isn't ... Fix up some animal speech sayings. ...
    (rec.games.roguelike.angband)