|
[Sponsors] |
November 12, 2010, 09:56 |
Error:no function prototype
|
#1 |
New Member
Join Date: Nov 2010
Posts: 2
Rep Power: 0 |
Hi everyone,
When I tried to Interpreted my UDF FLUENT says: no function prototype Here is my udf: #include "udf.h" DEFINE_PROFILE (CO2_inlet, t, i) { real x[ND_ND]; real y; face_t f; begin_f_loop(f, t) { F_CENTROID (x, f, t); y=x[0] F_PROFILE (f, t, i)=y*y } end_f_loop (f, t) } Where am I making a mistake? Thanks in advance |
|
December 11, 2010, 10:38 |
|
#2 | |
Senior Member
Real Name :)
Join Date: Jan 2010
Location: United States
Posts: 192
Rep Power: 16 |
Cleo,
You're missing semicolons after the following lines Code:
y=x[0] F_PROFILE (f, t, i)=y*y Quote:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Compile problem | ivanyao | OpenFOAM Running, Solving & CFD | 1 | October 12, 2012 10:31 |
[blockMesh] BlockMesh FOAM warning | gaottino | OpenFOAM Meshing & Mesh Conversion | 7 | July 19, 2010 15:11 |
latest OpenFOAM-1.6.x from git failed to compile | phsieh2005 | OpenFOAM Bugs | 25 | February 9, 2010 05:37 |
Error with Wmake | skabilan | OpenFOAM Installation | 3 | July 28, 2009 01:35 |
[blockMesh] Axisymmetrical mesh | Rasmus Gjesing (Gjesing) | OpenFOAM Meshing & Mesh Conversion | 10 | April 2, 2007 15:00 |