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

UDFs parallel errors

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 7, 2015, 16:16
Smile UDFs parallel errors
  #1
New Member
 
saad
Join Date: Apr 2015
Posts: 6
Rep Power: 0
swidi is on a distinguished road
Hey please i want you to help i m in trouble with my UDFs it s about simulations in parallel mode
In fact, when I launch the simulation from the locale (cluster) my UDFs compile perfectly but when i do it in the parallel mode my UDFs don't compile and if i have these kind of errors :/ Could you help me pleaaase :


make[1]: Entering directory `/home_nfs/USERS/PE_EX/vignaesh.subramaniam/Upload/Fluent/libudf/lnamd64/2ddp'
# Generating udf_names.c because of heatfluxudf_linear.c
make[2]: Entering directory `/home_nfs/USERS/PE_EX/vignaesh.subramaniam/Upload/Fluent/libudf/lnamd64/2ddp'
make libudf.so "CFLAGS=-D_lnamd64 -D_GNU_SOURCE -fpic -shared -ansi -Wall -O -DPTR_RESTRICT= " "LDFLAGS=-shared -lm"
make[3]: Entering directory `/home_nfs/USERS/PE_EX/vignaesh.subramaniam/Upload/Fluent/libudf/lnamd64/2ddp'
# Compiling udf_names.o because of udf_names.c udfconfig.h
cc -D_lnamd64 -D_GNU_SOURCE -fpic -shared -ansi -Wall -O -DPTR_RESTRICT= -I/Applications/ansys_inc/v150/fluent/fluent15.0.0/`expr "\`pwd\`" : '.*/\(.*\)/[23].*'`/`basename "\`pwd\`"` -I/Applications/ansys_inc/v150/fluent/fluent15.0.0/src -I/Applications/ansys_inc/v150/fluent/fluent15.0.0/cortex/src -I/Applications/ansys_inc/v150/fluent/fluent15.0.0/client/src -I/Applications/ansys_inc/v150/fluent/fluent15.0.0/tgrid/src -I/Applications/ansys_inc/v150/fluent/fluent15.0.0/multiport/src -I/Applications/ansys_inc/v150/fluent/fluent15.0.0/multiport/mpi_wrapper/include -I/Applications/ansys_inc/v150/fluent/fluent15.0.0/multiport/mpi_wrapper/src -I. -c udf_names.c
udf_names.c:3:17: error: udf.h: No such file or directory
udf_names.c:4:18: error: prop.h: No such file or directory
udf_names.c:5:17: error: dpm.h: No such file or directory
udf_names.c:6: warning: type defaults to int in declaration of DEFINE_PROFILE
udf_names.c:6: warning: parameter names (without types) in function declaration
udf_names.c:7: error: expected =, ,, ;, asm or __attribute__ before udf_data
udf_names.c:10: error: udf_data undeclared here (not in a function)
udf_names.c:10: error: UDF_Data undeclared here (not in a function)
udf_names.c:11:21: error: version.h: No such file or directory
udf_names.c: In function UDF_Inquire_Release:
udf_names.c:14: error: RampantReleaseMajor undeclared (first use in this function)
udf_names.c:14: error: (Each undeclared identifier is reported only once
udf_names.c:14: error: for each function it appears in.)
udf_names.c:15: error: RampantReleaseMinor undeclared (first use in this function)
udf_names.c:16: error: RampantReleaseRevision undeclared (first use in this function)
make[3]: *** [udf_names.o] Error 1
# Compiling heatfluxudf_linear.o because of heatfluxudf_linear.c udfconfig.h
cc -D_lnamd64 -D_GNU_SOURCE -fpic -shared -ansi -Wall -O -DPTR_RESTRICT= -I/Applications/ansys_inc/v150/fluent/fluent15.0.0/`expr "\`pwd\`" : '.*/\(.*\)/[23].*'`/`basename "\`pwd\`"` -I/Applications/ansys_inc/v150/fluent/fluent15.0.0/src -I/Applications/ansys_inc/v150/fluent/fluent15.0.0/cortex/src -I/Applications/ansys_inc/v150/fluent/fluent15.0.0/client/src -I/Applications/ansys_inc/v150/fluent/fluent15.0.0/tgrid/src -I/Applications/ansys_inc/v150/fluent/fluent15.0.0/multiport/src -I/Applications/ansys_inc/v150/fluent/fluent15.0.0/multiport/mpi_wrapper/include -I/Applications/ansys_inc/v150/fluent/fluent15.0.0/multiport/mpi_wrapper/src -I. -c heatfluxudf_linear.c
heatfluxudf_linear.c:1:16: error: udf.h: No such file or directory
heatfluxudf_linear.c:2:17: error: prop.h: No such file or directory
heatfluxudf_linear.c:3:16: error: dpm.h: No such file or directory
heatfluxudf_linear.c:5: warning: return type defaults to int
heatfluxudf_linear.c: In function DEFINE_PROFILE:
heatfluxudf_linear.c:7: error: real undeclared (first use in this function)
heatfluxudf_linear.c:7: error: (Each undeclared identifier is reported only once
heatfluxudf_linear.c:7: error: for each function it appears in.)
heatfluxudf_linear.c:7: error: expected ; before x
heatfluxudf_linear.c:8: error: expected ; before y
heatfluxudf_linear.c:9: error: face_t undeclared (first use in this function)
heatfluxudf_linear.c:9: error: expected ; before f
heatfluxudf_linear.c:10: warning: implicit declaration of function begin_f_loop
heatfluxudf_linear.c:10: error: f undeclared (first use in this function)
heatfluxudf_linear.c:11: error: expected ; before { token
make[3]: *** [heatfluxudf_linear.o] Error 1
make[3]: Target `libudf.so' not remade because of errors.
make[3]: Leaving directory `/home_nfs/USERS/PE_EX/vignaesh.subramaniam/Upload/Fluent/libudf/lnamd64/2ddp'
make[2]: *** [lnamd64] Error 2
make[2]: Leaving directory `/home_nfs/USERS/PE_EX/vignaesh.subramaniam/Upload/Fluent/libudf/lnamd64/2ddp'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home_nfs/USERS/PE_EX/vignaesh.subramaniam/Upload/Fluent/libudf/lnamd64/2ddp'
swidi is offline   Reply With Quote

