Skip to content

Commit 53fe904

Browse files
committed
remove non-functional jacobian update flagging
1 parent 373f213 commit 53fe904

File tree

1 file changed

+0
-124
lines changed

1 file changed

+0
-124
lines changed

src/Domain.jl

Lines changed: 0 additions & 124 deletions
Original file line numberDiff line numberDiff line change
@@ -699,10 +699,6 @@ end
699699
export ConstantTADomain
700700

701701
@inline function calcthermo(d::ConstantTPDomain{W,Y},y::J,t::Q,p::W3=DiffEqBase.NullParameters()) where {W3<:DiffEqBase.NullParameters,W<:IdealGas,Y<:Integer,J<:Array{Float64,1},Q} #no parameter input
702-
if t != d.t[1]
703-
d.t[1] = t
704-
d.jacuptodate[1] = false
705-
end
706702
ns = y[d.indexes[1]:d.indexes[2]]
707703
V = y[d.indexes[3]]
708704
N = d.P*V/(R*d.T)
@@ -715,10 +711,6 @@ export ConstantTADomain
715711
end
716712

717713
@inline function calcthermo(d::ConstantTPDomain{W,Y},y::J,t::Q,p::W2=DiffEqBase.NullParameters()) where {W2<:Array{Float64,1},W<:IdealGas,Y<:Integer,J<:Array{Float64,1},Q<:Float64} #uses parameter input
718-
if t != d.t[1]
719-
d.t[1] = t
720-
d.jacuptodate[1] = false
721-
end
722714
ns = y[d.indexes[1]:d.indexes[2]]
723715
V = y[d.indexes[3]]
724716
N = d.P*V/(R*d.T)
@@ -759,10 +751,6 @@ end
759751
end
760752

761753
@inline function calcthermo(d::ConstantTPDomain{W,Y},y::Array{W3,1},t::Q,p::W2=DiffEqBase.NullParameters()) where {W2,W<:IdealGas,Y<:Integer,W3<:ForwardDiff.Dual,Q} #Autodiff y
762-
if t != d.t[1]
763-
d.t[1] = t
764-
d.jacuptodate[1] = false
765-
end
766754
ns = y[d.indexes[1]:d.indexes[2]]
767755
V = y[d.indexes[3]]
768756
N = d.P*V/(R*d.T)
@@ -783,10 +771,6 @@ end
783771
end
784772

785773
@inline function calcthermo(d::ConstantTPDomain{W,Y},y::J,t::Q,p::W2=DiffEqBase.NullParameters()) where {W2,W<:IdealGas,Y<:Integer,J,Q} #Autodiff p
786-
if t != d.t[1]
787-
d.t[1] = t
788-
d.jacuptodate[1] = false
789-
end
790774
ns = y[d.indexes[1]:d.indexes[2]]
791775
V = y[d.indexes[3]]
792776
N = d.P*V/(R*d.T)
@@ -807,10 +791,6 @@ end
807791
end
808792

809793
@inline function calcthermo(d::ConstantTPDomain{W,Y},y::J,t::Q,p::W2=DiffEqBase.NullParameters()) where {W2<:Union{ReverseDiff.TrackedArray,Tracker.TrackedArray},W<:IdealGas,Y<:Integer,J,Q} #Tracker/reversediff
810-
if t != d.t[1]
811-
d.t[1] = t
812-
d.jacuptodate[1] = false
813-
end
814794
ns = y[d.indexes[1]:d.indexes[2]]
815795
V = y[d.indexes[3]]
816796
N = d.P*V/(R*d.T)
@@ -828,10 +808,6 @@ end
828808
end
829809

830810
@inline function calcthermo(d::ConstantVDomain{W,Y},y::J,t::Q,p::W2=DiffEqBase.NullParameters()) where {W2<:DiffEqBase.NullParameters,W<:IdealGas,Y<:Integer,J<:AbstractArray,Q<:Real}
831-
if t != d.t[1]
832-
d.t[1] = t
833-
d.jacuptodate[1] = false
834-
end
835811
ns = y[d.indexes[1]:d.indexes[2]]
836812
T = y[d.indexes[3]]
837813
P = y[d.indexes[4]]
@@ -857,10 +833,6 @@ end
857833
end
858834

