你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 23:14:03 +08:00
Merged the progressbars dictionary assignment with declaration to make the code cleaner.
这个提交包含在:
@@ -225,13 +225,14 @@ class SimulationConfig:
|
||||
# subgrid: whether the simulation uses sub-grids.
|
||||
# precision: data type for electromagnetic field output (single/double).
|
||||
|
||||
self.general = {'solver': 'cpu',
|
||||
self.general = {
|
||||
'solver': 'cpu',
|
||||
'subgrid': False,
|
||||
'precision': 'single'}
|
||||
|
||||
'precision': 'single',
|
||||
'progressbars': args.log_level <= 20,
|
||||
}
|
||||
# Progress bars on stdoout or not - switch off progressbars when
|
||||
# logging level is greater than info (20)
|
||||
self.general['progressbars'] = False if args.log_level > 20 else True
|
||||
|
||||
self.em_consts = {'c': c, # Speed of light in free space (m/s)
|
||||
'e0': e0, # Permittivity of free space (F/m)
|
||||
|
在新工单中引用
屏蔽一个用户