Changeset 8128


Ignore:
Timestamp:
05/04/11 09:52:05 (14 years ago)
Author:
Mathieu Morlighem
Message:

minor fixes

Location:
issm/trunk/src/m/model
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/model/ismodelselfconsistent.m

    r8121 r8128  
    152152end
    153153if ~ismember(md.rheology_law,[NoneEnum PatersonEnum ArrheniusEnum]),
    154         error(['model not consistent: model ' md.name ' hydrostatic_adjustment field should be AbsoluteEnum or IncrementalEnum']);
     154        error(['model not consistent: model ' md.name ' rheology_law field should be NoneEnum, PatersonEnum or ArrheniusEnum']);
    155155end
    156156%}}}
  • issm/trunk/src/m/model/plot/applyoptions.m

    r8114 r8128  
    1 function applyoptions(md,data,options,plothandle)
     1function applyoptions(md,data,options)
    22%APPLYOPTIONS - apply the options to current plot
    33%
     
    447447%lighting
    448448if strcmpi(getfieldvalue(options,'light','off'),'on'),
    449         set(plothandle,'FaceLighting','gouraud','FaceColor','interp','AmbientStrength',0.5);
     449        set(gca,'FaceLighting','gouraud','FaceColor','interp','AmbientStrength',0.5);
    450450        light('Position',[0 0.1 0.1],'Style','infinite');
    451451end
  • issm/trunk/src/m/model/plot/plot_manager.m

    r8001 r8128  
    178178
    179179%plot unit
    180 h=plot_unit(x,y,z,elements,data2,is2d,datatype,options);
     180plot_unit(x,y,z,elements,data2,is2d,datatype,options);
    181181       
    182182
     
    189189end
    190190
    191 applyoptions(md,data2,options,h);
     191applyoptions(md,data2,options);
    192192
    193193%do ground overlay on kml plot_unit?
  • issm/trunk/src/m/model/plot/plot_unit.m

    r8001 r8128  
    1 function h=plot_unit(x,y,z,elements,data,is2d,datatype,options)
     1function plot_unit(x,y,z,elements,data,is2d,datatype,options)
    22%PLOT_UNIT - unit plot, display data
    33%
    44%   Usage:
    5 %      h=plot_unit(x,y,z,elements,data,is2d,datatype,options);
     5%      plot_unit(x,y,z,elements,data,is2d,datatype,options);
    66%
    77%   See also: PLOTMODEL, PLOT_MANAGER
     
    1717                pos=find(~isnan(data)); %needed for element on water
    1818                if is2d,
    19                         A=elements(pos,1); B=elements(pos,2); C=elements(pos,3); h=patch( 'Faces', [A B C], 'Vertices', [x y z],'CData', data(pos),'FaceColor','flat','EdgeColor',edgecolor);
     19                        A=elements(pos,1); B=elements(pos,2); C=elements(pos,3); patch( 'Faces', [A B C], 'Vertices', [x y z],'CData', data(pos),'FaceColor','flat','EdgeColor',edgecolor);
    2020                else
    2121                        A=elements(pos,1); B=elements(pos,2); C=elements(pos,3); D=elements(pos,4); E=elements(pos,5); F=elements(pos,6);
    22                         h=patch( 'Faces', [A B C],  'Vertices', [x y z],'CData', data(pos),'FaceColor','flat','EdgeColor',edgecolor);
     22                        patch( 'Faces', [A B C],  'Vertices', [x y z],'CData', data(pos),'FaceColor','flat','EdgeColor',edgecolor);
    2323                        patch( 'Faces', [D E F],  'Vertices', [x y z],'CData', data(pos),'FaceColor','flat','EdgeColor',edgecolor);
    2424                        patch( 'Faces', [A B E D],'Vertices', [x y z],'CData', data(pos),'FaceColor','flat','EdgeColor',edgecolor);
     
    3232                if is2d,
    3333                        A=elements(:,1); B=elements(:,2); C=elements(:,3);
    34                         h=patch( 'Faces', [A B C], 'Vertices', [x y z],'FaceVertexCData', data(:),'FaceColor','interp','EdgeColor',edgecolor);
     34                        patch( 'Faces', [A B C], 'Vertices', [x y z],'FaceVertexCData', data(:),'FaceColor','interp','EdgeColor',edgecolor);
    3535                else
    3636                        A=elements(:,1); B=elements(:,2); C=elements(:,3); D=elements(:,4); E=elements(:,5); F=elements(:,6);
    37                         h=patch( 'Faces', [A B C],  'Vertices', [x y z],'FaceVertexCData', data(:),'FaceColor','interp','EdgeColor',edgecolor);
     37                        patch( 'Faces', [A B C],  'Vertices', [x y z],'FaceVertexCData', data(:),'FaceColor','interp','EdgeColor',edgecolor);
    3838                        patch( 'Faces', [D E F],  'Vertices', [x y z],'FaceVertexCData', data(:),'FaceColor','interp','EdgeColor',edgecolor);
    3939                        patch( 'Faces', [A B E D],'Vertices', [x y z],'FaceVertexCData', data(:),'FaceColor','interp','EdgeColor',edgecolor);
     
    5555
    5656                if is2d,
    57                         h=patch( 'Faces',elements,'Vertices',[x y],'CData',data,'FaceColor','interp','EdgeColor',edgecolor);
     57                        patch( 'Faces',elements,'Vertices',[x y],'CData',data,'FaceColor','interp','EdgeColor',edgecolor);
    5858                else
    5959                        A=elements(:,1); B=elements(:,2); C=elements(:,3); D=elements(:,4); E=elements(:,5); F=elements(:,6);
    60                         h=patch( 'Faces', [A B C], 'Vertices', [x y z],'CData', data,'FaceColor','interp','EdgeColor',edgecolor);
     60                        patch( 'Faces', [A B C], 'Vertices', [x y z],'CData', data,'FaceColor','interp','EdgeColor',edgecolor);
    6161                        patch( 'Faces', [D E F], 'Vertices', [x y z],'CData', data,'FaceColor','interp','EdgeColor',edgecolor);
    6262                        patch( 'Faces', [A B E D], 'Vertices', [x y z],'CData', data,'FaceColor','interp','EdgeColor',edgecolor);
     
    7070                if is2d,
    7171                        A=elements(:,1); B=elements(:,2); C=elements(:,3);
    72                         h=patch( 'Faces', [A B C], 'Vertices', [x y z],'CData', data(:),'FaceColor','flat','EdgeColor',edgecolor);
     72                        patch( 'Faces', [A B C], 'Vertices', [x y z],'CData', data(:),'FaceColor','flat','EdgeColor',edgecolor);
    7373                else
    7474                        A=elements(:,1); B=elements(:,2); C=elements(:,3); D=elements(:,4); E=elements(:,5); F=elements(:,6);
    75                         h=patch( 'Faces', [A B C],  'Vertices', [x y z],'CData', data,'FaceColor','flat','EdgeColor',edgecolor);
     75                        patch( 'Faces', [A B C],  'Vertices', [x y z],'CData', data,'FaceColor','flat','EdgeColor',edgecolor);
    7676                        patch( 'Faces', [D E F],  'Vertices', [x y z],'CData', data,'FaceColor','flat','EdgeColor',edgecolor);
    7777                        patch( 'Faces', [A B E D],'Vertices', [x y z],'CData', data,'FaceColor','flat','EdgeColor',edgecolor);
Note: See TracChangeset for help on using the changeset viewer.