need help whith hooking UDF and DEFINE_INIT macro
Hi. I'm using a DEFINE_INIT macro in a compiled UDF for my simulation of greenhouse ventilation.this macro should initialise two User Define memories with a temperature (C_UDMI(cell,thread,0) and a mass fraction of vapor water (C_UDMI(cell,thread,1).After compiling my UDF, I try to hook this function thanks to the "function hooks" panel.But when I start the solver, an error message tells me to close Fluent and restart...I dont' know where is the problem can somebody help me please? thanks
|
Re: need help whith hooking UDF and DEFINE_INIT ma
the exact name of the error is: FLUENT received fatal signal (ACCESS_VIOLATION)
|
Re: need help whith hooking UDF and DEFINE_INIT ma
The ACCESS_VIOLATION is a generic error report in Fluent 6 (and reads the same as ACCESS_VIOLATION error in Fluent 4, which is written in Fortran).
From my experience, you normally get this error when you try and access a variable that has not been properly initialized or is not accessible in your function. I would check this accordingly, perhaps with a very simple bit of code. |
Re: need help whith hooking UDF and DEFINE_INIT ma
thxs a lot.I just took another source file (with the same syntax ) and it works. Fluent is like womens, not really simple to understand...
|
All times are GMT -4. The time now is 06:50. |