859835
@inline function calcthermo(d::ConstantVDomain{W,Y},y::J,t::Q,p::W2=DiffEqBase.NullParameters()) where {W2<:Array{Float64,1},W<:IdealGas,Y<:Integer,J<:AbstractArray,Q<:Real}
860-
if t != d.t[1]
861-
d.t[1] = t
862-
d.jacuptodate[1] = false
863-
end
864836
ns = y[d.indexes[1]:d.indexes[2]]
865837
T = y[d.indexes[3]]
866838
P = y[d.indexes[4]]
@@ -887,10 +859,6 @@ end
887859
end
888860

889861
@inline function calcthermo(d::ConstantVDomain{W,Y},y::J,t::Q,p::W2=DiffEqBase.NullParameters()) where {W2,W<:IdealGas,Y<:Integer,J<:AbstractArray,Q<:Real}
890-
if t != d.t[1]
891-
d.t[1] = t
892-
d.jacuptodate[1] = false
893-
end
894862
ns = y[d.indexes[1]:d.indexes[2]]
895863
T = y[d.indexes[3]]
896864
P = y[d.indexes[4]]
@@ -917,10 +885,6 @@ end
917885
end
918886

919887
@inline function calcthermo(d::ConstantPDomain{W,Y},y::J,t::Q,p::W2=DiffEqBase.NullParameters()) where {W2<:DiffEqBase.NullParameters,W<:IdealGas,Y<:Integer,J<:AbstractArray,Q<:Real}
920-
if t != d.t[1]
921-
d.t[1] = t
922-
d.jacuptodate[1] = false
923-
end
924888
ns = y[d.indexes[1]:d.indexes[2]]
925889
T = y[d.indexes[3]]
926890
V = y[d.indexes[4]]
@@ -945,10 +909,6 @@ end
945909
end
946910

947911
@inline function calcthermo(d::ConstantPDomain{W,Y},y::J,t::Q,p::W2=DiffEqBase.NullParameters()) where {W2<:Array{Float64,1},W<:IdealGas,Y<:Integer,J<:AbstractArray,Q<:Real}
948-
if t != d.t[1]
949-
d.t[1] = t
950-
d.jacuptodate[1] = false
951-
end
952912
ns = y[d.indexes[1]:d.indexes[2]]
953913
T = y[d.indexes[3]]
954914
V = y[d.indexes[4]]
@@ -978,10 +938,6 @@ end
978938
end
979939

980940
@inline function calcthermo(d::ConstantPDomain{W,Y},y::J,t::Q,p::W2=DiffEqBase.NullParameters()) where {W2,W<:IdealGas,Y<:Integer,J<:AbstractArray,Q<:Real}
981-
if t != d.t[1]
982-
d.t[1] = t
983-
d.jacuptodate[1] = false
984-
end
985941
ns = y[d.indexes[1]:d.indexes[2]]
986942
T = y[d.indexes[3]]
987943
V = y[d.indexes[4]]
@@ -1007,10 +963,6 @@ end
1007963
end
1008964

1009965
@inline function calcthermo(d::ParametrizedVDomain{W,Y},y::J,t::Q,p::W2=DiffEqBase.NullParameters()) where {W2<:DiffEqBase.NullParameters,W<:IdealGas,Y<:Integer,J<:AbstractArray,Q<:Real}
1010-
if t != d.t[1]
1011-
d.t[1] = t
1012-
d.jacuptodate[1] = false
1013-
end
1014966
V = d.V(t)
1015967
ns = y[d.indexes[1]:d.indexes[2]]
1016968
T = y[d.indexes[3]]
@@ -1036,10 +988,6 @@ end
1036988
end
1037989

