@@ -107,11 +107,11 @@ function waveform(bb::BaseBuildingBlock)
...
@@ -107,11 +107,11 @@ function waveform(bb::BaseBuildingBlock)
@assertall(abs.(prev_grad).<=1e-12)"$(typeof(bb)) inserts NoGradient before the gradient is zero. This is probably caused by an improper implementation of this BuildingBlock."
@assertall(abs.(prev_grad).<=1e-12)"$(typeof(bb)) inserts NoGradient before the gradient is zero. This is probably caused by an improper implementation of this BuildingBlock."
push!(result,(new_time,prev_grad))
push!(result,(new_time,prev_grad))
elseifblockisaConstantGradient
elseifblockisaConstantGradient
@assertall(isapprox.(gradient_strength(block),prev_grad,atol=tol,rtol=tol))"$(typeof(bb)) inserts ConstantGradient that does not match previous gradient strength. This is probably caused by an improper implementation of this BuildingBlock."
@assertall(isapprox.(variables.gradient_strength(block),prev_grad,atol=tol,rtol=tol))"$(typeof(bb)) inserts ConstantGradient that does not match previous gradient strength. This is probably caused by an improper implementation of this BuildingBlock."
push!(result,(new_time,prev_grad))
push!(result,(new_time,prev_grad))
elseifblockisaChangingGradient
elseifblockisaChangingGradient
@assertall(isapprox.(block.gradient_strength_start,prev_grad,atol=tol,rtol=tol))"$(typeof(bb)) inserts ChangingGradient that does not match previous gradient strength. This is probably caused by an improper implementation of this BuildingBlock."
@assertall(isapprox.(block.gradient_strength_start,prev_grad,atol=tol,rtol=tol))"$(typeof(bb)) inserts ChangingGradient that does not match previous gradient strength. This is probably caused by an improper implementation of this BuildingBlock."