Skip to content

Commit f653aa8

Browse files
authored
Merge pull request #150 from askhamwhat/rcip-recenter
Rcip recenter
2 parents 12527ff + 238a511 commit f653aa8

File tree

3 files changed

+66
-249
lines changed

3 files changed

+66
-249
lines changed

chunkie/+chnk/+rcip/Rcompchunk.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function [R,rcipsav]=Rcompchunk(chnkr,iedgechunks,fkern,ndim, ...
1+
function [R,rcipsav]=Rcompchunk(chnkr,iedgechunks,fkern,ndim,vert0, ...
22
Pbc,PWbc,nsub,starL,circL,starS,circS,ilist,starL1,circL1,...
33
sbclmat,sbcrmat,lvmat,rvmat,u,opts)
44
%CHNK.RCIP.Rcompchunk carry out the forward recursion for computing
@@ -44,12 +44,12 @@
4444
rcipsav.ilist = ilist;
4545
rcipsav.nsub = nsub;
4646

47-
if (nargin < 15 || isempty(sbclmat) || isempty(sbcrmat) || ...
47+
if (nargin < 16 || isempty(sbclmat) || isempty(sbcrmat) || ...
4848
isempty(lvmat) || isempty(rvmat) || isempty(u))
4949
[sbclmat,sbcrmat,lvmat,rvmat,u] = chnk.rcip.shiftedlegbasismats(k);
5050
end
5151

52-
if nargin < 20
52+
if nargin < 21
5353
opts = [];
5454
end
5555

@@ -165,7 +165,7 @@
165165
fkernlocal = fkern;
166166
if isa(fkern, 'kernel')
167167
if isa(fkern.shifted_eval, 'function_handle')
168-
fkernlocal.eval = @(s,t) fkern.shifted_eval(s, t, ctr(:,1));
168+
fkernlocal.eval = @(s,t) fkern.shifted_eval(s, t, vert0);
169169
end
170170
end
171171
else
@@ -178,7 +178,7 @@
178178
if isa(fkern(ici,icj), 'kernel')
179179
if isa(fkern(ici,icj).shifted_eval, 'function_handle')
180180
fkernlocal(i,j).eval = ...
181-
@(s,t) fkern(ici,icj).shifted_eval(s,t,ctr(:,i));
181+
@(s,t) fkern(ici,icj).shifted_eval(s,t,vert0);
182182
end
183183
end
184184
end

chunkie/chunkermat.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,8 @@
534534
optsrcip.corrections = false;
535535
optsrcip.rcip_savedepth = rcip_savedepth;
536536

537-
[R,rcipsav{ivert}] = chnk.rcip.Rcompchunk(chnkrs,iedgechunks,kern,ndim, ...
537+
538+
[R,rcipsav{ivert}] = chnk.rcip.Rcompchunk(chnkrs,iedgechunks,kern,ndim,chnkobj.verts(:,ivert), ...
538539
Pbc,PWbc,nsub,starL,circL,starS,circS,ilist,starL1,circL1,...
539540
sbclmat,sbcrmat,lvmat,rvmat,u,optsrcip);
540541

0 commit comments

Comments
 (0)