[Matlab] Fixed error reporting when importing Kinetics from a file

This commit is contained in:
Ray Speth 2013-02-14 01:05:31 +00:00
parent 0b4af9ac0e
commit 6b569fcb22

View file

@ -24,10 +24,10 @@ void kineticsmethods(int nlhs, mxArray* plhs[],
int in2 = getInt(prhs[5]);
int in3 = getInt(prhs[6]);
int in4 = getInt(prhs[7]);
vv = (double) newKineticsFromXML(root, iph, in1, in2, in3, in4);
int p = (int) newKineticsFromXML(root, iph, in1, in2, in3, in4);
plhs[0] = mxCreateNumericMatrix(1,1,mxDOUBLE_CLASS,mxREAL);
double* h = mxGetPr(plhs[0]);
*h = vv;
*h = (double) p;
return;
}