CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > CONVERGE

udf compiling issue

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 4, 2016, 09:44
Default udf compiling issue
  #1
New Member
 
Join Date: Aug 2015
Location: Alexandria, Egypt
Posts: 10
Rep Power: 11
kabil is on a distinguished road
Hi all

I made a udf and it runs locally, but when i try to plug it in converge it fails in make file.

The error produced is :

gcc -O3 -fPIC -DNO_MPI -Werror-implicit-function-declaration -Werror -I/udf_include -c user_spray_evap.c
user_spray_evap.c: In function ‘user_spray_evap_cell’:
user_spray_evap.c:254:26: error: dereferencing pointer to incomplete type
user_spray_evap.c:258:30: error: dereferencing pointer to incomplete type
user_spray_evap.c:259:30: error: dereferencing pointer to incomplete type
user_spray_evap.c:261:26: error: dereferencing pointer to incomplete type
user_spray_evap.c:261:55: error: dereferencing pointer to incomplete type
user_spray_evap.c:281:33: error: dereferencing pointer to incomplete type
user_spray_evap.c:282:22: error: dereferencing pointer to incomplete type
user_spray_evap.c:285:43: error: dereferencing pointer to incomplete type
user_spray_evap.c:286:37: error: dereferencing pointer to incomplete type
user_spray_evap.c:438:45: error: dereferencing pointer to incomplete type
user_spray_evap.c:439:47: error: dereferencing pointer to incomplete type
user_spray_evap.c:443:45: error: dereferencing pointer to incomplete type
user_spray_evap.c:444:47: error: dereferencing pointer to incomplete type
user_spray_evap.c:611:51: error: dereferencing pointer to incomplete type
user_spray_evap.c:615:48: error: dereferencing pointer to incomplete type
user_spray_evap.c:971:26: error: dereferencing pointer to incomplete type
user_spray_evap.c:973:30: error: dereferencing pointer to incomplete type
user_spray_evap.c:974:30: error: dereferencing pointer to incomplete type
user_spray_evap.c:1353:55: error: incompatible type for argument 3 of ‘DYNAMIC_spray_big_evap’
user_spray_evap.c:1353:55: note: expected ‘struct parcel_definition *’ but argument is of type ‘PRECISION’
user_spray_evap.c:1353:55: error: incompatible type for argument 4 of ‘DYNAMIC_spray_big_evap’
user_spray_evap.c:1353:55: note: expected ‘PRECISION’ but argument is of type ‘struct parcel_definition *’
user_spray_evap.c:1353:55: error: too many arguments to function ‘DYNAMIC_spray_big_evap’
user_spray_evap.c:1780:13: error: too few arguments to function ‘DYNAMIC_discretize_big_parcel’
make: *** [user_spray_evap.o] Error 1
kabil is offline   Reply With Quote

Old   August 4, 2016, 13:04
Default
  #2
New Member
 
SauravMitra's Avatar
 
Saurav
Join Date: Dec 2015
Location: Convergent Science, Madison, USA
Posts: 27
Rep Power: 11
SauravMitra is on a distinguished road
Hi Kabil,

Make sure that you did not alter any of the header files. Also, make sure you are including all the header files in the #include statements for each routine.

The only header file for UDF that can be altered is user_header.h.
Thanks
__________________
Saurav Mitra
Senior Research Engineer
CONVERGECFD
SauravMitra is offline   Reply With Quote

Reply

Tags
converge cfd, udf


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiphase Mass transfer UDF issue therandomestname FLUENT 0 April 21, 2011 15:51
Issue with DEFINE_PROPERTY UDF in 3D lost.identity FLUENT 0 April 20, 2011 10:15
error while compiling a udf rahul FLUENT 10 August 30, 2006 09:33
Discussing UDF and C++ Compiling Big Stone FLUENT 9 April 12, 2004 16:07
compiling a UDF co2 FLUENT 2 January 5, 2004 20:34


All times are GMT -4. The time now is 18:54.