CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   Difference between interpreted and compiled for DEFINE_ADJUST? (http://www.cfd-online.com/Forums/fluent-udf/69628-difference-between-interpreted-compiled-define_adjust.html)

KatyaM October 29, 2009 05:33

Difference between interpreted and compiled for DEFINE_ADJUST?
 
Hello,

Does anybody have any ideas why DEFINE_ADJUST udf works perfectly as an interpreted udf and does not work as a complied.
Below there is an example.
Step by step reducing the complexity this is all that is left from my udf :).

***********************************
#include "udf.h"

DEFINE_ADJUST(my_adjust, d)
{
printf("Test");
}
************************************
So it is printing “Test” every iteration when used as a interpreted and does not print anything when being compiled :confused:

Is there any specifics with DEFINE_ADJUST when it is compiled?
It is a bit strange as for example DEFINE_EXECUTE_AT_END does printing (at the end of course) when it is compiled…Thanks in advance for any ides!

coglione November 3, 2009 10:30

that is strange indeed, however try to use Message("test") instead of printf and see if this remedies the problem.

cheers


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