Commit 077e99f1 authored by Dmitry Bagaev's avatar Dmitry Bagaev
Browse files

Prec time bug fixed in *BIILU2 interface

parent 2af8a709
...@@ -122,7 +122,6 @@ namespace INMOST { ...@@ -122,7 +122,6 @@ namespace INMOST {
} }
MatrixFinalizeFcbiilu2(matrix_data); MatrixFinalizeFcbiilu2(matrix_data);
SolverSetMatrixFcbiilu2(solver_data, matrix_data, modified_pattern, OldPreconditioner); SolverSetMatrixFcbiilu2(solver_data, matrix_data, modified_pattern, OldPreconditioner);
time_prec = solver_data->dstat[7];
} }
bool SolverFCBIILU2::Solve(INMOST::Sparse::Vector &RHS, INMOST::Sparse::Vector &SOL) { bool SolverFCBIILU2::Solve(INMOST::Sparse::Vector &RHS, INMOST::Sparse::Vector &SOL) {
...@@ -144,6 +143,7 @@ namespace INMOST { ...@@ -144,6 +143,7 @@ namespace INMOST {
bool result = SolverSolveFcbiilu2(solver_data, rhs_data, solution_data); bool result = SolverSolveFcbiilu2(solver_data, rhs_data, solution_data);
if (result) VectorLoadFcbiilu2(solution_data, &SOL[vbeg]); if (result) VectorLoadFcbiilu2(solution_data, &SOL[vbeg]);
iter_time = solver_data->dstat[9]; iter_time = solver_data->dstat[9];
time_prec = solver_data->dstat[7];
return result; return result;
} }
......
...@@ -126,7 +126,6 @@ namespace INMOST { ...@@ -126,7 +126,6 @@ namespace INMOST {
} }
MatrixFinalizeK3biilu2(matrix_data); MatrixFinalizeK3biilu2(matrix_data);
SolverSetMatrixK3biilu2(solver_data, matrix_data, modified_pattern, OldPreconditioner); SolverSetMatrixK3biilu2(solver_data, matrix_data, modified_pattern, OldPreconditioner);
time_prec = solver_data->dstat[7];
} }
bool SolverK3BIILU2::Solve(INMOST::Sparse::Vector &RHS, INMOST::Sparse::Vector &SOL) { bool SolverK3BIILU2::Solve(INMOST::Sparse::Vector &RHS, INMOST::Sparse::Vector &SOL) {
...@@ -150,6 +149,7 @@ namespace INMOST { ...@@ -150,6 +149,7 @@ namespace INMOST {
bool result = SolverSolveK3biilu2(solver_data, rhs_data, solution_data); bool result = SolverSolveK3biilu2(solver_data, rhs_data, solution_data);
if (result) VectorLoadK3biilu2(solution_data, &SOL[vbeg]); if (result) VectorLoadK3biilu2(solution_data, &SOL[vbeg]);
iter_time = solver_data->dstat[9]; iter_time = solver_data->dstat[9];
time_prec = solver_data->dstat[7];
return result; return result;
} }
......
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