Add check for integer input. No other check is performed.

This commit is contained in:
Jostein R. Natvig 2009-06-18 13:29:41 +00:00
parent a4e75f7013
commit 616afb5838

View File

@ -14,8 +14,9 @@
void mxInitGrdecl(struct grdecl *g, const mxArray *prhs[])
{
int i,j,k,n;
if (mxGetClassID(mxGetField(prhs[0], 0, "ACTNUM")) != mxINT32_CLASS){
mexErrMsgTxt("ACTNUM field of grid declaration must be int32");
}
g->coord = mxGetPr(mxGetField(prhs[0], 0, "COORD"));
double *tmp = mxGetPr(mxGetField(prhs[0], 0, "cartDims"));
n = 1;