Changeset 740


Ignore:
Timestamp:
06/03/09 08:48:38 (15 years ago)
Author:
Mathieu Morlighem
Message:

results are now in md.results

Location:
issm/trunk/src/m/classes/public/plot
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/classes/public/plot/plot_transient_movie.m

    r338 r740  
    1616                end
    1717        else
    18                 choice=input('Which field do you want to plot? (vel/vx/vy/vz/thickness/surface/bed/temperature)','s');
     18                choice=input('Which field do you want to plot? (vel/vx/vy/vz/thickness/surface/bed/temperature/melting)','s');
    1919                if ~strcmp(choice,'vel') & ~strcmp(choice,'vx') & ~strcmp(choice,'vy') & ~strcmp(choice,'vz') & ~strcmp(choice,'temperature') & ~strcmp(choice,'thickness') & ~strcmp(choice,'bed') & ~strcmp(choice,'surface')
    2020                        disp('plot_transient_movie error message: input not supported yet, exiting...')
     
    2727
    2828        %loop over the time steps
    29         for i=1:length(md.transient_results)
    30                 eval(['data=md.transient_results(' num2str(i) ').' num2str(choice) ';']);
     29        for i=1:length(md.results.transient)
     30                eval(['data=md.results.transient(' num2str(i) ').' num2str(choice) ';']);
    3131
    3232                %process data
    3333                [data isongrid]=processdata(md,data,options_structure);
    34                 titlestring=[choice ' at time ' num2str(md.transient_results(i).time) ' year'];
     34                titlestring=[choice ' at time ' num2str(md.results.transient(i).time) ' year'];
    3535                plot_unit(x,y,z,elements,data,isongrid,is2d,options_structure)
    3636                apply_options_movie(md,options_structure,titlestring);
  • issm/trunk/src/m/classes/public/plot/plot_transient_results.m

    r1 r740  
    2323
    2424string='plotmodel(md';
    25 for i=1:length(md.transient_results),
    26         string=[string ',''data'',''transient_results(' num2str(i) ').thickness'',''title'',''Thickness at time ' num2str(md.transient_results(i).time) ' a'''];
     25for i=1:length(md.results.transient),
     26        string=[string ',''data'',''results.transient(' num2str(i) ').thickness'',''title'',''Thickness at time ' num2str(md.results.transient(i).time) ' a'''];
    2727end
    2828string=[string ',''figure'',1,''colorbar#all'',''on'',''fontsize'',' num2str(options_structure.fontsize) ',''fontweight'',' num2str(options_structure.fontweight) ');'];
     
    3131
    3232string='plotmodel(md';
    33 for i=1:length(md.transient_results),
    34         string=[string ',''data'',''transient_results(' num2str(i) ').vel'',''view'',3,''title'',''Velocity at time ' num2str(md.transient_results(i).time) ' a'''];
     33for i=1:length(md.results.transient),
     34        string=[string ',''data'',''results.transient(' num2str(i) ').vel'',''view'',3,''title'',''Velocity at time ' num2str(md.results.transient(i).time) ' a'''];
    3535end
    3636string=[string ',''figure'',2,''colorbar#all'',''on'',''fontsize'',' num2str(options_structure.fontsize) ',''fontweight'',' num2str(options_structure.fontweight)  ');'];
     
    3939
    4040string='plotmodel(md';
    41 for i=1:length(md.transient_results),
    42         string=[string ',''data'',''transient_results(' num2str(i) ').temperature'',''view'',3,''title'',''Temperature at time ' num2str(md.transient_results(i).time) ' a'''];
     41for i=1:length(md.results.transient),
     42        string=[string ',''data'',''results.transient(' num2str(i) ').temperature'',''view'',3,''title'',''Temperature at time ' num2str(md.results.transient(i).time) ' a'''];
    4343end
    4444string=[string ',''figure'',3,''colorbar#all'',''on'',''view'',3,''fontsize'',' num2str(options_structure.fontsize) ',''fontweight'',' num2str(options_structure.fontweight)  ');'];
     
    4747
    4848string='plotmodel(md';
    49 for i=2:length(md.transient_results),
    50         string=[string ',''data'',md.transient_results(' num2str(i) ').thickness-md.transient_results(' num2str(i-1) ').thickness,''title'',''Delta thickness at time ' num2str(md.transient_results(i).time) ' a'''];
     49for i=2:length(md.results.transient),
     50        string=[string ',''data'',md.results.transient(' num2str(i) ').thickness-md.results.transient(' num2str(i-1) ').thickness,''title'',''Delta thickness at time ' num2str(md.results.transient(i).time) ' a'''];
    5151end
    5252string=[string ',''figure'',4,''colorbar#all'',''on'',''fontsize'',' num2str(options_structure.fontsize) ',''fontweight'',' num2str(options_structure.fontweight)  ');'];
     
    5555
    5656string='plotmodel(md';
    57 for i=2:length(md.transient_results),
    58         string=[string ',''data'',md.transient_results(' num2str(i) ').vel-md.transient_results(' num2str(i-1) ').vel,''view'',3,''title'',''Delta velocity at time ' num2str(md.transient_results(i).time) ' a'''];
     57for i=2:length(md.results.transient),
     58        string=[string ',''data'',md.results.transient(' num2str(i) ').vel-md.results.transient(' num2str(i-1) ').vel,''view'',3,''title'',''Delta velocity at time ' num2str(md.results.transient(i).time) ' a'''];
    5959end
    6060string=[string ',''figure'',5,''colorbar#all'',''on'',''fontsize'',' num2str(options_structure.fontsize) ',''fontweight'',' num2str(options_structure.fontweight)  ');'];
     
    6363
    6464string='plotmodel(md';
    65 for i=2:length(md.transient_results),
    66         string=[string ',''data'',md.transient_results(' num2str(i) ').temperature-md.transient_results(' num2str(i-1) ').temperature,''view'',3,''title'',''Delta temperature at time ' num2str(md.transient_results(i).time) ' a'''];
     65for i=2:length(md.results.transient),
     66        string=[string ',''data'',md.results.transient(' num2str(i) ').temperature-md.results.transient(' num2str(i-1) ').temperature,''view'',3,''title'',''Delta temperature at time ' num2str(md.results.transient(i).time) ' a'''];
    6767end
    6868string=[string ',''figure'',6,''colorbar#all'',''on'',''fontsize'',' num2str(options_structure.fontsize) ',''fontweight'',' num2str(options_structure.fontweight)  ');'];
Note: See TracChangeset for help on using the changeset viewer.