Ignore:
Timestamp:
01/31/17 17:15:36 (8 years ago)
Author:
schlegel
Message:

CHG: update sawtooth test so that plotting works correctly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/test/NightlyRun/test1501.m

    r21056 r21505  
    108108        for t=starttime:endtime
    109109                thickness = [thickness (md.results.TransientSolution(t).Thickness)];
    110                 volume = [volume mean(md.results.TransientSolution(t).Thickness.value,2).*areas];
     110                volume = [volume mean(md.results.TransientSolution(t).Thickness(md.mesh.elements),2).*areas];
    111111                massbal = [massbal (md.results.TransientSolution(t).SmbMassBalance)];
    112112                velocity = [velocity (md.results.TransientSolution(t).Vel)];
     
    132132                [data datatype]=processdata(md,results(i).(field),options);
    133133
    134                 titlestring=[field ' at time ' num2str(results(i).time/md.constants.yts) ' year'];
     134                titlestring=[field ' at time ' num2str(results(i).time) ' year'];
    135135                plot_unit(x,y,z,elements,data,is2d,isplanet,datatype,options)
    136136                options=changefieldvalue(options,'title',titlestring);
     
    147147                [data datatype]=processdata(md,results(i).(field),options);
    148148
    149                 titlestring=[field ' at time ' num2str(results(i).time/md.constants.yts) ' year'];
     149                titlestring=[field ' at time ' num2str(results(i).time) ' year'];
    150150                plot_unit(x,y,z,elements,data,is2d,isplanet,datatype,options)
    151151                options=changefieldvalue(options,'title',titlestring);
     
    196196                else
    197197                        frame=getframe(gcf);
    198                         images(:,:,1,count) = rgb2ind(frame.cdata,map,'nodither');
     198                        images(:,:,1,count) = rgb2ind(frame.cdata,[map; map],'nodither');
    199199                end
    200200
Note: See TracChangeset for help on using the changeset viewer.