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

UDF error: "warning: implicit declaration of function 'max'"

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 19, 2009, 10:18
Default UDF error: "warning: implicit declaration of function 'max'"
  #1
Member
 
Join Date: Apr 2009
Posts: 78
Rep Power: 17
tstorm is on a distinguished road
I'm having trouble with a UDF; I've been using max() in my source code for quite a while, but I added a new line and all of the sudden the code isn't working. The only warning in the log file is:

v2f.rot.cur.c: In function 'ke_adjust':
v2f-rot-cur.c.313: warning: implicit declaration of function 'max'

That line of code is:
term4 = MAX(2*pow(PI1,3)-12*pow(PI2,2),1.0e-6);

Does anyone know why I'd get this? Like I said, i'm using max() in other parts of the code, it's just this one line that makes it crash. Removing it makes the code work fine.
tstorm is offline   Reply With Quote

Old   May 19, 2009, 12:28
Default
  #2
Member
 
Join Date: Apr 2009
Posts: 78
Rep Power: 17
tstorm is on a distinguished road
Nevermind, problem solved.
tstorm 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
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 10:31
Error with Wmake skabilan OpenFOAM Installation 3 July 28, 2009 01:35
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 21:50
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 15:00


All times are GMT -4. The time now is 15:06.