你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 04:56:51 +08:00
Taguchi parameters passed as a dictionary into user namespace dictionary available in input files.
这个提交包含在:
@@ -175,7 +175,9 @@ def main():
|
|||||||
# Run a model
|
# Run a model
|
||||||
# Add specific value for each parameter to optimise for each experiment to user accessible namespace
|
# Add specific value for each parameter to optimise for each experiment to user accessible namespace
|
||||||
optnamespace = usernamespace.copy()
|
optnamespace = usernamespace.copy()
|
||||||
optnamespace.update((key, value[modelrun - 1]) for key, value in optparams.items())
|
tmp = {}
|
||||||
|
tmp.update((key, value[modelrun - 1]) for key, value in optparams.items())
|
||||||
|
optnamespace.update({'optparams': tmp})
|
||||||
run_model(args, modelrun, numbermodelruns, inputfile, usernamespace)
|
run_model(args, modelrun, numbermodelruns, inputfile, usernamespace)
|
||||||
comm.send(None, dest=0, tag=tags.DONE.value)
|
comm.send(None, dest=0, tag=tags.DONE.value)
|
||||||
elif tag == tags.EXIT.value:
|
elif tag == tags.EXIT.value:
|
||||||
@@ -189,7 +191,9 @@ def main():
|
|||||||
for modelrun in range(1, numbermodelruns + 1):
|
for modelrun in range(1, numbermodelruns + 1):
|
||||||
# Add specific value for each parameter to optimise, for each experiment to user accessible namespace
|
# Add specific value for each parameter to optimise, for each experiment to user accessible namespace
|
||||||
optnamespace = usernamespace.copy()
|
optnamespace = usernamespace.copy()
|
||||||
optnamespace.update((key, value[modelrun - 1]) for key, value in optparams.items())
|
tmp = {}
|
||||||
|
tmp.update((key, value[modelrun - 1]) for key, value in optparams.items())
|
||||||
|
optnamespace.update({'optparams': tmp})
|
||||||
run_model(args, modelrun, numbermodelruns, inputfile, optnamespace)
|
run_model(args, modelrun, numbermodelruns, inputfile, optnamespace)
|
||||||
tsimend = perf_counter()
|
tsimend = perf_counter()
|
||||||
print('\nTotal simulation time [HH:MM:SS]: {}'.format(datetime.timedelta(seconds=int(tsimend - tsimstart))))
|
print('\nTotal simulation time [HH:MM:SS]: {}'.format(datetime.timedelta(seconds=int(tsimend - tsimstart))))
|
||||||
|
在新工单中引用
屏蔽一个用户