Skip to content
This repository was archived by the owner on Nov 22, 2023. It is now read-only.

Commit 90255f1

Browse files
committed
fix bug and correct typo
1 parent 7cf553f commit 90255f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/meshes.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ isvoid{T}(::Type{Vector{T}}) = isvoid(T)
8686
for i in 1:nfields(HM1)
8787
field = fnames[i]
8888
target_type = fieldtype(HM1, i)
89-
soure_type = fieldtype(HM2, i)
90-
if isleaftype(fieldtype(HM1, i)) # target is not defined
89+
source_type = fieldtype(HM2, i)
90+
if !isleaftype(fieldtype(HM1, i)) # target is not defined
9191
push!(expr.args, :(getfield(primitive, $(QuoteNode(field)))))
92-
elseif !isvoid(target_type) && isvoid(soure_type) # target not there yet, maybe we can decompose though (e.g. normals)
92+
elseif !isvoid(target_type) && isvoid(source_type) # target not there yet, maybe we can decompose though (e.g. normals)
9393
push!(expr.args, :(decompose($(HM1.parameters[i]), primitive)))
9494
elseif isvoid(target_type)
9595
push!(expr.args, :($(target_type())))

0 commit comments

Comments
 (0)