@@ -134,6 +134,7 @@ type WorkPrecisionSet
134
134
setups
135
135
names
136
136
sample_error
137
+ error_estimate
137
138
end
138
139
139
140
function WorkPrecision (prob,alg,abstols,reltols,dts= nothing ;
199
200
200
201
function WorkPrecisionSet (prob:: AbstractODEProblem ,abstols,reltols,setups;numruns= 20 ,
201
202
print_names= false ,names= nothing ,appxsol= nothing ,
203
+ error_estimate= :final ,
202
204
test_dt= nothing ,kwargs... )
203
205
N = length (setups)
204
206
wps = Vector {WorkPrecision} (N)
@@ -210,14 +212,16 @@ function WorkPrecisionSet(prob::AbstractODEProblem,abstols,reltols,setups;numrun
210
212
if haskey (setups[i],:dts )
211
213
wps[i] = WorkPrecision (prob,setups[i][:alg ],abstols,reltols,setups[i][:dts ];
212
214
numruns= numruns,appxsol= appxsol,
215
+ error_estimate= error_estimate,
213
216
name= names[i],kwargs... ,setups[i]. .. )
214
217
else
215
218
wps[i] = WorkPrecision (prob,setups[i][:alg ],abstols,reltols;
216
219
numruns= numruns,appxsol= appxsol,
220
+ error_estimate= error_estimate,
217
221
name= names[i],kwargs... ,setups[i]. .. )
218
222
end
219
223
end
220
- return WorkPrecisionSet (wps,N,abstols,reltols,prob,setups,names,nothing )
224
+ return WorkPrecisionSet (wps,N,abstols,reltols,prob,setups,names,nothing ,error_estimate )
221
225
end
222
226
223
227
@def error_calculation begin
@@ -349,7 +353,7 @@ function WorkPrecisionSet(prob::AbstractRODEProblem,abstols,reltols,setups,test_
349
353
end
350
354
351
355
wps = [WorkPrecision (prob,abstols,reltols,errors[i],times[:,i],names[i],N) for i in 1 : N]
352
- WorkPrecisionSet (wps,N,abstols,reltols,prob,setups,names,sample_error)
356
+ WorkPrecisionSet (wps,N,abstols,reltols,prob,setups,names,sample_error,error_estimate )
353
357
end
354
358
355
359
@def sample_errors begin
0 commit comments