Changeset 2950
- Timestamp:
- 02/03/10 23:14:37 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/public/bamg.m
r2942 r2950 125 125 md.numberofgrids=length(md.x); 126 126 md.z=zeros(md.numberofgrids,1); 127 md.gridonboundary=zeros(md.numberofgrids,1); md.gridonboundary(md.segments(:,1:2))=1; 128 md.gridonbed=ones(md.numberofgrids,1); 129 md.gridonsurface=ones(md.numberofgrids,1); 130 md.elementonbed=ones(md.numberofelements,1); 131 md.elementonsurface=ones(md.numberofelements,1); 132 133 %Now, build the connectivity tables for this mesh. 134 md.nodeconnectivity=NodeConnectivity(md.elements,md.numberofgrids); 135 md.elementconnectivity=ElementConnectivity(md.elements,md.nodeconnectivity); 136 137 %recreate segments 138 md.segments=findsegments(md); 139 md.gridonboundary=zeros(md.numberofgrids,1); md.gridonboundary(md.segments(:,1:2))=1; 140 141 %Fill in rest of fields: 142 md.z=zeros(md.numberofgrids,1); 143 md.gridonbed=ones(md.numberofgrids,1); 144 md.gridonsurface=ones(md.numberofgrids,1); 145 md.elementonbed=ones(md.numberofelements,1); 146 md.elementonsurface=ones(md.numberofelements,1); 147 md.gridonwater=zeros(md.numberofgrids,1); 148 149 %type of model 127 150 md.type='2d';
Note:
See TracChangeset
for help on using the changeset viewer.