Changeset 7761


Ignore:
Timestamp:
04/01/11 15:28:10 (14 years ago)
Author:
Mathieu Morlighem
Message:

Change numel back to 0 if object is skipped (i.e. ndims>2)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/io/OptionParse.cpp

    r7746 r7761  
    6363        if (odouble->ndims > 2) {
    6464                _printf_(true,"WARNING -- option \"%s\" of class \"%s\" has ndims=%d and will be skipped.\n",odouble->name,mxGetClassName(prhs[0]),odouble->ndims);
     65                odouble->numel=0;
    6566        }
    6667        else FetchData(&odouble->values,NULL,NULL,prhs[0]);
     
    9495        if (ological->ndims > 2 || ological->size[0] > 1 || ological->size[1] > 1) {
    9596                _printf_(true,"WARNING -- option \"%s\" of class \"%s\" is more than [1x1] and will be skipped.\n",ological->name,mxGetClassName(prhs[0]));
     97                ological->numel=0;
    9698        }
    9799        else {
     
    129131        if (ochar->ndims > 2 || ochar->size[0] > 1) {
    130132                _printf_(true,"WARNING -- option \"%s\" of class \"%s\" is more than [1xn] and will be skipped.\n",ochar->name,mxGetClassName(prhs[0]));
     133                ochar->numel=0;
    131134        }
    132135        else FetchData(&ochar->values,prhs[0]);
Note: See TracChangeset for help on using the changeset viewer.