Skip to content

Commit

Permalink
Merge pull request #96 from QuEST-Kit/masterBugFix_mpiSeeding
Browse files Browse the repository at this point in the history
mpi version of seeding function used wrong data type.
  • Loading branch information
TysonRayJones committed Feb 13, 2019
2 parents db14c79 + 3f3def7 commit e0a65be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion QuEST/CPU/QuEST_cpu_distributed.c
Original file line number Diff line number Diff line change
Expand Up @@ -1279,6 +1279,6 @@ void seedQuESTDefault(){
getQuESTDefaultSeedKey(key);
// this seed will be used to generate the same random number on all procs,
// therefore we want to make sure all procs receive the same key
MPI_Bcast(key, 3, MPI_LONG_INT, 0, MPI_COMM_WORLD);
MPI_Bcast(key, 3, MPI_UNSIGNED_LONG, 0, MPI_COMM_WORLD);
init_by_array(key, 3);
}

0 comments on commit e0a65be

Please sign in to comment.