Error UDF
Hello
I write some UDfs. I have some errors when I compile it and I don't know to resolve the last ones. My code where I have this errors is: Code:
#include "udf.h" Code:
valve2.c: In function valve2: |
Hi,
your problem actually apeared in this line: prop[SDOF_LOAD_M_Y] = -9.81*0.045*sin(DT_THETA (dt[1])*0.045); try to use prantesis for dt , cause the way you have used dt[1] seems to be that you have used it as an array!!(and thats wrong!) so type like this: prop[SDOF_LOAD_M_Y] = -9.81*0.045*sin(DT_THETA (dt)[1]*(0.045)); and enother problem is that u shouldnt use semicolon after #endif regards. |
All times are GMT -4. The time now is 08:08. |