CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   memory deallocation problem in UDF (https://www.cfd-online.com/Forums/fluent/29708-memory-deallocation-problem-udf.html)

Hiranya May 3, 2002 00:28

memory deallocation problem in UDF
 
I have a global link list in an UDF file that is filled with data in the starting iteration. I want the data in the link list in every subsequent iteration. I can allocate the memory for the link list, but I did not find a way to free the memory. Could any one tell me how can I free the memory just before tha last iteration in a run.

Thanks in advance, Hiranya

Greg Perkins May 6, 2002 00:20

Re: memory deallocation problem in UDF
 
Probably easier to do the deallocation inside a DEFINE_ON_DEMAND udf which you run after convergence.

Its not possible I believe to know when you're about to converge!

Greg

Hiranya May 6, 2002 01:04

Re: memory deallocation problem in UDF
 
Thanks a lot Greg. You gave me a brilliant idea which, I could not get from Fluent people here.

Hiranya


All times are GMT -4. The time now is 12:01.