Improve method to check if subgrid.

这个提交包含在:
Craig Warren
2020-11-23 10:16:28 +00:00
父节点 ded9a457f3
当前提交 2d46fd6643

查看文件

@@ -80,7 +80,7 @@ class UserObjectMulti:
string if the grid is the main grid. string if the grid is the main grid.
""" """
if config.sim_config.general['subgrid'] and grid.name != 'main_grid': if isinstance(grid, SubGridBase):
return f'[{grid.name}] ' return f'[{grid.name}] '
else: else:
return '' return ''