|
[Sponsors] |
June 15, 2006, 22:56 |
C_UDSI_G() in DEFINE_ADJUST
|
#1 |
Guest
Posts: n/a
|
Has anyone tested Fluent6.1.22 UDF Manual 4.2.1 DEFINE_ADJUST Example 2 ?
When I use a C_UDSI_G in DEFINE_ADJUST, the access_violation error came out. if I start iteration without hooking the adjust fuction,the iteration executed ,after some steps, I hooked the adjust function and initialized ,the iteration continues . I guess this is because the gradient of C_UDSI(C_UDSI_G ) isn't allocated yet ,but the codes do contain the if (! Data_Valid_P())return; sentence? I check the id.h in the src file as: FLUENT_EXPORT boolean Data_Valid_P(void); The FLUENT_EXPORT usually provides a GUI operation interface.am i right? can some one give me some suggestion that how to let Fluent iterate when hooked a adjust function which contains C_UDSI_G other then let it iterate some step without hooking this adjust function? and the reason for this? thanks in advance |
|
June 16, 2006, 07:05 |
Re: C_UDSI_G() in DEFINE_ADJUST
|
#2 |
Guest
Posts: n/a
|
I ran into the same problem with v6.2 and bypassed it as you did. I guess it is rather a "feature" and not some bug since Fluent did not fix it at the next version.
|
|
June 18, 2006, 01:12 |
Re: C_UDSI_G() in DEFINE_ADJUST
|
#3 |
Guest
Posts: n/a
|
thanks,karolw
|
|
|
|