1038990
@inline function calcthermo(d::ParametrizedVDomain{W,Y},y::J,t::Q,p::W2=DiffEqBase.NullParameters()) where {W2<:Array{Float64,1},W<:IdealGas,Y<:Integer,J<:AbstractArray,Q<:Real}
1039-
if t != d.t[1]
1040-
d.t[1] = t
1041-
d.jacuptodate[1] = false
1042-
end
1043991
V = d.V(t)
1044992
ns = y[d.indexes[1]:d.indexes[2]]
1045993
T = y[d.indexes[3]]
@@ -1066,10 +1014,6 @@ end
10661014
end
10671015

10681016
@inline function calcthermo(d::ParametrizedVDomain{W,Y},y::J,t::Q,p::W2=DiffEqBase.NullParameters()) where {W2,W<:IdealGas,Y<:Integer,J<:AbstractArray,Q<:Real}
1069-
if t != d.t[1]
1070-
d.t[1] = t
1071-
d.jacuptodate[1] = false
1072-
end
10731017
V = d.V(t)
10741018
ns = y[d.indexes[1]:d.indexes[2]]
10751019
T = y[d.indexes[3]]
@@ -1096,10 +1040,6 @@ end
10961040
end
10971041

10981042
@inline function calcthermo(d::ParametrizedPDomain{W,Y},y::J,t::Q,p::W2=DiffEqBase.NullParameters()) where {W2<:DiffEqBase.NullParameters,W<:IdealGas,Y<:Integer,J<:AbstractArray,Q<:Real}
1099-
if t != d.t[1]
1100-
d.t[1] = t
1101-
d.jacuptodate[1] = false
1102-
end
11031043
P = d.P(t)
11041044
ns = y[d.indexes[1]:d.indexes[2]]
11051045
T = y[d.indexes[3]]
@@ -1125,10 +1065,6 @@ end
11251065
end
11261066

11271067
@inline function calcthermo(d::ParametrizedPDomain{W,Y},y::J,t::Q,p::W2=DiffEqBase.NullParameters()) where {W2<:Array{Float64,1},W<:IdealGas,Y<:Integer,J<:AbstractArray,Q<:Real}
1128-
if t != d.t[1]
1129-
d.t[1] = t
1130-
d.jacuptodate[1] = false
1131-
end
11321068
P = d.P(t)
11331069
ns = y[d.indexes[1]:d.indexes[2]]
11341070
T = y[d.indexes[3]]
@@ -1154,10 +1090,6 @@ end
11541090
return @views @fastmath ns,cs,T,P,V,C,N,0.0,kfs.*p[d.parameterindexes[1]-1+length(d.phase.species)+1:d.parameterindexes[1]-1+length(d.phase.species)+length(kfs)],krevs.*p[d.parameterindexes[1]-1+length(d.phase.species)+1:d.parameterindexes[1]-1+length(d.phase.species)+length(kfs)],Hs,Array{Float64,1}(),Gs,diffs,Cvave,cpdivR
11551091
end
11561092
@inline function calcthermo(d::ParametrizedPDomain{W,Y},y::J,t::Q,p::W2=DiffEqBase.NullParameters()) where {W2,W<:IdealGas,Y<:Integer,J<:AbstractArray,Q<:Real}
1157-
if t != d.t[1]
1158-
d.t[1] = t
1159-
d.jacuptodate[1] = false
1160-
end
11611093
P = d.P(t)
11621094
ns = y[d.indexes[1]:d.indexes[2]]
11631095
T = y[d.indexes[3]]
@@ -1184,10 +1116,6 @@ end
11841116
end
11851117

11861118
@inline function calcthermo(d::ParametrizedTConstantVDomain{W,Y},y::J,t::Q,p::W2=DiffEqBase.NullParameters()) where {W2<:DiffEqBase.NullParameters,W<:IdealDiluteSolution,Y<:Integer,J<:AbstractArray,Q<:Real}
1187-
if t != d.t[1]
1188-
d.t[1] = t
1189-
d.jacuptodate[1] = false
1190-
end
11911119
V = d.V
11921120
T = d.T(t)
11931121
ns = y[d.indexes[1]:d.indexes[2]]
@@ -1209,10 +1137,6 @@ end
12091137
end
12101138

