CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   error: udf_names.c ?? (http://www.cfd-online.com/Forums/fluent-udf/108687-error-udf_names-c.html)

Cecilie October 30, 2012 12:19

error: udf_names.c ??
 
Hi all,

I keep having this error, while trying to compile a small UDF in FLUENT:

udf_names.c
udf_names.c(7) : error C2059: syntax error : '}'
udf_names.c(8) : warning C4034: sizeof returns 0

Can you please help me ? Below is the small code:
__________________________________________________ ____
#include"udf.h"

enum

{
MASS_ACCRETED,
NUM_OF_USED_UDM
};

/* Accretion model - mass flow
24 october 2012
name = accreout */

DEFINE_DPM_EROSION(accreout, p, t, f, normal, alpha, Vmag, Mdot)
{
F_UDMI(f,t,MASS_ACCRETED) += Mdot;
return;
}

___________________________________________
Thanks :)


All times are GMT -4. The time now is 04:46.