Mercurial > repos > public > sbplib
view +noname/plotSolutions.m @ 884:7d4f57725192 feature/poroelastic
Add a getBoundaryOperator method in multiblock.DiffOp that uses the the diffop get_boundary_operator method rather than its properties. Werpers might not like this.
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Fri, 02 Nov 2018 10:47:03 -0700 |
parents | 7bb2ef637142 |
children |
line wrap: on
line source
function plotSolutions(filename, figename_prefix, plot_type) default_arg('figename_prefix',[]); default_arg('plot_type','plot') save_figures = ~isempty(figename_prefix); sf = SolutionFile(filename); for i = 1:length(sf.keys) key = sf.keys{i}; entry = sf.get(key); name = key.name; order = key.order; m = key.m; T = key.T; repr = entry.repr; runtime = entry.runtime; k = entry.k; discr = entry.discr; [update, hand] = discr.setupPlot(plot_type); update(repr); if save_figures figname = sprintf('%s_%s_o%d_m%d_T%d',figename_prefix,name,order,m,i); fprintf('Saving figure to ''%s''\n',figname); saveeps(hand,figname); end end end