CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > FLUENT

memory deallocation problem in UDF

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   May 3, 2002, 00:28
Default memory deallocation problem in UDF
  #1
Hiranya
Guest
 
Posts: n/a
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
  Reply With Quote

Old   May 6, 2002, 00:20
Default Re: memory deallocation problem in UDF
  #2
Greg Perkins
Guest
 
Posts: n/a
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
  Reply With Quote

Old   May 6, 2002, 01:04
Default Re: memory deallocation problem in UDF
  #3
Hiranya
Guest
 
Posts: n/a
Thanks a lot Greg. You gave me a brilliant idea which, I could not get from Fluent people here.

Hiranya
  Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
A problem about 'printf' and 'Message' in UDF. LICH Fluent UDF and Scheme Programming 2 May 2, 2013 02:45
Memory storage problem IBM-machine, xlf compiler abelme Hardware 0 April 21, 2011 08:16
Help! Compiled UDF problem 4 Wave tank tutorial Shane FLUENT 1 September 3, 2010 02:32
the problem of UDF zzb FLUENT 2 April 5, 2006 05:36
User Defined Memory Problem Melih FLUENT 3 May 25, 2004 21:39


All times are GMT -4. The time now is 21:53.