Skip to content

Commit

Permalink
fixed initialization of seed
Browse files Browse the repository at this point in the history
  • Loading branch information
Leandro Martinez committed Nov 28, 2016
1 parent 8ba0b72 commit be02041
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/topolink.f90
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@ program topolink
stop
end if

! Random number initialization

if ( seed == 0 ) call seed_from_time(seed)
call init_random_number(seed)

! Default input parametes

pdbfile = 'none'
Expand Down Expand Up @@ -241,6 +236,11 @@ program topolink
end if
rewind(10)

! Random number initialization

if ( seed == 0 ) call seed_from_time(seed)
call init_random_number(seed)

! Print input parameters

write(*,"(a,a)") ' PDB input file: ', trim(adjustl(pdbfile))
Expand Down

0 comments on commit be02041

Please sign in to comment.