Commit 1b5b3163 authored by sfritschi's avatar sfritschi
Browse files

Added timing functionality to test

parent 05a36fd3
......@@ -50,10 +50,15 @@ def main():
mean_fluxes = {}
max_fluxes = {}
for solver in netflow.Solver:
start = MPI.Wtime()
p, Q = netflow.solve_flow_inout(network=basenet, pin=1e4, \
pout=0.0, inpores=inpores, outpores=outpores, \
solver=solver, mu=1e-3)
end = MPI.Wtime()
if rank == root:
print("Solver: %s Time: %e s" % (solver.name, end - start))
flux_mean, flux_max = aggregate_flux(p, Q)
mean_fluxes[solver.name] = flux_mean
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment