Changeset 18255


Ignore:
Timestamp:
07/17/14 08:26:59 (11 years ago)
Author:
Mathieu Morlighem
Message:

CHG: can just call plotmodel(md,'data','transient_movie') now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/plot/plot_transient_movie.m

    r14426 r18255  
    1313                field=getfieldvalue(options,'transient_movie_field');
    1414        else
    15                 error('specify transient_movie_field in options list');
     15                disp('List of available fields:');
     16                F=fields(md.results.TransientSolution(1));
     17                num = [];
     18                for i=1:numel(F),
     19                        if ~strcmp(F{i},'time') & ...
     20                                ~strcmp(F{i},'step') & ...
     21                                ~strcmp(F{i},'errlog') & ...
     22                                ~strcmp(F{i},'outlog') & ...
     23                                ~strcmp(F{i},'MaxIterationConvergenceFlag') & ...
     24                                ~strcmp(F{i},'SolutionType'),
     25                                disp(['   ' num2str(i) ': ' F{i} ]);
     26                                num = [num i];
     27                        end
     28                end
     29                choice=input(['please enter the field number? (between ' num2str(min(num)) ' and ' num2str(max(num)) ')  ']);
     30                field =  F{choice};
    1631        end
    1732
     
    3348                        [data datatype]=processdata(md,results(i).(field),options);
    3449
     50                        clf;
    3551                        titlestring=[field ' at time ' num2str(results(i).time/md.constants.yts) ' year'];
    3652                        plot_unit(x,y,z,elements,data,is2d,isplanet,datatype,options)
     
    4965                                end
    5066                        else
    51                                 pause(0.1)
     67                                pause(0.5)
    5268                        end
    5369                        nstep=nstep+1;
Note: See TracChangeset for help on using the changeset viewer.