你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 23:14:03 +08:00
Added error message for 2D models and sub-grids.
这个提交包含在:
@@ -121,6 +121,13 @@ class Domain(UserObjectSingle):
|
||||
G.calculate_dt()
|
||||
|
||||
logger.info(f'Mode: {config.get_model_config().mode}')
|
||||
|
||||
# Sub-grids cannot be used with 2D models. There would typically be
|
||||
# minimal performance benefit with sub-gridding and 2D models.
|
||||
if '2D' in config.get_model_config().mode and config.sim_config.general['subgrid']:
|
||||
logger.exception('Sub-gridding cannot be used with 2D models')
|
||||
raise ValueError
|
||||
|
||||
logger.info(f'Time step (at CFL limit): {G.dt:g} secs')
|
||||
|
||||
|
||||
|
在新工单中引用
屏蔽一个用户