Changeset 3120
- Timestamp:
- 02/24/10 13:21:10 (15 years ago)
- Location:
- issm/trunk/src/m/solutions/dakota/setupdesign
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/solutions/dakota/setupdesign/setupdrag.m
r32 r3120 8 8 end 9 9 10 %capture stddev: 11 stddev=variables.stddev; 12 13 if length(stddev)>md.npart, 14 error('setupdrag error message: stddev should be either a scalar or a ''npart'' length vector'); 15 end 16 10 17 %ok, dealing with semi-discrete distributed variable. Distribute according to how many 11 18 %partitions we want … … 14 21 dvar(end+1) =variables; 15 22 dvar(end ).descriptor=sprintf('%s%d',variables.descriptor,j); 23 if length(stddev)>1, 24 dvar(end ).stddev=stddev(j); 25 end 16 26 end 17 27 -
issm/trunk/src/m/solutions/dakota/setupdesign/setupthickness.m
r32 r3120 7 7 end 8 8 end 9 %capture stddev: 10 stddev=variables.stddev; 11 12 if length(stddev)>md.npart, 13 error('setupthickness error message: stddev should be either a scalar or a ''npart'' length vector'); 14 end 9 15 10 16 %ok, dealing with semi-discrete distributed variable. Distribute according to how many … … 14 20 dvar(end+1) =variables; 15 21 dvar(end ).descriptor=sprintf('%s%d',variables.descriptor,j); 22 if length(stddev)>1, 23 dvar(end ).stddev=stddev(j); 24 end 16 25 end 17 26 18 27 end
Note:
See TracChangeset
for help on using the changeset viewer.