Skip to content

Commit 513c64b

Browse files
committed
Small bugfix
1 parent f3a33b0 commit 513c64b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

PyPIC_Scatter_Gather.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ def gather_phi(self, x_mp, y_mp):
172172

173173
if len(x_mp)>0:
174174
## compute beam potential
175-
phi_sc_n, _ = iff.int_field(x_mp,y_mp,self.bias_x,self.bias_y,self.Dh,
176-
self.Dh, self.phi, self.phi)
175+
phi_sc_n, _ = iff.int_field(x_mp,y_mp,self.bias_x,self.bias_y,self.dx,
176+
self.dy, self.phi, self.phi)
177177

178178
else:
179179
phi_sc_n=0.
@@ -187,8 +187,8 @@ def gather_rho(self, x_mp, y_mp):
187187

188188
if len(x_mp)>0:
189189
## compute beam distribution
190-
rho_sc_n, _ = iff.int_field(x_mp,y_mp,self.bias_x,self.bias_y,self.Dh,
191-
self.Dh, self.rho, self.rho)
190+
rho_sc_n, _ = iff.int_field(x_mp,y_mp,self.bias_x,self.bias_y,self.dx,
191+
self.dy, self.rho, self.rho)
192192

193193
else:
194194
rho_sc_n=0.

0 commit comments

Comments
 (0)