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

error: udf_names.c ??

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   October 30, 2012, 12:19
Default error: udf_names.c ??
  #1
New Member
 
Join Date: Oct 2012
Posts: 1
Rep Power: 0
Cecilie is on a distinguished road
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
Cecilie is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 05:58.