CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   a udf problem (http://www.cfd-online.com/Forums/fluent/32757-udf-problem.html)

zht77 December 24, 2003 21:47

a udf problem
 
hi,i have tried to compile the following code(using interpreted),but an error is appeared.the code is able to be complied ,however, when i execute execute on demand ,the error is appeared.if an real number (such as 2.55)replace C-VOLUME ,everything is ok,and there are n 2.55 being appeared( n is the number of the cell in the domain 1.)

But i compile the code (using complie),everything is ok,however, nothing is appeared in terminal emulator.even if an real number (such as 2.55)replace C-VOLUME ,anything does not alter.

thank you very much. DEFINE_ON_DEMAND(on_demand_calc) { Domain *d; real nn = 0.; Thread *t; cell_t c; d = Get_Domain(1); /* Loop over all cell threads in the domain */ thread_loop_c(t,d) { begin_c_loop(c,t)

{

nn=C_VOLUME(c,t);

printf(" %g ",nn );

} end_c_loop(c,t)

} } Error: FLUENT received fatal signal (ACCESS_VIOLATION) 1. Note exact events leading to error. 2. Save case/data under new name. 3. Exit program and restart to continue. 4. Report error to your distributor. Error Object: ()



All times are GMT -4. The time now is 22:49.