CFD Online Discussion Forums

CFD Online Discussion Forums (
-   FLUENT (
-   -   UDF - Debugging techniques (

PK February 6, 2007 11:39

UDF - Debugging techniques

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 04:31.