CFD Online Logo CFD Online URL
Home > Forums > Fluent UDF and Scheme Programming

UDF: check variable for error

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   February 13, 2014, 09:50
Default UDF: check variable for error
New Member
Join Date: Oct 2012
Posts: 8
Rep Power: 5
icemesh is on a distinguished road

one quick question regarding (compiled)UDF-programming:
Is there any way to check if a variable has a real value or if there's an error (divide by Zero etc)?
I'd like to check it like this:

if (variable == ERROR)
{Message ("variable: error %g\n", variable);}

What would I need to write instead of ERROR?

Thanks for your help!
icemesh is offline   Reply With Quote


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fluent UDF urgent! Variable reaction rate natantyt Fluent UDF and Scheme Programming 3 July 7, 2011 03:59
Please check out my parallelized udf code aleisia Fluent UDF and Scheme Programming 0 June 10, 2011 16:16
Can you check if my attached UDF is correct?? gandesk FLUENT 7 December 29, 2010 11:05
Please check this UDF. Josh FLUENT 0 February 8, 2006 12:27
Check UDF stephen e FLUENT 1 April 15, 2004 09:51

All times are GMT -4. The time now is 04:08.