|
[Sponsors] |
March 10, 2000, 21:35 |
UDF: Checking Thread Storage
|
#1 |
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 |
|
|
|
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 |