Skip to content

Commit 84b0960

Browse files
committed
Minor correction in logical condition
1 parent 6ef3733 commit 84b0960

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src_mtln/mtl.F90

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,9 +379,10 @@ subroutine initCommunicators(this, alloc_z)
379379
z_end = alloc_z(2)
380380

381381
do j = 1, size(this%segments)
382+
if (this%segments(j)%orientation == -1) cycle
383+
382384
z = this%segments(j)%z
383-
384-
if (.not. isSegmentZOriented(j) .and. (z == z_end) .or. (z == z_init + 1)) then
385+
if (.not. isSegmentZOriented(j) .and. ((z == z_end) .or. (z == z_init + 1))) then
385386

386387
n = size(this%mpi_comm%comms)
387388
deallocate(aux_comm)

0 commit comments

Comments
 (0)