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

UDF - Debugging techniques

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 6, 2007, 11: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, 13: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, 17: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


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
On debugging a Womersley Profile UDF david FLUENT 4 May 21, 2024 12:29
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 13:43
Debugging 3d parabolic udf david FLUENT 4 June 13, 2005 15:20


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