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

compilation error

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   June 14, 2000, 11:29
Default compilation error
  #1
M.A. Rakib
Guest
 
Posts: n/a
Why is the following UDF not being compiled as an interpreted UDF?

#include "udf.h" DEFINE_PROPERTY(cell_temperature,cell,thread) {

real temp = C_T(cell,thread);

face_t f;

real flow_time = RP_Get_Real("flow-time");

begin_f_loop (f,thread)

{

if (flow_time = 0)

temp = 300;

else

temp = 350;

return temp;

}

Error is:line 12: invalid expression for if : float
  Reply With Quote

 


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
[OpenFOAM] Native ParaView Reader Bugs tj22 ParaView 270 January 4, 2016 11:39
OpenFOAM install on Ubuntu Natty 11.04 bkubicek OpenFOAM 13 May 26, 2011 05:48
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08
Compiling problems with hello worldC fw407 OpenFOAM Installation 21 January 6, 2008 17:38
user defined function cfduser CFX 0 April 29, 2006 10:58


All times are GMT -4. The time now is 23:22.