Remove un-needed arguments from store outputs function.

这个提交包含在:
Craig Warren
2019-07-31 10:14:59 +01:00
父节点 f070a878d6
当前提交 1bc75fb811
共有 2 个文件被更改,包括 2 次插入3 次删除

查看文件

@@ -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: