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

UDF: Checking Thread Storage

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 10, 2000, 21:35
Default UDF: Checking Thread Storage
  #1
Greg Perkins
Guest
 
Posts: n/a
Does anybody know which thread storage macros to call to check if variables are available for access within a UDF??

I'm writing a UDF which uses the macros C_U, C_V, C_W, C_U_G, C_V_G, C_W_G, C_H and C_H_G. When I start a new solution I often get a floating point exception which I suspect is because some of these variables are not yet available or haven't been properly calculated.

In this case I've attempted to use THREAD_STORAGE and T_STORAGE_R to check but this doesn't seem to work using code similar to

if (NULL != THREAD_STORAGE(t,SV_U_G) ) ....

Does anybody actually know which macros to use for which variables???

Please explain re

THREAD_STORAGE T_STORAGE_R T_STORGE_R_NV (and any others you know about in the mem.h file)

Thanks

Greg
  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
critical error during installation of openfoam Fabio88 OpenFOAM Installation 21 June 2, 2010 04:01
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 08:21
OpenFOAM installation problem on Linux 32bit kumar OpenFOAM Installation 0 April 27, 2007 06:41
Help%7e%7einstall openfoam13 on fc5%7e%7e aderliner OpenFOAM Installation 2 September 11, 2006 08:24
Gerris software installation mer Main CFD Forum 2 November 12, 2005 09:50


All times are GMT -4. The time now is 00:10.