Skip to content

Commit f9b62e2

Browse files
fix: fix naming of new variable in ComplementarySensitivityTransform
1 parent ccfed45 commit f9b62e2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/systems/analysis_points.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,10 @@ end
519519

520520
function apply_transformation(cst::ComplementarySensitivityTransform, sys::AbstractSystem)
521521
sys, (u,) = apply_transformation(GetInput(cst.ap), sys)
522-
sys, (du,) = apply_transformation(AddVariable(cst.ap, Symbol(:comp_sens_du)), sys)
522+
sys, (du,) = apply_transformation(
523+
AddVariable(
524+
cst.ap, Symbol(namespace_hierarchy(nameof(cst.ap))[end], :_comp_sens_du)),
525+
sys)
523526
sys, (_du,) = apply_transformation(PerturbOutput(cst.ap), sys)
524527

525528
# `PerturbOutput` adds the equation `input + _du ~ output`

0 commit comments

Comments
 (0)