Changeset 16269


Ignore:
Timestamp:
09/27/13 16:34:18 (11 years ago)
Author:
Eric.Larour
Message:

CHG: added hook up to use shape file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/boundaryconditions/SetMarineIceSheetBC.m

    r16187 r16269  
    2323                error(['SetMarineIceSheetBC error message: ice front file ' icefrontfile ' not found']);
    2424        end
    25         incontour=ContourToMesh(md.mesh.elements,md.mesh.x,md.mesh.y,icefrontfile,'node',2);
     25        [path,name,ext]=fileparts(icefrontfile);
     26        if strcmp(ext,'.shp'),
     27                contours=shpread(icefrontfile);
     28        elseif strcmp(ext,'.exp'),
     29                contours=expread(icefrontfile);
     30        end
     31        incontour=ContourToMesh(md.mesh.elements,md.mesh.x,md.mesh.y,contours,'node',2);
    2632        vertexonicefront=double(md.mesh.vertexonboundary & incontour);
    2733else
Note: See TracChangeset for help on using the changeset viewer.