Changeset 21453


Ignore:
Timestamp:
12/26/16 18:37:02 (8 years ago)
Author:
Eric.Larour
Message:

CHG: allow shapefiles for rits.

File:
1 edited

Legend:

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

    r21452 r21453  
    130130                        rift=shpread(riftfile);
    131131                end
     132                %read rift file according to its extension:
     133                [path,name,ext]=fileparts(riftfile);
     134                if strcmp(ext,'.exp'),
     135                        rift=expread(riftfile);
     136                elseif strcmp(ext,'.shp'),
     137                        rift=shpread(riftfile);
     138                else
     139                        error(['bamg error message: file ' riftfile ' format not supported (.shp or .exp)']);
     140                end
    132141
    133142                for i=1:length(rift),
Note: See TracChangeset for help on using the changeset viewer.