Skip to content

Commit 6e35812

Browse files
author
Damian Rouson
committed
fix: switch assert to pure
Making assert elemental gives confusing output because only the first element of array diagnost_data shows in the ouptut of a failed assertion. For printing array data as diagnostic output, it is better for a user to package that data in an object and pass a characterizable_t object as the actual diagnostic_data argument.
1 parent 082a9be commit 6e35812

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/assert_m.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module assert_m
3131

3232
interface
3333

34-
elemental module subroutine assert(assertion, description, diagnostic_data)
34+
pure module subroutine assert(assertion, description, diagnostic_data)
3535
!! If assertion is .false., error-terminate with a character stop code that contains diagnostic_data if present
3636
implicit none
3737
logical, intent(in) :: assertion

0 commit comments

Comments
 (0)