你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-08 07:24:19 +08:00
Corrected method names for MPI cleanups.
这个提交包含在:
@@ -428,10 +428,10 @@ def run_mpi_sim(args, inputfile, usernamespace, optparams=None):
|
|||||||
newcomm.send(obj=work, dest=status.Get_source())
|
newcomm.send(obj=work, dest=status.Get_source())
|
||||||
|
|
||||||
# Shutdown and free communicators
|
# Shutdown and free communicators
|
||||||
newcomm.disconnect()
|
newcomm.Disconnect()
|
||||||
newcomm.free()
|
newcomm.Free()
|
||||||
comm.disconnect()
|
comm.Disconnect()
|
||||||
comm.free()
|
comm.Free()
|
||||||
|
|
||||||
tsimend = perf_counter()
|
tsimend = perf_counter()
|
||||||
simcompletestr = '\n=== Simulation completed in [HH:MM:SS]: {}'.format(datetime.timedelta(seconds=tsimend - tsimstart))
|
simcompletestr = '\n=== Simulation completed in [HH:MM:SS]: {}'.format(datetime.timedelta(seconds=tsimend - tsimstart))
|
||||||
@@ -477,7 +477,7 @@ def run_mpi_sim(args, inputfile, usernamespace, optparams=None):
|
|||||||
run_model(args, currentmodelrun, modelend - 1, numbermodelruns, inputfile, modelusernamespace)
|
run_model(args, currentmodelrun, modelend - 1, numbermodelruns, inputfile, modelusernamespace)
|
||||||
|
|
||||||
# Shutdown
|
# Shutdown
|
||||||
comm.disconnect()
|
comm.Disconnect()
|
||||||
|
|
||||||
|
|
||||||
def run_mpi_alt_sim(args, inputfile, usernamespace, optparams=None):
|
def run_mpi_alt_sim(args, inputfile, usernamespace, optparams=None):
|
||||||
@@ -545,8 +545,8 @@ def run_mpi_alt_sim(args, inputfile, usernamespace, optparams=None):
|
|||||||
closedworkers += 1
|
closedworkers += 1
|
||||||
|
|
||||||
# Shutdown and free communicator
|
# Shutdown and free communicator
|
||||||
comm.disconnect()
|
comm.Disconnect()
|
||||||
comm.free()
|
comm.Free()
|
||||||
|
|
||||||
tsimend = perf_counter()
|
tsimend = perf_counter()
|
||||||
simcompletestr = '\n=== Simulation completed in [HH:MM:SS]: {}'.format(datetime.timedelta(seconds=tsimend - tsimstart))
|
simcompletestr = '\n=== Simulation completed in [HH:MM:SS]: {}'.format(datetime.timedelta(seconds=tsimend - tsimstart))
|
||||||
|
在新工单中引用
屏蔽一个用户