CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   UDF - C_NFACES (http://www.cfd-online.com/Forums/fluent/30648-udf-c_nfaces.html)

St.Schmidt December 10, 2002 19:49

UDF - C_NFACES
 
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

Markus December 11, 2002 04:11

Re: UDF - C_NFACES
 
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


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