Changeset 7550
- Timestamp:
- 02/28/11 22:56:13 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/qmu/setupdesign/QmuSetupVariables.m
r5485 r7550 12 12 %we have a scaled variable, expand it over the partition. 13 13 14 if length(variables.stddev)>md.npart, 15 error('QmuSetupDesign error message: stddev should be either a scalar or a ''npart'' length vector'); 14 if isa(variables,'uniform_uncertain'), 15 if (length(variables.lower)>md.npart || length(variables.upper)>md.npart) 16 error('QmuSetupDesign error message: stddev should be either a scalar or a ''npart'' length vector'); 17 end 18 elseif isa(variables,'normal_uncertain'), 19 if length(variables.stddev)>md.npart, 20 error('QmuSetupDesign error message: stddev should be either a scalar or a ''npart'' length vector'); 21 end 16 22 end 17 23 … … 22 28 dvar(end+1) =variables; 23 29 dvar(end ).descriptor=sprintf('%s_%d',variables.descriptor,j); 24 if length(variables.stddev)>1, 25 dvar(end ).stddev=variables.stddev(j); 30 if isa(variables,'uniform_uncertain'), 31 if length(variables.lower)>1, 32 dvar(end ).lower=variables.lower(j); 33 end 34 if length(variables.upper)>1, 35 dvar(end ).upper=variables.upper(j); 36 end 37 elseif isa(variables,'normal_uncertain'), 38 if length(variables.stddev)>1, 39 dvar(end ).stddev=variables.stddev(j); 40 end 26 41 end 27 42 end
Note:
See TracChangeset
for help on using the changeset viewer.