Old   April 7, 2015, 19:54
Default
  #2
New Member
 
anonymous
Join Date: Mar 2015
Posts: 25
Rep Power: 11
sjbub is on a distinguished road
If your UDF is compiling in serial and not in parallel I would send a ticket into to the ansys help.
sjbub is offline   Reply With Quote

Old   April 7, 2015, 19:57
Default
  #3
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 892
Rep Power: 18
`e` is on a distinguished road
Does this UDF compile in serial and parallel on a desktop machine?

What commands are you using to compile in serial, and parallel?
`e` is offline   Reply With Quote

Old   April 8, 2015, 04:41
Default
  #4
New Member
 
saad
Join Date: Apr 2015
Posts: 6
Rep Power: 0
swidi is on a distinguished road
Yes i m working on desktop machines ( im the person who posted this by the way)
I use a Journal like :
File read-case dens.cas
read-dara dens.dat
Solve dti 1000000
But the problem is why it can't find the udf.h
swidi is offline   Reply With Quote

Old   April 8, 2015, 04:52
Default
  #5
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 892
Rep Power: 18
`e` is on a distinguished road
Are you compiling the UDFs through the GUI? What operating system are you running? What are the UDFs?
`e` is offline   Reply With Quote

Old   April 8, 2015, 05:13
Default
  #6
New Member
 
saad
Join Date: Apr 2015
Posts: 6
Rep Power: 0
swidi is on a distinguished road
Here are my udfs ImageUploadedByCFD Online Forum1428480758.746058.jpg ImageUploadedByCFD Online Forum1428480788.864344.jpg
swidi is offline   Reply With Quote

Old   April 8, 2015, 05:48
Default
  #7
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 892
Rep Power: 18
`e` is on a distinguished road
Quote:
Originally Posted by `e` View Post
Are you compiling the UDFs through the GUI? What operating system are you running?
Are there any differences between the ways you've compiled the serial and parallel codes? Try compiling a UDF in parallel found in the UDF manual (as an example).
`e` is offline   Reply With Quote

Old   April 8, 2015, 06:17
Default
  #8
New Member
 
saad
Join Date: Apr 2015
Posts: 6
Rep Power: 0
swidi is on a distinguished road
I am using the same code. When i m in locale i compile my udf manually but when i m in the parallel mode i use the Journal ( i m working in Linux ) the thing in this story is that calculation s are getting even if my udf display some errors
swidi is offline   Reply With Quote

Old   November 6, 2015, 14:44
Smile
  #9
Member
 
xin
Join Date: Dec 2013
Posts: 33
Rep Power: 13
guxin7005 is on a distinguished road
Hi, I have the same errors as you do. Did you solve it finally?
guxin7005 is offline   Reply With Quote

Reply


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
how to check UDFs code errors? gjm89 Fluent UDF and Scheme Programming 5 December 10, 2014 18:57
interDyMFoam in parallel idefix OpenFOAM Running, Solving & CFD 0 May 21, 2013 03:34
Running UDFs in parallel Emre Turkoz CFX 2 February 1, 2011 10:10
problem using property udfs in parallel mode EllenW Fluent UDF and Scheme Programming 5 July 10, 2009 05:31
Help with parallel UDFs needed Nico FLUENT 0 June 6, 2006 09:40


All times are GMT -4. The time now is 21:02.