Skip to content

Commit 0f8374c

Browse files
fix FEM
1 parent ddd4bb9 commit 0f8374c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/fem.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ macro fem_def(sig,name,ex,params...)
2020
end
2121
# Build the type
2222
f = maketype(name,param_dict,origex,funcs,syms,fex)
23-
# Overload the Call
2423
if typeof(sig) == Symbol
25-
newsig = :(($sig))
24+
overloadex = :(((p::$name))($(sig)) = $ex)
2625
else
27-
newsig = :($(sig.args...))
26+
overloadex = :(((p::$name))($(sig.args...)) = $ex)
2827
end
29-
overloadex = :(((p::$name))($(newsig)) = $ex)
28+
# Overload the Call
29+
3030
@eval $overloadex
3131
return f
3232
end

0 commit comments

Comments
 (0)