Changeset 11057


Ignore:
Timestamp:
12/16/11 13:18:21 (13 years ago)
Author:
Mathieu Morlighem
Message:

Added better error message if exp file not found

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/utils/Geometry/FlagElements.m

    r9734 r11057  
    3232                        %does the region domain outline exist or do we have to look for xlim,ylim in basinzoom?
    3333                        if ~exist(region,'file'),
     34                                if (length(region)>3 & ~strcmp(region(end-3),'.exp')),
     35                                        error(['Error: File ' region ' not found!']);
     36                                end
    3437                                [xlim,ylim]=basinzoom('basin',region);
    3538                                flag_nodes=double(md.mesh.x<xlim(2) & md.mesh.x>xlim(1) &  md.mesh.y<ylim(2) & md.mesh.y>ylim(1));
Note: See TracChangeset for help on using the changeset viewer.