你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-08 15:27:57 +08:00
Refactor Domain UserObject
Model extents nx, ny and nz are now stored in the model. Currently these are copied to FDTDGrid, but will be changed to local grid extents when MPI implementation is added
这个提交包含在:
@@ -56,6 +56,10 @@ class Model:
|
||||
def __init__(self):
|
||||
self.title = ""
|
||||
|
||||
self.nx = 0
|
||||
self.ny = 0
|
||||
self.nz = 0
|
||||
|
||||
self.G = self._create_grid()
|
||||
# Monitor memory usage
|
||||
self.p = None
|
||||
@@ -127,6 +131,10 @@ class Model:
|
||||
|
||||
def build_geometry(self):
|
||||
logger.info(config.get_model_config().inputfilestr)
|
||||
# TODO: Make this correctly set local nx, ny and nz when using MPI
|
||||
self.G.nx = self.nx
|
||||
self.G.ny = self.ny
|
||||
self.G.nz = self.nz
|
||||
self.G.build()
|
||||
|
||||
def reuse_geometry(self):
|
||||
|
在新工单中引用
屏蔽一个用户