Changeset 12960
- Timestamp:
- 08/09/12 16:32:52 (13 years ago)
- Location:
- issm/trunk-jpl/src/m
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk-jpl/src/m/classes/mesh.m ¶
r12943 r12960 87 87 md = checkfield(md,'mesh.vertexonbed','size',[md.mesh.numberofvertices 1],'values',[0 1]); 88 88 md = checkfield(md,'mesh.vertexonsurface','size',[md.mesh.numberofvertices 1],'values',[0 1]); 89 if (md.mesh.dimension==3), 90 md = checkfield(md,'mesh.z','>=',md.geometry.bed,'message','''mesh.z'' should be above the bed'); 91 md = checkfield(md,'mesh.z','<=',md.geometry.surface,'message','''mesh.z'' should be below the ice surface'); 92 end 89 93 if (md.mesh.dimension==2), 90 94 md = checkfield(md,'mesh.average_vertex_connectivity','>=',9,'message','''mesh.average_vertex_connectivity'' should be at least 9 in 2d'); -
TabularUnified issm/trunk-jpl/src/m/utils/consistency/checkfield.m ¶
r12842 r12960 136 136 if any(field2<lowerbound), 137 137 md = checkmessage(md,getfieldvalue(options,'message',... 138 ['field ''' fieldname ''' should have values above ' num2str(lowerbound )]));138 ['field ''' fieldname ''' should have values above ' num2str(lowerbound(1,1))])); 139 139 end 140 140 end … … 144 144 if any(field2<=lowerbound), 145 145 md = checkmessage(md,getfieldvalue(options,'message',... 146 ['field ''' fieldname ''' should have values above ' num2str(lowerbound )]));146 ['field ''' fieldname ''' should have values above ' num2str(lowerbound(1,1))])); 147 147 end 148 148 end … … 154 154 if any(field2>upperbound), 155 155 md = checkmessage(md,getfieldvalue(options,'message',... 156 ['field ''' fieldname ''' should have values below ' num2str(upperbound )]));156 ['field ''' fieldname ''' should have values below ' num2str(upperbound(1,1))])); 157 157 end 158 158 end … … 162 162 if any(field2>=upperbound), 163 163 md = checkmessage(md,getfieldvalue(options,'message',... 164 ['field ''' fieldname ''' should have values below ' num2str(upperbound )]));164 ['field ''' fieldname ''' should have values below ' num2str(upperbound(1,1))])); 165 165 end 166 166 end
Note:
See TracChangeset
for help on using the changeset viewer.