CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   need help whith hooking UDF and DEFINE_INIT macro (http://www.cfd-online.com/Forums/fluent/41276-need-help-whith-hooking-udf-define_init-macro.html)

cax June 6, 2006 09:44

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

cax June 6, 2006 10:01

Re: need help whith hooking UDF and DEFINE_INIT ma
 
the exact name of the error is: FLUENT received fatal signal (ACCESS_VIOLATION)

Allan Walsh June 6, 2006 13:32

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.

Cax June 6, 2006 13:35

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 12:38.