Skip to content

Fix deadlock when calling InitRandomPars without seed

Vicentini Filippo requested to merge github/fork/femtobit/pr-init-random-pars into v2.1

Created by: femtobit

Calling GetRandomEngine may create a new DistributedRandomEngine. This operation, through GetDerivedSeed, performs an MPI broadcast. Thus, GetRandomEngine needs to be called from all MPI processes in order to prevent a deadlock.

Merge request reports