Changeset 16815


Ignore:
Timestamp:
11/17/13 21:01:38 (11 years ago)
Author:
Eric.Larour
Message:

CHG: new checkfield routine in independent class.

Location:
issm/trunk-jpl/src/m/classes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/independent.m

    r15370 r16815  
    4444                                        error('independent checkconsistency error: nods should be set to the size of the independent variable');
    4545                                end
    46                                 md = checkfield(md,['autodiff.independents{' num2str(i) '}.fov_forward_indices'],'>=',1,'<=',obj.nods,'size',[NaN 1]);
     46                                md = checkfield(md,'fieldname',['autodiff.independents{' num2str(i) '}.fov_forward_indices'],'>=',1,'<=',obj.nods,'size',[NaN 1]);
    4747                        end
    4848
  • issm/trunk-jpl/src/m/classes/independent.py

    r14640 r16815  
    5858                        if self.nods==0:
    5959                                raise TypeError("independent checkconsistency error: nods should be set to the size of the independent variable")
    60                         md = checkfield(md,"autodiff.independents[%d].fov_forward_indices" % i,'>=',1,'<=',self.nods,'size',[float('NaN'),1])
     60                        md = checkfield(md,'fieldname',"autodiff.independents[%d].fov_forward_indices" % i,'>=',1,'<=',self.nods,'size',[float('NaN'),1])
    6161
    6262                return md
Note: See TracChangeset for help on using the changeset viewer.