Skip to content

Commit

Permalink
make uuid4 call for only rank 0 process
Browse files Browse the repository at this point in the history
  • Loading branch information
jcurtis2 committed May 7, 2024
1 parent 8080638 commit 28dbec8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/partmc.F90
Original file line number Diff line number Diff line change
Expand Up @@ -463,8 +463,10 @@ subroutine partmc_part(file)

! initialize RNG with random seed for UUID generation
call pmc_srand(0, pmc_mpi_rank())
if (.not. do_restart) then
if (pmc_mpi_rank() == 0) then
if (.not. do_restart) then
call uuid4_str(run_part_opt%uuid)
end if
end if

call spec_file_broadcast_run_part(run_part_opt, aero_data, &
Expand Down

0 comments on commit 28dbec8

Please sign in to comment.