你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-06 04:26:52 +08:00
Remove un-needed arguments from store outputs function.
这个提交包含在:
@@ -89,12 +89,11 @@ __global__ void store_outputs(int NRX, int iteration, const int* __restrict__ rx
|
||||
""")
|
||||
|
||||
|
||||
def write_hdf5_outputfile(outputfile, Ex, Ey, Ez, Hx, Hy, Hz, G):
|
||||
def write_hdf5_outputfile(outputfile, G):
|
||||
"""Write an output file in HDF5 format.
|
||||
|
||||
Args:
|
||||
outputfile (str): Name of the output file.
|
||||
Ex, Ey, Ez, Hx, Hy, Hz (memory view): Current electric and magnetic field values.
|
||||
G (class): Grid class instance - holds essential parameters describing the model.
|
||||
"""
|
||||
|
||||
|
@@ -373,7 +373,7 @@ def run_model(args, currentmodelrun, modelend, numbermodelruns, inputfile, usern
|
||||
tsolve, memsolve = solve_gpu(currentmodelrun, modelend, G)
|
||||
|
||||
# Write an output file in HDF5 format
|
||||
write_hdf5_outputfile(outputfile, G.Ex, G.Ey, G.Ez, G.Hx, G.Hy, G.Hz, G)
|
||||
write_hdf5_outputfile(outputfile, G)
|
||||
|
||||
# Write any snapshots to file
|
||||
if G.snapshots:
|
||||
|
在新工单中引用
屏蔽一个用户