Incorrect #ifndef in find_adjacent_element
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fluidity |
Confirmed
|
Medium
|
Stephan Kramer |
Bug Description
In find_adjacent_
adj_ele = 0
ele_loop: do i = 1, size(elements1)
! See if this element borders all other nodes
do j = 2, size(nodes)
! If candidate_ele is not in all row_idx, nodes are not boundary
! nodes for candidate_ele, and it isn't the adjacent element.
if(.not. any(row_idx(j - 1)%ptr == candidate_ele)) cycle ele_loop
end do
#ifndef DDEBUG <<-----
if(adj_ele > 0) then
! We've found more than one adjacent element. We're in trouble.
adj_ele = -1
return
end if
#endif
adj_ele = candidate_ele
#ifndef DDEBUG
! We've found the adjacent element. We're done.
return
#endif
end do ele_loop
otherwise there is no test for more than one adjacent element with --enable-debugging, nor without --enable-debugging, since the second (correct) #ifndef exits the loop when the first candidate_ele is found.
Changed in fluidity: | |
assignee: | nobody → Stephan Kramer (s-kramer) |
status: | New → Confirmed |
importance: | Undecided → Medium |
And when the #ifndef is changed to #ifdef the following tests fail with --enable-debugging:
periodic_ adaptivity. xml: PFFP adaptivity_ 3d.xml: PFFP 2plus1_ adaptivity. xml: PFFP Subduction_ VK_Case_ 1b.xml: F adaptivity_ tracer. xml: PFFP
periodic_
periodic_
Stokes_
periodic_