We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b516cf2 commit 457d069Copy full SHA for 457d069
src/helper_functions.jl
@@ -355,6 +355,13 @@ function _get_periodic_coupling_matrix(
355
append!(searchareas, view(faces_to, 1:nfaces_to))
356
end
357
358
+ # throw error if no search area had been found for a bface
359
+ for source in 1:num_sources(searchareas)
360
+ if num_targets(searchareas, source) == 0
361
+ throw("bface $source has no valid search area on the opposite side of the grid. Are from/to regions and give_opposite! function correct?")
362
+ end
363
364
+
365
# we are only interest in global bface numbers on the "from" boundary
366
bfaces_of_interest = filter(face -> boundary_regions[face] in b_from, 1:n_boundary_faces)
367
n_bface_of_interest = length(bfaces_of_interest)
0 commit comments