CFD Online Logo CFD Online URL
Home > Forums > FLUENT

UDF - Debugging techniques

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

LinkBack Thread Tools Display Modes
Old   February 6, 2007, 11:39
Default UDF - Debugging techniques
Posts: n/a

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, 13:49
Default Re: UDF - Debugging techniques
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, 17:44
Default Re: UDF - Debugging techniques
Posts: n/a
Yes. Message macro is a powerful tool to debug UDF when unexpected results pop up.
  Reply With Quote


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
On debugging a Womersley Profile UDF david FLUENT 3 August 7, 2017 03:49
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
help debugging Beam deflection UDF josik_1982 Fluent UDF and Scheme Programming 0 December 19, 2010 18: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 11:39.