Skip to content
This repository has been archived by the owner. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions lcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ def calculate_Ez(config, jx, jy):
# hidden inside dirichlet_matrix.
Ez_inner = dst2d(f)
Ez = cp.pad(Ez_inner, 1, 'constant', constant_values=0)
numba.cuda.synchronize()
return Ez


Expand Down Expand Up @@ -357,7 +356,6 @@ def calculate_Bz(config, jx, jy):
# and we take all scaling matters into account with a single factor
# hidden inside neumann_matrix.
Bz = dct2d(f)
numba.cuda.synchronize()

Bz -= Bz.mean() # Integral over Bz must be 0.

Expand Down Expand Up @@ -387,7 +385,6 @@ def move_estimate_wo_fields(config,

x_offt, y_offt = x - x_init, y - y_init

numba.cuda.synchronize()
return x_offt, y_offt


Expand Down Expand Up @@ -685,7 +682,6 @@ def deposit(config, ro_initial, x_offt, y_offt, m, q, px, py, pz, virt_params):
ro, jx, jy, jz)
# Also add the background ion charge density.
ro += ro_initial # Do it last to preserve more float precision
numba.cuda.synchronize()
return ro, jx, jy, jz


Expand Down Expand Up @@ -819,7 +815,6 @@ def move_smart(config,
Ex_avg, Ey_avg, Ez_avg, Bx_avg, By_avg, Bz_avg,
x_offt_new.ravel(), y_offt_new.ravel(),
px_new.ravel(), py_new.ravel(), pz_new.ravel())
numba.cuda.synchronize()
return x_offt_new, y_offt_new, px_new, py_new, pz_new


Expand Down