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

time-shift
Ferhat 2012-11-06 14:38:51 +01:00
parent 2e59409df4
commit 50fd1a4c0d
1 changed files with 8 additions and 1 deletions

View File

@ -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)
{