Skip to content

Commit 02edbc8

Browse files
committed
Fix analytic Vderiv for ParametrizedTPDomain
1 parent 76889fd commit 02edbc8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Domain.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1849,7 +1849,7 @@ function jacobiany!(jac::Q,y::U,p::W,t::Z,domain::D,interfaces::Q3,colorvec::Q2=
18491849
@simd for i in domain.indexes[1]:domain.indexes[2]
18501850
@views @inbounds @fastmath jac[domain.indexes[3],i] = sum(jac[domain.indexes[1]:domain.indexes[2],i])*R*T/P
18511851
end
1852-
@views @inbounds @fastmath jac[domain.indexes[3],domain.indexes[3]] = sum(jac[domain.indexes[1]:domain.indexes[2],domain.indexes[3]])*R*T/P
1852+
@views @inbounds @fastmath jac[domain.indexes[3],domain.indexes[3]] = sum(jac[domain.indexes[1]:domain.indexes[2],domain.indexes[3]])*R*T/P + Calculus.derivative(domain.T,t)/T - Calculus.derivative(domain.P,t)/P
18531853

18541854
@simd for ind in domain.constantspeciesinds
18551855
@inbounds jac[ind,:] .= 0.

0 commit comments

Comments
 (0)