Skip to content

Commit

Permalink
Improve init subroutine
Browse files Browse the repository at this point in the history
  • Loading branch information
gha3mi committed Jan 23, 2024
1 parent 5ccf38d commit a4c867d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/forbenchmark_default.f90
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ elemental impure subroutine init(this, nmarks, title, filename, nloops, timer)

if (nmarks <= 0) error stop 'nmarks must be greater than zero.'

if (allocated(this%marks)) deallocate(this%marks)
allocate(this%marks(nmarks))

compiler =''
Expand Down

0 comments on commit a4c867d

Please sign in to comment.