你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 23:14:03 +08:00
Removed unused funcs
这个提交包含在:
@@ -433,19 +433,6 @@ class CUDAPML(PML):
|
|||||||
1,
|
1,
|
||||||
)
|
)
|
||||||
|
|
||||||
def get_update_funcs(self, kernelselectric, kernelsmagnetic):
|
|
||||||
"""Gets update functions from PML kernels.
|
|
||||||
|
|
||||||
Args:
|
|
||||||
kernelselectric: pycuda SourceModule containing PML kernels for
|
|
||||||
electric updates.
|
|
||||||
kernelsmagnetic: pycuda SourceModule containing PML kernels for
|
|
||||||
magnetic updates.
|
|
||||||
"""
|
|
||||||
|
|
||||||
self.update_electric_dev = kernelselectric.get_function("order" + str(len(self.CFS)) + "_" + self.direction)
|
|
||||||
self.update_magnetic_dev = kernelsmagnetic.get_function("order" + str(len(self.CFS)) + "_" + self.direction)
|
|
||||||
|
|
||||||
def update_electric(self):
|
def update_electric(self):
|
||||||
"""Updates electric field components with the PML correction on the GPU."""
|
"""Updates electric field components with the PML correction on the GPU."""
|
||||||
self.update_electric_dev(
|
self.update_electric_dev(
|
||||||
@@ -549,12 +536,6 @@ class OpenCLPML(PML):
|
|||||||
self.HPhi1_dev = clarray.to_device(self.queue, self.HPhi1)
|
self.HPhi1_dev = clarray.to_device(self.queue, self.HPhi1)
|
||||||
self.HPhi2_dev = clarray.to_device(self.queue, self.HPhi2)
|
self.HPhi2_dev = clarray.to_device(self.queue, self.HPhi2)
|
||||||
|
|
||||||
def set_blocks_per_grid():
|
|
||||||
pass
|
|
||||||
|
|
||||||
def get_update_funcs():
|
|
||||||
pass
|
|
||||||
|
|
||||||
def update_electric(self):
|
def update_electric(self):
|
||||||
"""Updates electric field components with the PML correction on the
|
"""Updates electric field components with the PML correction on the
|
||||||
compute device.
|
compute device.
|
||||||
|
在新工单中引用
屏蔽一个用户