From 9b4595711ec9a5fbd8828b12472ff90e3d05a399 Mon Sep 17 00:00:00 2001 From: Craig Warren Date: Sat, 19 Nov 2022 20:43:09 +0000 Subject: [PATCH] Added more comments on dispersive materials --- gprMax/solvers.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gprMax/solvers.py b/gprMax/solvers.py index 3a4dc956..dea1f75c 100644 --- a/gprMax/solvers.py +++ b/gprMax/solvers.py @@ -46,7 +46,10 @@ def create_solver(G): N.B. A large range of different functions exist to advance the time step for dispersive materials. The correct function is set by the 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: G: FDTDGrid class describing a grid in a model. @@ -70,11 +73,9 @@ def create_solver(G): solver = Solver(updates) elif config.sim_config.general['solver'] == 'cuda': updates = CUDAUpdates(G) - #TODO: check/add dispersive updates for CUDA solver = Solver(updates) elif config.sim_config.general['solver'] == 'opencl': updates = OpenCLUpdates(G) - #TODO: check/add dispersive updates for OpenCL solver = Solver(updates) return solver