C_DUDX segmentation fault
Dear colleagues!
Here is a UDF which use: #include "udf.h" #include "mem.h" DEFINE_ON_DEMAND(flux) { Domain *domain = Get_Domain(1); int count, massflow_zone; real At, A[ ND_ND ], cx0[ND_ND]; cell_t c0, c1; Thread *t, *ct0, *ct1; face_t f; massflow_zone = 1; // interior BC t = Lookup_Thread(domain, massflow_zone); begin_f_loop(f, t) { F_AREA(A, f, t); At = NV_MAG(A); c0 = F_C0(f, t); ct0 = F_C0_THREAD(f, t); C_CENTROID(cx0, c0, ct0); Message("C_U(c0, t0): %f \n", C_W(c0, ct0)); Message("C_DUDX(c0, t0): %f \n", C_DUDX(c0, ct0)); } end_f_loop(f, t); } After several iteration I executed this UDF and I got first message and on the second one I got segmentation fault. Any idea why? Best regards! |
Hi, Could you solve the problem? I'd really appreciate if you could share
|
All times are GMT -4. The time now is 19:59. |