Issue with NODE_POS_NEED_UPDATE (v)
Hi Everybody
In the following simple code, the program does not go through the "if" ( nothing is being written in the file) which is quite surprising for me since the same piece of code works well when I use that in a deforming mesh function. It seems NODE_POS_UPDATED(v); does not work correctly. Thanks for sharing your ideas. Parsa ------------------------------------ #include "udf.h" DEFINE_EXECUTE_AT_END(sort) { Domain *ddx=Get_Domain(1); Thread *tf=Lookup_Thread(ddx,10); face_t f; Node *v; int n; FILE *fp; fp=fopen("checkdata.dat","a"); begin_f_loop(f,tf) { f_node_loop(f,tf,n) { v = F_NODE(f,tf,n); if (NODE_POS_NEED_UPDATE(v)) { NODE_POS_UPDATED(v); fprintf(fp,"%12.4e \n",NODE_X(v)); } } } end_f_loop(f,tf); fclose(fp); } ---------------------------------------------------------- |
All times are GMT -4. The time now is 08:26. |