Commit 50fd1a4c authored by Ferhat's avatar Ferhat
Browse files

In the two boundaries solver, gives up the symbolic solver if a stable...

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 2e59409d
......@@ -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)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment