Re: gnuplotfortran bug?
- From: Madhusudan Singh <spammers-go-here@xxxxxxxxxxxx>
- Date: Sun, 09 Oct 2005 12:03:43 -0400
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.
.
- References:
- Re: gnuplotfortran bug?
- From: Matthias Moeller
- Re: gnuplotfortran bug?
- Prev by Date: Re: How portable are compiled modules?
- Next by Date: warning about redundant lines of code
- Previous by thread: Re: gnuplotfortran bug?
- Next by thread: warning about redundant lines of code
- Index(es):
Relevant Pages
|