Skip to content
Snippets Groups Projects
Commit 4f3ceaec authored by Pierre Augier's avatar Pierre Augier
Browse files

Fix a silly bug in fluidsim/solvers/ns3d/init_fields.py introduced in...

Fix a silly bug in fluidsim/solvers/ns3d/init_fields.py introduced in 056c4daf3b87ce2e465b9fb867bc1ffa92a5dd8a
parent 7f83a329
No related branches found
No related tags found
1 merge request!158Fix a silly bug in fluidsim/solvers/ns3d/init_fields.py introduced in...
Pipeline #7436 passed
......@@ -180,7 +180,9 @@
velo_max_result_random = np.sqrt(vv[0] ** 2 + vv[1] ** 2 + vv[2] ** 2).max()
if mpi.nb_proc > 1:
velo_max_result_random = oper.comm.allreduce(velo_max, op=mpi.MPI.MAX)
velo_max_result_random = oper.comm.allreduce(
velo_max_result_random, op=mpi.MPI.MAX
)
vv = [velo_max * vi / velo_max_result_random for vi in vv]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment