Skip to content

Commit

Permalink
initialize random numbers
Browse files Browse the repository at this point in the history
Signed-off-by: Steven Hahn <[email protected]>
  • Loading branch information
quantumsteve committed May 16, 2024
1 parent 2926f18 commit 03043e7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/korc_spatial_distribution.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1422,7 +1422,7 @@ subroutine MH_psi(params,spp,F)
R_buffer = spp%Ro
Z_buffer = spp%Zo
PHI_buffer = 0._rp

end if

if (.not.params%SameRandSeed) then
call init_random_seed(params)
Expand All @@ -1438,6 +1438,7 @@ subroutine MH_psi(params,spp,F)
#endif
end if

if (params%mpi_params%rank.EQ.0_idef) then
write(output_unit_write,'("Begin burn: ",I10)')
accepted=.false.
ii=1_idef
Expand Down Expand Up @@ -1722,11 +1723,11 @@ subroutine MH_psi(params,spp,F)
! write(output_unit_write,*) 'Z_samples',Z_samples
! write(output_unit_write,*) 'G_samples',G_samples
! write(output_unit_write,*) 'eta_samples',eta_samples
end if

if (.not.params%SameRandSeed) then
call init_random_seed(params)
end if
end if

params%GC_coords=.FALSE.

Expand Down

0 comments on commit 03043e7

Please sign in to comment.