Changeset 5117 for LMDZ6/branches/Amaury_dev/libf/misc/lmdz_assert.f90
- Timestamp:
- Jul 24, 2024, 4:23:34 PM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/misc/lmdz_assert.f90
r5116 r5117 15 15 CHARACTER(LEN = *), INTENT(IN) :: string 16 16 LOGICAL, INTENT(IN) :: n1 17 if (.not. n1) THEN17 IF (.NOT. n1) THEN 18 18 write (*, *) 'nrerror: an assertion failed with this tag:', & 19 19 string … … 26 26 CHARACTER(LEN = *), INTENT(IN) :: string 27 27 LOGICAL, INTENT(IN) :: n1, n2 28 if (.not. (n1 .and. n2)) THEN28 IF (.NOT. (n1 .AND. n2)) THEN 29 29 write (*, *) 'nrerror: an assertion failed with this tag:', & 30 30 string … … 37 37 CHARACTER(LEN = *), INTENT(IN) :: string 38 38 LOGICAL, INTENT(IN) :: n1, n2, n3 39 if (.not. (n1 .and. n2 .and. n3)) THEN39 IF (.NOT. (n1 .AND. n2 .AND. n3)) THEN 40 40 write (*, *) 'nrerror: an assertion failed with this tag:', & 41 41 string … … 48 48 CHARACTER(LEN = *), INTENT(IN) :: string 49 49 LOGICAL, INTENT(IN) :: n1, n2, n3, n4 50 if (.not. (n1 .and. n2 .and. n3 .and. n4)) THEN50 IF (.NOT. (n1 .AND. n2 .AND. n3 .AND. n4)) THEN 51 51 write (*, *) 'nrerror: an assertion failed with this tag:', & 52 52 string … … 59 59 CHARACTER(LEN = *), INTENT(IN) :: string 60 60 LOGICAL, DIMENSION(:), INTENT(IN) :: n 61 if (.not. all(n)) THEN61 IF (.NOT. all(n)) THEN 62 62 write (*, *) 'nrerror: an assertion failed with this tag:', & 63 63 string
Note: See TracChangeset
for help on using the changeset viewer.