mrst-2021b error messages

65 views
Skip to first unread message

Paul Richard Ramírez Perdomo

unread,
Feb 9, 2022, 3:08:15 AM2/9/22
to sinte...@googlegroups.com
Dear MRST - MATLAB Reservoir Simulation Toolbox Forum,

My name is Paul Perdomo and downloaded mrst-202ib, run (in MATLAB R2016a) the terzagui.m and mandel.m examples of the ad-mechanics module and got the following error messages:

>> terzaghi
Real nu: 0.30000.  Measured nu: 0.30007
Relative error: 2.20e-04
Predicted strain: 0.00149.  Measured strain: 0.00149
Relative error: -5.66e-14
Solving timestep 01/51:                               -> 3 Milliseconds
Error using ADI
Error: File: ADI.m Line: 287 Column: 20
The input character is not valid in MATLAB statements or expressions.

Error in initVariablesADI (line 83)
      varargout{i} = ADI(varargin{i}, jac);

Error in MechanicModel/getEquations (line 137)
                xd = initVariablesADI(xd);

Error in PhysicalModel/stepFunction (line 686)
        [problem, state] = model.getEquations(state0, state, dt, drivingForces, ...

Error in NonLinearSolver/solveMinistep (line 374)
                    model.stepFunction(state, state0, dt, drivingForces, ...

Error in NonLinearSolver/solveTimestep (line 210)
                    solveMinistep(solver, model, state, state0_inner, dt, drivingForces);

Error in MechFluidFixedStressSplitModel/stepFunction (line 105)
            [mstate, mreport] = mechsolver.solveTimestep(mstate0, dt, mechModel, ...

Error in NonLinearSolver/solveMinistep (line 374)
                    model.stepFunction(state, state0, dt, drivingForces, ...

Error in NonLinearSolver/solveTimestep (line 210)
                    solveMinistep(solver, model, state, state0_inner, dt, drivingForces);

Error in simulateScheduleAD (line 286)
            [state, report] = solver.solveTimestep(state0, dt, model,...

Error in terzaghi (line 215)
[~, states, report] = simulateScheduleAD(initState, model, schedule);
 
>> mandel

Solving timestep 1

Solving timestep 1/1:                              -> 40 Seconds, 625 Milliseconds
Error using ADI
Error: File: ADI.m Line: 287 Column: 20
The input character is not valid in MATLAB statements or expressions.

Error in initVariablesADI (line 83)
      varargout{i} = ADI(varargin{i}, jac);

Error in MechWaterModel/getEquations (line 80)
            [p, wellVars{:}, xd] = initVariablesADI(p, wellVars{:}, xd);

Error in PhysicalModel/stepFunction (line 686)
        [problem, state] = model.getEquations(state0, state, dt, drivingForces, ...

Error in ReservoirModel/stepFunction (line 307)
        [state, report] = stepFunction@PhysicalModel(model, state, state0, dt, drivingForces, linsolver, nonlinsolver,
        iteration, varargin{:});

Error in NonLinearSolver/solveMinistep (line 374)
                    model.stepFunction(state, state0, dt, drivingForces, ...

Error in NonLinearSolver/solveTimestep (line 210)
                    solveMinistep(solver, model, state, state0_inner, dt, drivingForces);

Error in simulateScheduleAD (line 286)
            [state, report] = solver.solveTimestep(state0, dt, model,...

Error in mandel (line 160)
      [~, state] = simulateScheduleAD(state0, model, schedule, ...
 
>>

Could you help me with this issue?

Best regards,
Paul.

Olav Møyner

unread,
Feb 9, 2022, 3:12:11 AM2/9/22
to Paul Richard Ramírez Perdomo, sinte...@googlegroups.com
Dear Paul Perdomo,

Apologies for this error. It is caused by a newer string type being used in the code, than what is supported in MATLAB R2016a. If you do the following:
edit ADI.m
and then replace line 287 with 
error('polyval with adi coefficents not valid')
(Note the difference between the current line, where the message uses " instead of ')

Then the code may run. We will include this fix in the next MRST release.

Best regards,
Olav

From: sinte...@googlegroups.com <sinte...@googlegroups.com> on behalf of Paul Richard Ramírez Perdomo <paul0...@gmail.com>
Sent: Tuesday, February 8, 2022 23:20
To: sinte...@googlegroups.com <sinte...@googlegroups.com>
Subject: [MRST Users] mrst-2021b error messages
 
--
You received this message because you are subscribed to the Google Groups "MRST-users: The Matlab Reservoir Simulation Toolbox User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sintef-mrst...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sintef-mrst/CACkpzN5LCtY%2BAwfeOY1-ra3S0sTdHMp7q8eyZ35fw9ztKj2PzA%40mail.gmail.com.

Paul Richard Ramírez Perdomo

unread,
Feb 9, 2022, 1:09:51 PM2/9/22
to Olav Møyner, sinte...@googlegroups.com
Dear Olav,

Many thanks for your quick and efficient reply (by the way, for the excellent MRST software, too!). I run as instructed, with no issues, and all is OK.

(Yes, you are right, a simple and single character ( " and ' ) can make all the difference).

Best regards,
Paul.
Reply all
Reply to author
Forward
0 new messages