12111139
@inline function calcthermo(d::ParametrizedTConstantVDomain{W,Y},y::J,t::Q,p::W2=DiffEqBase.NullParameters()) where {W2<:Array{Float64,1},W<:IdealDiluteSolution,Y<:Integer,J<:AbstractArray,Q<:Real}
1212-
if t != d.t[1]
1213-
d.t[1] = t
1214-
d.jacuptodate[1] = false
1215-
end
12161140
V = d.V
12171141
T = d.T(t)
12181142
ns = y[d.indexes[1]:d.indexes[2]]
@@ -1235,10 +1159,6 @@ end
12351159
end
12361160

12371161
@inline function calcthermo(d::ParametrizedTConstantVDomain{W,Y},y::J,t::Q,p::W2=DiffEqBase.NullParameters()) where {W2,W<:IdealDiluteSolution,Y<:Integer,J<:AbstractArray,Q<:Real}
1238-
if t != d.t[1]
1239-
d.t[1] = t
1240-
d.jacuptodate[1] = false
1241-
end
12421162
V = d.V
12431163
T = d.T(t)
12441164
ns = y[d.indexes[1]:d.indexes[2]]
@@ -1261,10 +1181,6 @@ end
12611181
end
12621182

12631183
@inline function calcthermo(d::ParametrizedTPDomain{W,Y},y::J,t::Q,p::W2=DiffEqBase.NullParameters()) where {W2<:DiffEqBase.NullParameters,W<:IdealGas,Y<:Integer,J<:AbstractArray,Q<:Real}
1264-
if t != d.t[1]
1265-
d.t[1] = t
1266-
d.jacuptodate[1] = false
1267-
end
12681184
T = d.T(t)
12691185
@assert T < 10000.0
12701186
P = d.P(t)
@@ -1290,10 +1206,6 @@ end
12901206
end
12911207

12921208
@inline function calcthermo(d::ParametrizedTPDomain{W,Y},y::J,t::Q,p::W2=DiffEqBase.NullParameters()) where {W2<:Array{Float64,1},W<:IdealGas,Y<:Integer,J<:AbstractArray,Q<:Real}
1293-
if t != d.t[1]
1294-
d.t[1] = t
1295-
d.jacuptodate[1] = false
1296-
end
12971209
T = d.T(t)
12981210
@assert T < 10000.0
12991211
P = d.P(t)
@@ -1320,10 +1232,6 @@ end
13201232
end
13211233

13221234
@inline function calcthermo(d::ParametrizedTPDomain{W,Y},y::J,t::Q,p::W2=DiffEqBase.NullParameters()) where {W2,W<:IdealGas,Y<:Integer,J<:AbstractArray,Q<:Real}
1323-
if t != d.t[1]
1324-
d.t[1] = t
1325-
d.jacuptodate[1] = false
1326-
end
13271235
T = d.T(t)
13281236
@assert T < 10000.0
13291237
P = d.P(t)
@@ -1350,10 +1258,6 @@ end
13501258
end
13511259

13521260
@inline function calcthermo(d::ConstantTVDomain{W,Y},y::J,t::Q,p::Q2=DiffEqBase.NullParameters()) where {Q2<:DiffEqBase.NullParameters,W<:IdealDiluteSolution,Y<:Integer,J<:AbstractArray,Q<:Real}
1353-
if t != d.t[1]
1354-
d.t[1] = t
1355-
d.jacuptodate[1] = false
1356-
end
13571261
ns = y[d.indexes[1]:d.indexes[2]]
13581262
N = sum(ns)
13591263
cs = ns./d.V
@@ -1363,10 +1267,6 @@ end
13631267
end
13641268

13651269
@inline function calcthermo(d::ConstantTVDomain{W,Y},y::J,t::Q,p::Q2=DiffEqBase.NullParameters()) where {Q2<:Array{Float64,1},W<:IdealDiluteSolution,Y<:Integer,J<:Array{Float64,1},Q<:Real}
1366-
if t != d.t[1]
1367-
d.t[1] = t
1368-
d.jacuptodate[1] = false
1369-
end
13701270
ns = y[d.indexes[1]:d.indexes[2]]
13711271
N = sum(ns)
13721272
cs = ns./d.V
@@ -1407,10 +1307,6 @@ end
14071307
end
14081308

