你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-08 07:24:19 +08:00
message printer
这个提交包含在:
@@ -71,8 +71,8 @@ from .utilities import timer
|
|||||||
|
|
||||||
class Printer():
|
class Printer():
|
||||||
|
|
||||||
def __init__(self, sim_conf):
|
def __init__(self, sim_config):
|
||||||
self.printing = sim_conf.general['messages']
|
self.printing = sim_config.general['messages']
|
||||||
|
|
||||||
def print(self, str):
|
def print(self, str):
|
||||||
if self.printing:
|
if self.printing:
|
||||||
@@ -96,7 +96,7 @@ def run_model(solver, sim_config, model_config):
|
|||||||
tsolve (int): Length of time (seconds) of main FDTD calculations
|
tsolve (int): Length of time (seconds) of main FDTD calculations
|
||||||
"""
|
"""
|
||||||
|
|
||||||
printer = Printer(model_config)
|
printer = Printer(sim_config)
|
||||||
|
|
||||||
# Monitor memory usage
|
# Monitor memory usage
|
||||||
p = psutil.Process()
|
p = psutil.Process()
|
||||||
|
在新工单中引用
屏蔽一个用户