In the two boundaries solver, gives up the symbolic solver if a stable computation solution could not be found on the first third of the simulation period
parent
2e59409df4
commit
50fd1a4c0d
|
@ -2910,7 +2910,14 @@ SparseMatrix::Solve_ByteCode_Symbolic_Sparse_GaussianElimination(int Size, bool
|
|||
}
|
||||
if (symbolic)
|
||||
{
|
||||
if (record && (nop == nop1))
|
||||
if (t > int(periods*0.35))
|
||||
{
|
||||
symbolic = false;
|
||||
mxFree(save_opaa
|
||||
mxFree(save_opa);
|
||||
mxFree(save_op);
|
||||
}
|
||||
else if (record && (nop == nop1))
|
||||
{
|
||||
if (save_opa && save_opaa)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue