Changeset 25636
- Timestamp:
- 10/06/20 12:18:22 (4 years ago)
- Location:
- issm/trunk-jpl/src/m
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/consistency/checkfield.m
r25381 r25636 139 139 end 140 140 141 142 141 %check cell 143 142 if getfieldvalue(options,'cell',0); … … 187 186 lowerbound=getfieldvalue(options,'>='); 188 187 field2=reshape(field,prod(size(field)),1); 189 if getfieldvalue(options,'timeseries',0), field2=reshape(field(1:end-1,:),prod(size(field(1:end-1,:))),1); end188 if getfieldvalue(options,'timeseries',0), field2=reshape(field(1:end-1,:),prod(size(field(1:end-1,:))),1); end 190 189 if getfieldvalue(options,'singletimeseries',0), field2=reshape(field(1,:),prod(size(field(1,:))),1); end 191 190 if any(field2<lowerbound), … … 197 196 lowerbound=getfieldvalue(options,'>'); 198 197 field2=reshape(field,prod(size(field)),1); 199 if getfieldvalue(options,'timeseries',0), field2=reshape(field(1:end-1,:),prod(size(field(1:end-1,:))),1); end198 if getfieldvalue(options,'timeseries',0), field2=reshape(field(1:end-1,:),prod(size(field(1:end-1,:))),1); end 200 199 if getfieldvalue(options,'singletimeseries',0), field2=reshape(field(1,:),prod(size(field(1,:))),1); end 201 200 if any(field2<=lowerbound), -
issm/trunk-jpl/src/m/exp/contourlevelzero.m
r24029 r25636 9 9 % See also: PLOT_CONTOUR 10 10 11 if isempty(mask) 12 error('mask provided is empty'); 13 end 14 11 15 %process data 12 16 if dimension(md.mesh)==3, 13 % error('contourlevelzero error message: routine not supported for 3d meshes, project on a layer');14 17 x = md.mesh.x2d; 15 18 y = md.mesh.y2d; … … 27 30 end 28 31 29 if isempty(mask), error('mask provided is empty'); end30 32 if dimension(md.mesh)==3, 31 if length(mask)~=md.mesh.numberofvertices2d, error(' mask provided should be specified at the vertices of the mesh'); end33 if length(mask)~=md.mesh.numberofvertices2d, error('Since this is a 3d model, you need to project the mask on a layer (e.g. project2d(md,mask,0))'); end 32 34 else 33 35 if length(mask)~=md.mesh.numberofvertices, error('mask provided should be specified at the vertices of the mesh'); end
Note:
See TracChangeset
for help on using the changeset viewer.