|
[Sponsors] |
June 26, 2014, 06:09 |
DT_CG use
|
#1 |
New Member
hannecart
Join Date: Jun 2014
Posts: 16
Rep Power: 11 |
i want to know the position of CG for this i use in my udf the DT_CG(dt)
for( i=0 ; i<3; i++) x_cg = DT_CG (dt) ; where x_cg habe been declared as a real . message error (" impossible de convertir de 'real *' en 'real' ") can someone explain me how to use correctly DT_CG ? thanks ! |
|
June 26, 2014, 08:15 |
|
#2 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26 |
DT_CG is a vector (with 2 or 3 dimensions).
So you should also define x_cg as a vector. real x_cg[ND_ND]; And then assign it using: NV_V(x_cg,=,DT_CG(dt)); I think. |
|
June 26, 2014, 10:07 |
|
#3 |
New Member
hannecart
Join Date: Jun 2014
Posts: 16
Rep Power: 11 |
ok i will try
at first i declared x-cg like that " real x_cg[3) " to have a vector 3dim than i use a loop to define x-cg[i]=Dt-cg(dt) [i] |
|
|
|