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

using command "goto" in UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 27, 2011, 17:23
Default using command "goto" in UDF
  #1
Member
 
Shawn Fotovati
Join Date: Jul 2009
Location: Dallas, TX
Posts: 42
Rep Power: 17
sfotovati is on a distinguished road
hey all,

I am writing a UDF using DEFINE_DPM_SCALAR_UPDATE macro. in some part of this UDF, I have to use "goto" command.

apparently UDF gives me wrong answer whenever this command is effective. Can anyone help me how I can use this command in UDF?

Thanks all,

Sean
sfotovati is offline   Reply With Quote

Old   August 5, 2011, 21:31
Default
  #2
Senior Member
 
Micael
Join Date: Mar 2009
Location: Canada
Posts: 157
Rep Power: 18
Micael is on a distinguished road
goto statement can always be avoid by rearranging the code. It is not a recommanded practice to use it. Nevertheless, I think it should work in UDF, as far as you compile it (don't interpret it)
Micael is offline   Reply With Quote

Old   August 5, 2011, 21:37
Default
  #3
Member
 
Shawn Fotovati
Join Date: Jul 2009
Location: Dallas, TX
Posts: 42
Rep Power: 17
sfotovati is on a distinguished road
Thanks for the comment, however, the UDF eventually worked with goto statement.
sfotovati 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
Dynamic Mesh UDF Qureshi FLUENT 7 March 23, 2017 08:37
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 22:38
UDF...UDF...UDF...UDF Luc SEMINEL FLUENT 0 November 25, 2002 05:03
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 05:01


All times are GMT -4. The time now is 21:46.