Changeset 15993
- Timestamp:
- 08/28/13 10:32:57 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/boundaryconditions/SetMarineIceSheetBC.m
r15987 r15993 23 23 error(['SetMarineIceSheetBC error message: ice front file ' icefrontfile ' not found']); 24 24 end 25 nodeinsideicefront=ContourToMesh(md.mesh.elements,md.mesh.x,md.mesh.y,icefrontfile,'node',2);26 vertexonicefront=double(md.mesh.vertexonboundary & nodeinsideicefront);25 incontour=ContourToMesh(md.mesh.elements,md.mesh.x,md.mesh.y,icefrontfile,'node',2); 26 vertexonicefront=double(md.mesh.vertexonboundary & incontour); 27 27 else 28 28 %Guess where the ice front is 29 vertexonfloatingice=(md.mask.groundedice_levelset<0.); 29 pos=find(sum(md.mask.groundedice_levelset(md.mesh.elements)<0.,2) >0.); 30 vertexonfloatingice=zeros(md.mesh.numberofvertices,1); 31 vertexonfloatingice(md.mesh.elements(pos,:))=1.; 30 32 vertexonicefront=double(md.mesh.vertexonboundary & vertexonfloatingice); 31 33 end
Note:
See TracChangeset
for help on using the changeset viewer.