Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Bugfix with generators on wires.
Browse files Browse the repository at this point in the history
  • Loading branch information
lmdiazangulo committed Apr 16, 2024
1 parent 0cbd283 commit 6088de0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src_json_parser/smbjson.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1206,13 +1206,15 @@ function findSourcePositionInLinels(srcElemIds, linels) result(res)
type(pixel_t), dimension(:), allocatable :: pixels
integer :: res
integer :: i

pixels = this%mesh%convertNodeToPixels(this%mesh%getNode(srcElemIds(1)))
do i = 1, size(linels)
if (all(linels(i)%cell ==pixels(1)%cell)) then
if (linels(i)%tag == pixels(1)%tag) then
res = i
return
end if
end do
write (error_unit, * ) "ERROR: Source could not be found in linels."

end function

Expand Down

0 comments on commit 6088de0

Please sign in to comment.