Changeset 8221
- Timestamp:
- 05/10/11 08:59:29 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/model/parameterization/parametercontroldrag.m
r6037 r8221 40 40 41 41 %cm_min 42 cm_min=getfieldvalue(options,'cm_min',1); 43 if (length(cm_min)~=1) 44 md.cm_min=1; 42 cm_min=getfieldvalue(options,'cm_min',1*ones(md.numberofgrids,1)); 43 if (length(cm_min)==1) 44 md.cm_min=cm_min*ones(md.numberofgrids,1); 45 elseif (length(cm_min)==md.numberofgrids) 46 md.cm_min=cm_min; 45 47 else 46 48 md.cm_min=cm_min; … … 48 50 49 51 %cm_max 50 cm_max=getfieldvalue(options,'cm_max',250); 51 if (length(cm_max)~=1) 52 md.cm_max=250; 52 cm_max=getfieldvalue(options,'cm_max',1*ones(md.numberofgrids,1)); 53 if (length(cm_max)==1) 54 md.cm_max=cm_max*ones(md.numberofgrids,1); 55 elseif (length(cm_max)==md.numberofgrids) 56 md.cm_max=cm_max; 53 57 else 54 58 md.cm_max=cm_max;
Note:
See TracChangeset
for help on using the changeset viewer.