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

Difference between interpreted and compiled for DEFINE_ADJUST?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 29, 2009, 05:33
Default Difference between interpreted and compiled for DEFINE_ADJUST?
  #1
New Member
 
Join Date: Oct 2009
Posts: 1
Rep Power: 0
KatyaM is on a distinguished road
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

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!
KatyaM is offline   Reply With Quote

Old   November 3, 2009, 10:30
Default
  #2
Senior Member
 
Max
Join Date: Mar 2009
Posts: 133
Rep Power: 17
coglione is on a distinguished road
that is strange indeed, however try to use Message("test") instead of printf and see if this remedies the problem.

cheers
coglione is offline   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
UDF - Interpreted works and compiled doesn't AlwaysLearning FLUENT 9 October 30, 2018 01:52
DEFINE_CG_MOTION Interpreted or Compiled? Aussie Shane FLUENT 0 April 20, 2006 05:50
difference between udf compiled and udf interprete chandra sekhar FLUENT 2 April 11, 2006 01:04
compiled or interpreted udf Aireen FLUENT 11 August 25, 2005 01:54
compiled vs. interpreted UDF co2 FLUENT 1 January 22, 2004 15:19


All times are GMT -4. The time now is 01:45.