Skip to content

Commit e973d77

Browse files
committed
Increased memory allocation for dM_dx
354 was required instead of 352. Also changed for the dependent variables.
1 parent 795944e commit e973d77

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/model/gait3d/c_files/gait3d_pelvis213/gait3d_pelvis213.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,7 +1217,7 @@ void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) {
12171217
#if JACOBIANSIZING
12181218
Nalloc_dMpas_dx = 10000;
12191219
#else
1220-
Nalloc_dMpas_dx = 352;
1220+
Nalloc_dMpas_dx = 354;
12211221
#endif
12221222
plhs[1] = mxCreateSparse(nstates, NDOF, Nalloc_dMpas_dx, mxREAL); // this is Jacobian transposed!
12231223
dMpas_dx = mxGetPr(plhs[1]);
@@ -1340,7 +1340,7 @@ void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) {
13401340
#if JACOBIANSIZING
13411341
Nalloc_dM_dx = 10000;
13421342
#else
1343-
Nalloc_dM_dx = 352;
1343+
Nalloc_dM_dx = 354;
13441344
#endif
13451345
plhs[1] = mxCreateSparse(nstates, NDOF, Nalloc_dM_dx, mxREAL); // this is Jacobian transposed!
13461346
dM_dx = mxGetPr(plhs[1]);
@@ -1442,8 +1442,8 @@ void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) {
14421442
Nalloc_dfCE_dx = 10000;
14431443
Nalloc_dfCE_dxdot = 10000;
14441444
#else
1445-
Nalloc_dfCE_dx = 352; // Used the same number as for cmdJointmoments
1446-
Nalloc_dfCE_dxdot = 352; // Used the same number as for cmdJointmoments
1445+
Nalloc_dfCE_dx = 354; // Used the same number as for cmdJointmoments
1446+
Nalloc_dfCE_dxdot = 354; // Used the same number as for cmdJointmoments
14471447
#endif
14481448
plhs[1] = mxCreateSparse(nstates, nmuscles, Nalloc_dfCE_dx, mxREAL); // this is Jacobian transposed!
14491449
dfCE_dx = mxGetPr(plhs[1]);

0 commit comments

Comments
 (0)