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

using command "goto" in UDF

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 27, 2011, 16:23
Default using command "goto" in UDF
  #1
Member
 
Shawn Fotovati
Join Date: Jul 2009
Location: Cincinnati, OH
Posts: 40
Rep Power: 7
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, 20:31
Default
  #2
Member
 
Micael Boulet
Join Date: Mar 2009
Location: Quebec, Canada
Posts: 95
Rep Power: 9
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, 20:37
Default
  #3
Member
 
Shawn Fotovati
Join Date: Jul 2009
Location: Cincinnati, OH
Posts: 40
Rep Power: 7
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

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
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 21:38
Dynamic Mesh UDF Qureshi FLUENT 1 December 2, 2009 01:27
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 10:22.