NAG Fortran cannot ignore arithmetic exceptions in pF unit tests
NAG Fortran does not seem to be able to ignore arithmetic exceptions even though it has already been specified in the flex compile. The issue might arise from pF Unit itself.
In test_mo_utils, zero division and and huge() (Infinity) raises the exceptions, also inside assertions i.e. in is_nan is_finite tests for mo_utils:
! NaN
dat1(1) = 0.0_dp
!dat1(1) = dat1(1)/dat1(1)
!@assertAny(is_nan(dat1))
@assertTrue(is_nan(dat1(1)/dat1(1))) ! Raises arithmetic exception
! Inf
dat1(2) = huge(1.0_dp) ! Raises arithmetic exception
dat1(2) = dat1(2)*dat1(2)
@assertAny(.not. is_finite(dat1))
@assertFalse((is_finite(dat1(2))))