Skip to content

Commit

Permalink
Merge pull request #2946 from GEOS-ESM/bugfix/mathomp4/2943-gcc14-fix…
Browse files Browse the repository at this point in the history
…-test

Fix GCC 14 issue with profiler test
  • Loading branch information
tclune committed Aug 5, 2024
2 parents 620566f + 5e935ec commit 655868a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

- Fix profiler PercentageColumn test for GCC 14

### Removed

### Deprecated
Expand Down
10 changes: 5 additions & 5 deletions profiler/tests/test_PercentageColumn.pf
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ contains
type (MeterNode), target :: node
class (AbstractMeterNode), pointer :: child
class (AbstractMeter), pointer :: t
type(UnlimitedVector) :: v
type(UnlimitedVector), target :: v
integer :: i
integer :: expected(2)
class(*), allocatable :: q
class(*), pointer :: q

node = MeterNode('foo', AdvancedMeter(MpiTimerGauge()))
t => node%get_meter()
Expand All @@ -26,19 +26,19 @@ contains
child => node%get_child('a')
t => child%get_meter()
call t%add_cycle(5.0_REAL64)

c = PercentageColumn(InclusiveColumn(),'MAX')

v = c%get_rows(node)
expected = [100.,50.]
do i = 1, 2
q = v%at(i)
q => v%at(i)
select type (q)
type is (real(kind=REAL64))
@assertEqual(expected(i), q)
end select
end do

end subroutine test_percent_inclusive

end module test_PercentageColumn

0 comments on commit 655868a

Please sign in to comment.