|
[Sponsors] |
December 10, 2002, 18:49 |
UDF - C_NFACES
|
#1 |
Guest
Posts: n/a
|
Dear All,
In a routine DEFINE_SOURCE(name,c,t,dS,eqn) I want to get the number of cell faces by setting int n = C_NFACES(c,t); /* it should be integer */ to run a c_face_loop(c, t, n) {...} My problem is that I get an error message from the compiler. I am not v/good at C as you can imagine by my question. I have tried to put C_NFACES(c,t) directly into the loop header c_face_loop(c, t, C_NFACES(c,t)) - but with no success. Any help appreciated. Stefan |
|
December 11, 2002, 03:11 |
Re: UDF - C_NFACES
|
#2 |
Guest
Posts: n/a
|
Hi Stefan,
Most likely your problem is that several macros simply do not work in interpreted mode, among them is C_NFACES. The workaround is to use the compiled mode which definitely works. best regards, markus |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dynamic Mesh UDF | Qureshi | FLUENT | 7 | March 23, 2017 07:37 |
UDF parallel error: chip-exec: function not found????? | shankara.2 | Fluent UDF and Scheme Programming | 1 | January 16, 2012 22:14 |
How to add a UDF to a compiled UDF library | kim | FLUENT | 3 | October 26, 2011 21:38 |
UDF...UDF...UDF...UDF | Luc SEMINEL | FLUENT | 0 | November 25, 2002 04:03 |
UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 04:01 |