Skip to content

Commit

Permalink
avoiding finding self points when we can...
Browse files Browse the repository at this point in the history
  • Loading branch information
askhamwhat committed May 29, 2024
1 parent 10b2692 commit 30814be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion chunkie/+chnk/chunkerkerneval_smooth.m
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
% flag targets that are within 1e-14 of sources
% these are automatically ignored by the fmm and
% in chunkermat corrections
if ~strcmpi(imethod,'fmm')
if ~(strcmpi(imethod,'fmm') && isempty(flag))
flagslf = chnk.flagself(targinfo.r, chnkr.r, 1e-14*diam);
if isempty(flagslf)
selfzero = sparse(opdims(1)*size(targinfo.r(:,:),2), ...
Expand All @@ -76,6 +76,9 @@
selfzero = sparse(flagslftarg,flagslfsrc, 1e-300, ...
opdims(1)*size(targinfo.r(:,:),2), opdims(2)*chnkr.npt);
end
else
selfzero = sparse(opdims(1)*size(targinfo.r(:,:),2), ...
opdims(2)*chnkr.npt);
end

if strcmpi(imethod,'direct')
Expand Down
1 change: 0 additions & 1 deletion devtools/test/chunkermatapplyTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

cparams = [];
cparams.eps = 1.0e-4;
cparams.nover = 3;
pref = [];
pref.k = 16;
narms = 5;
Expand Down

0 comments on commit 30814be

Please sign in to comment.