| 982 | //**************************************************************************** |
| 983 | |
| 984 | void dInternalStepIsland (dxWorld *world, dxBody * const *body, int nb, |
| 985 | dxJoint **joint, int nj, dReal stepsize) |
| 986 | { |
| 987 | # ifndef COMPARE_METHODS |
| 988 | dInternalStepIsland_x2 (world,body,nb,joint,nj,stepsize); |
| 989 | # endif |
| 990 | |
| 991 | # ifdef COMPARE_METHODS |
| 992 | int i; |
| 993 | |
| 994 | // save body state |
| 995 | dxBody *state = (dxBody*) ALLOCA (nb*sizeof(dxBody)); |
| 996 | for (i=0; i<nb; i++) memcpy (state+i,body[i],sizeof(dxBody)); |
| 997 | |
| 998 | // take slow step |
| 999 | comparator.reset(); |
| 1000 | dInternalStepIsland_x1 (world,body,nb,joint,nj,stepsize); |
| 1001 | comparator.end(); |
| 1002 | |
| 1003 | // restore state |
| 1004 | for (i=0; i<nb; i++) memcpy (body[i],state+i,sizeof(dxBody)); |
| 1005 | |
| 1006 | // take fast step |
| 1007 | dInternalStepIsland_x2 (world,body,nb,joint,nj,stepsize); |
| 1008 | comparator.end(); |
| 1009 | |
| 1010 | //comparator.dump(); |
| 1011 | //_exit (1); |
| 1012 | # endif |
| 1013 | } |
no test coverage detected