|
[Sponsors] |
July 27, 2011, 17:23 |
using command "goto" in UDF
|
#1 |
Member
Shawn Fotovati
Join Date: Jul 2009
Location: Dallas, TX
Posts: 42
Rep Power: 17 |
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 |
|
August 5, 2011, 21:31 |
|
#2 |
Senior Member
Micael
Join Date: Mar 2009
Location: Canada
Posts: 157
Rep Power: 18 |
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)
|
|
August 5, 2011, 21:37 |
|
#3 |
Member
Shawn Fotovati
Join Date: Jul 2009
Location: Dallas, TX
Posts: 42
Rep Power: 17 |
Thanks for the comment, however, the UDF eventually worked with goto statement.
|
|
|
|
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 |