Skip to content

Commit 760bd69

Browse files
committed
Add class to pre-compiled kernels
1 parent e317100 commit 760bd69

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

xfields/prebuilt_kernel_definitions/element_inits.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,8 @@
8686
'_prebuilding_kernels': True, # Avoid unnecessary compilation
8787
}
8888
},
89+
'ElectronLensInterpolated': {
90+
'x_grid': np.array([-1., 0., 1.]),
91+
'y_grid': np.array([-1., 0., 1.]),
92+
},
8993
}

xfields/prebuilt_kernel_definitions/element_types.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
xf.BeamBeamPIC3D,
1313
xf.SpaceCharge3D,
1414
xf.ElectronCloud,
15+
xf.ElectronLensInterpolated,
1516
]
1617

1718
NON_TRACKING_ELEMENTS = [

0 commit comments

Comments
 (0)