changeset 178:64b9751b3cb2 boundary_conditions

Fix error in getindex for TensorApplicationExpression
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Mon, 17 Jun 2019 10:41:20 +0200
parents 24779d423243
children 156bb18a2252
files TensorMappings.jl
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/TensorMappings.jl	Mon Jun 17 09:02:19 2019 +0200
+++ b/TensorMappings.jl	Mon Jun 17 10:41:20 2019 +0200
@@ -66,7 +66,7 @@
 	o::AbstractArray{T,D}
 end
 Base.size(tae::TensorApplicationExpression) = size(tae.ta) #TODO: Not sure how to handle this
-Base.getindex(tae::TensorApplicationExpression, I::Vararg) = apply(tae.ta, ta.o, I...) + o[I...]
+Base.getindex(tae::TensorApplicationExpression, I::Vararg) = tae.ta[I...] + tae.o[I...]
 import Base.+
 import Base.-
 +(ta::TensorApplication{T,R,D}, o::AbstractArray{T,D}) where {T,R,D} = TensorApplicationExpression(ta,o)