Skip to content

Commit

Permalink
Simplify error check in sum_intox test
Browse files Browse the repository at this point in the history
  • Loading branch information
pbartholomew08 committed Jun 28, 2024
1 parent b2eb6ce commit ef168f9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/test_sum_intox.f90
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,7 @@ subroutine runtest(test, dir_from)
call backend%sum_zintox(a, b)
end if

if ((minval(a%data) /= 0) .or. (maxval(a%data) /= 0)) then
check_pass = .false.
else
check_pass = .true.
end if
check_pass = .not. ((minval(a%data) /= 0) .or. (maxval(a%data) /= 0))
call MPI_Allreduce(MPI_IN_PLACE, check_pass, 1, &
MPI_LOGICAL, MPI_LAND, MPI_COMM_WORLD, &
ierr)
Expand Down

0 comments on commit ef168f9

Please sign in to comment.