Changeset 25636


Ignore:
Timestamp:
10/06/20 12:18:22 (4 years ago)
Author:
Mathieu Morlighem
Message:

CHG: cosmetics

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

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/consistency/checkfield.m

    r25381 r25636  
    139139end
    140140
    141 
    142141%check cell
    143142if getfieldvalue(options,'cell',0);
     
    187186        lowerbound=getfieldvalue(options,'>=');
    188187        field2=reshape(field,prod(size(field)),1);
    189         if getfieldvalue(options,'timeseries',0), field2=reshape(field(1:end-1,:),prod(size(field(1:end-1,:))),1); end
     188        if getfieldvalue(options,'timeseries',0),       field2=reshape(field(1:end-1,:),prod(size(field(1:end-1,:))),1); end
    190189        if getfieldvalue(options,'singletimeseries',0), field2=reshape(field(1,:),prod(size(field(1,:))),1); end
    191190        if any(field2<lowerbound),
     
    197196        lowerbound=getfieldvalue(options,'>');
    198197        field2=reshape(field,prod(size(field)),1);
    199         if getfieldvalue(options,'timeseries',0), field2=reshape(field(1:end-1,:),prod(size(field(1:end-1,:))),1); end
     198        if getfieldvalue(options,'timeseries',0),       field2=reshape(field(1:end-1,:),prod(size(field(1:end-1,:))),1); end
    200199        if getfieldvalue(options,'singletimeseries',0), field2=reshape(field(1,:),prod(size(field(1,:))),1); end
    201200        if any(field2<=lowerbound),
  • issm/trunk-jpl/src/m/exp/contourlevelzero.m

    r24029 r25636  
    99%   See also: PLOT_CONTOUR
    1010
     11if isempty(mask)
     12        error('mask provided is empty');
     13end
     14
    1115%process data
    1216if dimension(md.mesh)==3,
    13 %       error('contourlevelzero error message: routine not supported for 3d meshes, project on a layer');
    1417        x = md.mesh.x2d;
    1518        y = md.mesh.y2d;
     
    2730end
    2831
    29 if isempty(mask), error('mask provided is empty'); end
    3032if dimension(md.mesh)==3,
    31         if length(mask)~=md.mesh.numberofvertices2d, error('mask provided should be specified at the vertices of the mesh'); end
     33        if length(mask)~=md.mesh.numberofvertices2d, error('Since this is a 3d model, you need to project the mask on a layer (e.g. project2d(md,mask,0))'); end
    3234else
    3335        if length(mask)~=md.mesh.numberofvertices, error('mask provided should be specified at the vertices of the mesh'); end
Note: See TracChangeset for help on using the changeset viewer.