|
[Sponsors] |
November 28, 2013, 10:48 |
using C_VOF_G
|
#1 |
New Member
anonymous
Join Date: Nov 2013
Posts: 9
Rep Power: 13 |
Dear CFD experts,
I urgently need your kind help! The following udf returns the error "ACCESS_VIOLATION" #include "udf.h" #include "sg_mphase.h" DEFINE_EXECUTE_AT_END(calculate_value) { /************* DECLARATION OF VARIABLES *************/ Domain *d = Get_Domain(1); Thread *t; Thread **pt; /* pt0 - air, pt1 - ls */ cell_t c; real gradx, grady; /************* CODE *************/ mp_thread_loop_c (t,d,pt) { begin_c_loop(c,t) { gradx = C_VOF_G (c, pt[1])[0]; grady = C_VOF_G (c, pt[1])[1]; C_UDMI(c, t, 0) = gradx; C_UDMI(c, t, 1) = grady; } end_c_loop(c,t) } } The temporary solver memory (yes) - enabled. Why does the problem still appear? Thank you in advance! |
|
Tags |
access_violation, c_vof_g |
|
|