Add line to clear model_configs list.

这个提交包含在:
Craig Warren
2019-12-11 13:48:57 +00:00
父节点 91f67ff0d8
当前提交 ef445d0704

查看文件

@@ -78,12 +78,16 @@ class Context:
class NoMPIContext(Context):
"""Standard context - models are run one after another and each model
is parallelised using either OpenMP (CPU) or CUDA (GPU).
can exploit parallelisation using either OpenMP (CPU) or CUDA (GPU).
"""
def _run(self):
"""Specialise how the models are farmed out."""
# Clear list of model configs. It can be retained with gprMax is
# called in a loop, and want to avoid this.
config.model_configs = []
for i in self.model_range:
config.model_num = i
write_model_config()