fix error

This commit is contained in:
kk
2026-03-23 22:50:00 +08:00
parent 03c7a1ab40
commit b92444ef57
10 changed files with 2621 additions and 10 deletions
@@ -1,4 +1,8 @@
function [Times, OutputRs, Wellpara, trun] = solver_NR(r, flow_model, f, os, state0, yitap,yitas,omega,Nmax,epsave,epsmax,dtmin,dtmax,Wellc,time,well_schedules)
function [Times, OutputRs, Wellpara, trun] = solver_NR(r, flow_model, f, os, state0, yitap,yitas,omega,Nmax,epsave,epsmax,dtmin,dtmax,Wellc,time,well_schedules, progress_callback)
if nargin < 17
progress_callback = [];
end
w.yitap = yitap;
w.yitas = yitas;
w.omega = omega;
@@ -12,6 +16,7 @@ w.dtmax = dtmax;
w.Wellc = Wellc;
w.time = time;
w.well_schedules = well_schedules;
w.progress_callback = progress_callback;
%%
if r.modelflag==1 || r.modelflag==4 || r.modelflag==5
if flow_model == 1
@@ -25,4 +30,4 @@ if r.modelflag==1 || r.modelflag==4 || r.modelflag==5
end
% [Times, OutputRs, Wellpara, trun] = mainRS_MB_2014(r, f, os, w, state0);
end
end
end