Skip to content

Commit 3350966

Browse files
committed
Typo and better error message
1 parent cdad2fb commit 3350966

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/helper_functions.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ function _get_periodic_coupling_matrix(
371371
# throw error if no search area had been found for a bface
372372
for source in 1:num_sources(searchareas)
373373
if num_targets(searchareas, source) == 0
374-
throw("bface $source has no valid search area on the opposite side of the grid. Are from/to regions and give_opposite! function correct?")
374+
throw("bface $source has no valid search area on the opposite side of the grid. Double check the provided from/to regions and your give_opposite! function")
375375
end
376376
end
377377

@@ -499,7 +499,7 @@ For each x in the grid, the resulting y has to be in the grid, too: incorporate
499499
Example: If b_from is at x[1] = 0 and the opposite boundary is at y[1] = 1, then give_opposite!(y,x) = y .= [ 1-x[1], x[2] ]
500500
501501
The return value is a (𝑛 × 𝑛) sparse matrix 𝐴 (𝑛 is the total number of dofs) containing the periodic coupling information.
502-
The relation ship between the degrees of freedome is dofᵢ = ∑ⱼ Aⱼᵢ ⋅ dofⱼ.
502+
The relation ship between the degrees of freedom is dofᵢ = ∑ⱼ Aⱼᵢ ⋅ dofⱼ.
503503
It is guaranteed that
504504
i) Aᵢⱼ=0 if dofᵢ is 𝑛𝑜𝑡 on the boundary b_from.
505505
ii) Aᵢⱼ=0 if the opposite of dofᵢ is not in the same grid cell as dofⱼ.

0 commit comments

Comments
 (0)