Changeset 21452


Ignore:
Timestamp:
12/23/16 15:37:10 (8 years ago)
Author:
schlegel
Message:

CHG: add shape file option to mesh calls

Location:
issm/trunk-jpl/src/m/mesh
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/mesh/bamg.m

    r19198 r21452  
    122122                %Check that file exists
    123123                riftfile=getfieldvalue(options,'rifts');
     124                [pathr,namer,extr]=fileparts(riftfile);
    124125                if ~exist(riftfile,'file')
    125126                        error(['bamg error message: file ' riftfile ' not found ']);
    126                 end
    127                 rift=expread(riftfile);
     127                elseif strcmp(extr,'.exp'),
     128                        rift=expread(riftfile);
     129                elseif strcmp(extr,'.shp'),
     130                        rift=shpread(riftfile);
     131                end
    128132
    129133                for i=1:length(rift),
  • issm/trunk-jpl/src/m/mesh/rifts/rifttipsonmesh.m

    r13806 r21452  
    44
    55%read rifts from outline file
    6 rifts=expread(riftoutline);
     6%rifts=expread(riftoutline);
     7[pathr,namer,extr]=fileparts(riftoutline);
     8if strcmp(extr,'.exp'),
     9        rifts=expread(riftoutline);
     10elseif strcmp(extr,'.shp'),
     11        rifts=shpread(riftoutline);
     12end
    713
    814tips=[];
Note: See TracChangeset for help on using the changeset viewer.