Skip to content

Commit 113b50a

Browse files
committed
change the way to write if statement for isempty(bsol.interfaces)
1 parent 7d015b1 commit 113b50a

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/Simulation.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -365,9 +365,7 @@ function getadjointsensitivities(bsol::Q,target::String,solver::W;sensalg::W2=In
365365
end
366366
else
367367
ind = findfirst(isequal(target),bsol.names)
368-
if !isempty(bsol.interfaces)
369-
nothing
370-
else
368+
if isempty(bsol.interfaces)
371369
sensdomain,sensspcnames,senstooriginspcind,senstooriginrxnind = getsensdomain(bsol.domain,ind)
372370
if :thermovariabledict in fieldnames(typeof(bsol.domain))
373371
yinds = vcat(senstooriginspcind,collect(values(bsol.domain.thermovariabledict)))

0 commit comments

Comments
 (0)