Skip to content

Commit

Permalink
call n inside outer loop
Browse files Browse the repository at this point in the history
  • Loading branch information
kent0 committed Mar 24, 2024
1 parent 117a417 commit 83133c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/batch.f
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ subroutine brprofile
common /workbr/ v(lbat),w(lbat)

ntrial = 128
do ir=1,n
v(ir) = rand()
enddo

do n=1,lbat
time_min = 1.0e+10
time_max = 0.0
time_avg = 0.0
time_avg2 = 0.0
do ir=1,n
v(ir) = rand()
enddo
do i=1,ntrial
start_time=dnekclock()
call breduce(v,n,1)
Expand Down

0 comments on commit 83133c5

Please sign in to comment.