Changeset 25033


Ignore:
Timestamp:
06/12/20 10:24:30 (5 years ago)
Author:
jdquinn
Message:

BUG: length -> size

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

Legend:

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

    r25032 r25033  
    7474                                end
    7575                                %better have a partition vector that has as many partitions as upper and lower's size:
    76                                 if length(self.upper,1)~=partition_npart(self.partition),
     76                                if size(self.upper,1)~=partition_npart(self.partition),
    7777                                        error('uniform_uncertain error message: row size of upper and partition size should be identical');
    7878                                end
    79                                 if length(self.lower,1)~=partition_npart(self.partition),
     79                                if size(self.lower,1)~=partition_npart(self.partition),
    8080                                        error('uniform_uncertain error message: row size of lower and partition size should be identical');
    8181                                end
  • issm/trunk-jpl/src/m/qmu/setupdesign/QmuSetupVariables.m

    r25028 r25033  
    1717
    1818        if isa(variables,'uniform_uncertain'),
    19                 nlower=length(variables.lower,1);
    20                 nupper=length(variables.upper,1);
     19                nlower=size(variables.lower,1);
     20                nupper=size(variables.upper,1);
    2121                if (nlower ~= npart || nupper ~=npart),
    2222                        error('QmuSetupVariables error message: upper and lower fields should have the same number of rows as the number of partitions');
    2323                end
    24                 nlower=length(variables.lower,2);
    25                 nupper=length(variables.upper,2);
     24                nlower=size(variables.lower,2);
     25                nupper=size(variables.upper,2);
    2626                if (nlower ~= nt || nupper ~= nt),
    2727                        error('QmuSetupVariables error message: upper and lower fields should have the same number of cols as the number of time steps');
Note: See TracChangeset for help on using the changeset viewer.