What's the problem about this UDF?
DEFINE_DPM_INJECTION_INIT(set_velocity,Inject) { Domain *domain; Thread *t; cell_t c; real xc[ND_ND]; Particle *pp;
loop(pp, Inject->p)//It said this line"structure reference not implemented"?? What's the problem? Any suggestion? Thanks |
Re: What's the problem about this UDF?
I made a loop like this:
loop(p, I->p_init) then you din' use curly brackets (or you did, and did not post them). In this loop i set some values, like this: P_VEL(p)[0] = 0.0; Hope, it helps you. Good luck! MA |
All times are GMT -4. The time now is 03:23. |