|
afterframe_1drad.m.html |
|
|
Source file: afterframe_1drad.m
|
|
Directory: /Users/rjl/git/rjleveque/clawpack-4.6.3/matlab
|
|
Converted: Mon Jan 21 2013 at 20:15:59
using clawcode2html
|
|
This documentation file will
not reflect any later changes in the source file.
|
% Sample afterframe.m file for 2d or 3d that compares scatter plot results
% plotted using PlotType=4 to a fine-grid 1d result in the subdirectory
% 1dref (e.g. for radially-symmetric problems). A function map1d.m
% may also need to be provided so that the scatter plot uses the appropriate
% 1d variable.
%
if PlotType==4
dir = './1dref/';
dim = 1;
[amrdata1d,t1d] = readamrdata(dim,Frame,dir);
if isempty(t1d)
disp('Run xclaw in 1dref to generate 1d reference solution')
else
hold on;
[q1d,x1d] = plotframe1ez(amrdata1d,mq,'r-');
hold off;
end
end