你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-08 07:24:19 +08:00
Added more comments on dispersive materials
这个提交包含在:
@@ -47,6 +47,9 @@ def create_solver(G):
|
|||||||
dispersive materials. The correct function is set by the
|
dispersive materials. The correct function is set by the
|
||||||
set_dispersive_updates method, based on the required numerical
|
set_dispersive_updates method, based on the required numerical
|
||||||
precision and dispersive material type.
|
precision and dispersive material type.
|
||||||
|
This is done for solvers running on CPU, i.e. where Cython is used.
|
||||||
|
CUDA and OpenCL dispersive material functions are handled through
|
||||||
|
templating and substitution at runtime.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
G: FDTDGrid class describing a grid in a model.
|
G: FDTDGrid class describing a grid in a model.
|
||||||
@@ -70,11 +73,9 @@ def create_solver(G):
|
|||||||
solver = Solver(updates)
|
solver = Solver(updates)
|
||||||
elif config.sim_config.general['solver'] == 'cuda':
|
elif config.sim_config.general['solver'] == 'cuda':
|
||||||
updates = CUDAUpdates(G)
|
updates = CUDAUpdates(G)
|
||||||
#TODO: check/add dispersive updates for CUDA
|
|
||||||
solver = Solver(updates)
|
solver = Solver(updates)
|
||||||
elif config.sim_config.general['solver'] == 'opencl':
|
elif config.sim_config.general['solver'] == 'opencl':
|
||||||
updates = OpenCLUpdates(G)
|
updates = OpenCLUpdates(G)
|
||||||
#TODO: check/add dispersive updates for OpenCL
|
|
||||||
solver = Solver(updates)
|
solver = Solver(updates)
|
||||||
|
|
||||||
return solver
|
return solver
|
||||||
|
在新工单中引用
屏蔽一个用户