|
[Sponsors] |
December 24, 2003, 20:47 |
a udf problem
|
#1 |
Guest
Posts: n/a
|
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: () |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM | Rizwan | Fluent UDF and Scheme Programming | 40 | March 18, 2018 06:05 |
Problem with my udf | july | Fluent UDF and Scheme Programming | 3 | June 20, 2010 06:56 |
UDF problem | mansha goraya | FLUENT | 0 | October 29, 2007 00:31 |
udf compiling problem | akr | FLUENT | 3 | August 22, 2007 07:14 |
UDF problem | chiseung | FLUENT | 4 | January 10, 2002 09:58 |