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

UDF - Debugging techniques

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 6, 2007, 10:39
Default UDF - Debugging techniques
  #1
PK
Guest
 
Posts: n/a
Hi,

I would like to know which techniques to use to do a proper dubugging of my UDF (with unix or Windows) ; In my code I have several variables and during the execution of the case I got this kind of msg : "Error > (greater than ) : Invalid argument [2] : wrong type [not a number]" ; How to know which variable makes this prob in my UDF ?.

Thanks for any kind of help PK
  Reply With Quote

Old   February 6, 2007, 12:49
Default Re: UDF - Debugging techniques
  #2
Bogdan
Guest
 
Posts: n/a
this is due to divide by 0. try to put information on console window with the Message macro
  Reply With Quote

Old   February 6, 2007, 16:44
Default Re: UDF - Debugging techniques
  #3
kk
Guest
 
Posts: n/a
Yes. Message macro is a powerful tool to debug UDF when unexpected results pop up.
  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
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 22:14
On debugging a Womersley Profile UDF david FLUENT 1 December 2, 2011 04:56
help debugging Beam deflection UDF josik_1982 Fluent UDF and Scheme Programming 0 December 19, 2010 17:36
UDF debugging david FLUENT 1 August 11, 2005 12:43
Debugging 3d parabolic udf david FLUENT 4 June 13, 2005 14:20


All times are GMT -4. The time now is 14:04.