14091309
@inline function calcthermo(d::ConstantTVDomain{W,Y},y::Array{W2,1},t::Q,p::Q2=DiffEqBase.NullParameters()) where {W2<:ForwardDiff.Dual,Q2,W<:IdealDiluteSolution,Y<:Integer,J<:AbstractArray,Q<:Real} #autodiff y
1410-
if t != d.t[1]
1411-
d.t[1] = t
1412-
d.jacuptodate[1] = false
1413-
end
14141310
ns = y[d.indexes[1]:d.indexes[2]]
14151311
N = sum(ns)
14161312
cs = ns./d.V
@@ -1428,10 +1324,6 @@ end
14281324
end
14291325

14301326
@inline function calcthermo(d::ConstantTVDomain{W,Y},y::J,t::Q,p::Q2=DiffEqBase.NullParameters()) where {Q2,W<:IdealDiluteSolution,Y<:Integer,J<:AbstractArray,Q<:Real} #autodiff p
1431-
if t != d.t[1]
1432-
d.t[1] = t
1433-
d.jacuptodate[1] = false
1434-
end
14351327
ns = y[d.indexes[1]:d.indexes[2]]
14361328
N = sum(ns)
14371329
cs = ns./d.V
@@ -1449,10 +1341,6 @@ end
14491341
end
14501342

14511343
@inline function calcthermo(d::ConstantTADomain{W,Y},y::J,t::Q,p::Q2=DiffEqBase.NullParameters()) where {Q2<:DiffEqBase.NullParameters,W<:IdealSurface,Y<:Integer,J<:AbstractArray,Q<:Real}
1452-
if t != d.t[1]
1453-
d.t[1] = t
1454-
d.jacuptodate[1] = false
1455-
end
14561344
ns = y[d.indexes[1]:d.indexes[2]]
14571345
N = sum(ns)
14581346
cs = ns./d.A
@@ -1462,10 +1350,6 @@ end
14621350
end
14631351

14641352
@inline function calcthermo(d::ConstantTADomain{W,Y},y::J,t::Q,p::Q2=DiffEqBase.NullParameters()) where {Q2<:Array{Float64,1},W<:IdealSurface,Y<:Integer,J<:Array{Float64,1},Q<:Real}
1465-
if t != d.t[1]
1466-
d.t[1] = t
1467-
d.jacuptodate[1] = false
1468-
end
14691353
ns = y[d.indexes[1]:d.indexes[2]]
14701354
N = sum(ns)
14711355
cs = ns./d.A
@@ -1495,10 +1379,6 @@ end
14951379
end
14961380

14971381
@inline function calcthermo(d::ConstantTADomain{W,Y},y::Array{W2,1},t::Q,p::Q2=DiffEqBase.NullParameters()) where {W2<:ForwardDiff.Dual,Q2,W<:IdealSurface,Y<:Integer,J<:AbstractArray,Q<:Real} #autodiff y
1498-
if t != d.t[1]
1499-
d.t[1] = t
1500-
d.jacuptodate[1] = false
1501-
end
15021382
ns = y[d.indexes[1]:d.indexes[2]]
15031383
N = sum(ns)
15041384
cs = ns./d.A
@@ -1516,10 +1396,6 @@ end
15161396
end
15171397

15181398
@inline function calcthermo(d::ConstantTADomain{W,Y},y::J,t::Q,p::Q2=DiffEqBase.NullParameters()) where {Q2,W<:IdealSurface,Y<:Integer,J<:AbstractArray,Q<:Real} #autodiff p
1519-
if t != d.t[1]
1520-
d.t[1] = t
1521-
d.jacuptodate[1] = false
1522-
end
15231399
ns = y[d.indexes[1]:d.indexes[2]]
15241400
N = sum(ns)
15251401
cs = ns./d.A

0 commit comments

Comments
 (0)