Skip to content

Commit 45bc6bc

Browse files
authored
Seperate rcip adaptive correction
1 parent 12527ff commit 45bc6bc

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

chunkie/chunkermat.m

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
% is not defined by the kernel object. Supported
3131
% types are:
3232
% smooth => smooth kernels
33-
% removable => piecewise smooth kernels
3433
% log => logarithmically singular kernels or
3534
% smooth times log + smooth
3635
% pv => principal value singular kernels + log
@@ -73,6 +72,9 @@
7372
% opts.adaptive_correction = (false) flag for whether to use
7473
% adaptive quadrature for near touching panels on
7574
% different chunkers
75+
% opts.rcip_adaptive_correction = (false) flag for whether to use
76+
% adaptive quadrature for near touching panels on
77+
% different chunkers within rcip
7678
% opts.eps = (1e-14) tolerance for adaptive quadrature
7779
% ilist - cell array of integer arrays ([]), list of panel interactions that
7880
% should be ignored when constructing matrix entries or quadrature
@@ -142,6 +144,7 @@
142144
nsub = 40;
143145
rcip_savedepth = 10;
144146
adaptive_correction = false;
147+
rcip_adaptive_correction = false;
145148
sing = 'log';
146149

147150
% get opts from struct if available
@@ -191,6 +194,9 @@
191194
if (isfield(opts,'adaptive_correction'))
192195
adaptive_correction = opts.adaptive_correction;
193196
end
197+
if (isfield(opts,'rcip_adaptive_correction'))
198+
rcip_adaptive_correction = opts.rcip_adaptive_correction;
199+
end
194200

195201
nchunkers = length(chnkrs);
196202

@@ -380,15 +386,6 @@
380386
auxquads = chnk.quadggq.setup(k,type);
381387
opts.auxquads.ggqlog = auxquads;
382388
end
383-
elseif strcmpi(sing, 'removable')
384-
type = 'removable';
385-
if (isfield(opts,'auxquads') && isfield(opts.auxquads,'ggqremovable'))
386-
auxquads = opts.auxquads.ggqremovable;
387-
else
388-
k = chnkr.k;
389-
auxquads = chnk.quadggq.setup(k, type);
390-
opts.auxquads.ggqremovable = auxquads;
391-
end
392389
elseif strcmpi(singi,'log')
393390
type = 'log';
394391
if (isfield(opts,'auxquads') &&isfield(opts.auxquads,'ggqlog'))
@@ -533,6 +530,7 @@
533530
optsrcip.nonsmoothonly = false;
534531
optsrcip.corrections = false;
535532
optsrcip.rcip_savedepth = rcip_savedepth;
533+
optsrcip.adaptive_correction = rcip_adaptive_correction;
536534

537535
[R,rcipsav{ivert}] = chnk.rcip.Rcompchunk(chnkrs,iedgechunks,kern,ndim, ...
538536
Pbc,PWbc,nsub,starL,circL,starS,circS,ilist,starL1,circL1,...

0 commit comments

Comments
 (0)