Skip to content

Commit 6a8a9a9

Browse files
committed
Throw specific DimensionMismatch error
1 parent f2c4d7f commit 6a8a9a9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/green/transform.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ DLR Fourier transform of functions on the first temporal grid (`ImTime`, `ImFreq
8888
function Base.:<<(objL::MeshArray{T,N,MT1}, objR::MeshArray{T,N,MT2}) where {T,N,MT1,MT2}
8989
dimL = _find_mesh(MT1, ImTime, ImFreq, DLRFreq)
9090
dimR = _find_mesh(MT2, ImTime, ImFreq, DLRFreq)
91-
@assert dimL == dimR "The temporal dimensions should be identical for source and target MeshArrays."
91+
if dimL != dimR
92+
throw(DimensionMismatch("The temporal dimensions should be identical for source and target MeshArrays."))
93+
end
9294

9395
typeL = typeof(objL.mesh[dimL])
9496
typeR = typeof(objR.mesh[dimR])

0 commit comments

Comments
 (0)