Skip to content

Commit 8c56084

Browse files
authored
Merge pull request #400 from jgray-19/rfmult_fix
Continue restoration of _pc
2 parents cf26e1e + 6cec98e commit 8c56084

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/mad_dynmap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1114,7 +1114,7 @@ inline void rfcav_kickn (cflw<M> &m, num_t lw, int is)
11141114
bx = p.y*by + p.x*bx;
11151115
by = byt;
11161116

1117-
p.pt -= wchg*w*by*sa;
1117+
p.pt -= wchg/m.pc*w*by*sa;
11181118
}
11191119
}
11201120
mdump(1);

src/madl_dynmap.mad

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1369,7 +1369,7 @@ function M.rfcav_kickn (elm, m, lw, istp) -- [KICKCAV, nmul~=0 or nbsl~=0] --
13691369
bx = y*by + x*bx
13701370
by = byt
13711371

1372-
pt = pt - bdir*omega*by*sa
1372+
pt = pt - bdir*_pc*omega*by*sa
13731373
end
13741374

13751375
m[i].px = px

0 commit comments

Comments
 (0)