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

Build & Complied with Warnings UDF

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By AlexanderZ

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 7, 2022, 05:51
Default Build & Complied with Warnings UDF
  #1
New Member
 
Shuttle
Join Date: Jul 2022
Posts: 5
Rep Power: 4
Shuttle is on a distinguished road
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!
Shuttle is offline   Reply With Quote

Old   December 8, 2022, 00:24
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
you may ignore these warnings. looks like they are related to fluent system files and compiler version.
Shuttle likes this.
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ 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
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


All times are GMT -4. The time now is 12:19.