CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   UDF - Debugging techniques (http://www.cfd-online.com/Forums/fluent/43630-udf-debugging-techniques.html)

PK February 6, 2007 11:39

UDF - Debugging techniques
 
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

Bogdan February 6, 2007 13:49

Re: UDF - Debugging techniques
 
this is due to divide by 0. try to put information on console window with the Message macro

kk February 6, 2007 17:44

Re: UDF - Debugging techniques
 
Yes. Message macro is a powerful tool to debug UDF when unexpected results pop up.


All times are GMT -4. The time now is 13:39.