|
[Sponsors] |
December 7, 2022, 05:51 |
Build & Complied with Warnings UDF
|
#1 |
New Member
Shuttle
Join Date: Jul 2022
Posts: 5
Rep Power: 4 |
Hello,
I have a very basic UDF for dynamic viscosity: #include "udf.h" DEFINE_PROPERTY(cell_viscosity,c,t) { real mu_lam; real temp = C_T(c,t); if (temp > 362.) mu_lam = 5.53e-3; else if (temp > 333.) mu_lam = 760*exp(-0.0322*temp); else mu_lam = 1.662e-2; return mu_lam; } --- But I am getting the following warnings. I have no knowledge about C, as It already complied, should I ignore the warnings? --- C:\PROGRA~1\ANSYSI~1\v202\fluent\ntbin\clang\kit\i nclude\shared\basetsd.h(317,12): warning: cast to 'void * __ptr32' from smaller integer type 'unsigned long' [-Wint-to-void-pointer-cast] return((void * POINTER_32) (unsigned long) (ULONG_PTR) p); ^ In file included from TemperatureProfile.c:6: In file included from C:\PROGRA~1\ANSYSI~1\v202\fluent\fluent20.2.0\src\ udf\udf.h:22: In file included from C:\PROGRA~1\ANSYSI~1\v202\fluent\fluent20.2.0\src\ main\global.h:251: C:\PROGRA~1\ANSYSI~1\v202\fluent\fluent20.2.0\cort ex\src\cx.h(167,5): warning: incompatible redeclaration of library function 'strncasecmp' [-Wincompatible-library-redeclaration] int strncasecmp (const char *, const char *, int); ^ C:\PROGRA~1\ANSYSI~1\v202\fluent\fluent20.2.0\cort ex\src\cx.h(167,5): note: 'strncasecmp' is a builtin with type 'int (const char *, const char *, unsigned long long)' 2 warnings generated. Thank you! |
|
December 8, 2022, 00:24 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
you may ignore these warnings. looks like they are related to fluent system files and compiler version.
__________________
best regards ****************************** press LIKE if this message was helpful |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
udf for one dimensional linear motion based on force | maccheese | Fluent UDF and Scheme Programming | 2 | September 1, 2019 03:18 |
SU2 3.0 build failure | waku2005 | SU2 Installation | 4 | January 24, 2014 13:40 |
complied udf in the fluent | tranvantrung551987 | ANSYS | 0 | August 23, 2013 00:17 |
UDF -BUILD | chakradhar | FLUENT | 2 | March 28, 2007 16:15 |
UDF...UDF...UDF...UDF | Luc SEMINEL | FLUENT | 0 | November 25, 2002 05:03 |