Skip to content

Commit

Permalink
In ForestClaw, Don't mask patches after adding contour lines; remove …
Browse files Browse the repository at this point in the history
…unnecessary commans
  • Loading branch information
donnaaboise committed Dec 8, 2023
1 parent 7b5d458 commit 8a94753
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
18 changes: 9 additions & 9 deletions src/matlab/mask_patches_all.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ function mask_patches_all(slice)

% Now, level vis_level(l+1) should mask vis_level(l)

for l = 1:length(vis_levels),
level = vis_levels(l);
pvecl = slice{level};
reset_level(pvecl);
if (l < length(vis_levels))
pvecu = slice{vis_levels(l+1)};
mask_patches2(pvecl,pvecu);
end;
end;
for l = 1:length(vis_levels)
level = vis_levels(l);
pvecl = slice{level};
reset_level(pvecl);
if (l < length(vis_levels))
pvecu = slice{vis_levels(l+1)};
mask_patches2(pvecl,pvecu);
end
end
6 changes: 3 additions & 3 deletions src/matlab/set_slices.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ function set_slices(sdir,slices)

if (~strcmp(ftag,'AMRClawSlicePlot'))
error('get_slices : Current figure does not contain slice data');
end;
end

amrplot = get(gcf,'UserData');
slice_handles = amrplot.slices;

idir = findstr(lower(sdir),'xyz');
idir = strfind('xyz',lower(sdir));
if (isempty(idir))
error('set_slices : sdir must be equal to ''x'', ''y'', or ''z''');
end;
end

slice_handles{idir} = slices;
amrplot.slices = slice_handles;
Expand Down
4 changes: 2 additions & 2 deletions src/matlab/set_value.m
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function set_value(a,a_user,a_default)
%

if (~evalin('base',['exist(''',a_user,''')']))
assignin('base',a,a_default);
assignin('base',a,a_default);
else
evalin('base',[a, ' = ',a_user,';']);
evalin('base',[a, ' = ',a_user,';']);
end

0 comments on commit 8a94753

Please sign in to comment.