Skip to content
This repository has been archived by the owner on May 18, 2019. It is now read-only.

Commit

Permalink
Fix initialization of nominal values in DgesvSolver, ticket:4459
Browse files Browse the repository at this point in the history
  • Loading branch information
rfranke authored and OpenModelica-Hudson committed Jul 1, 2017
1 parent 61870e3 commit 0d0414c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions SimulationRuntime/cpp/Solver/Dgesv/DgesvSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ void DgesvSolver::solve()

memcpy(_A, Atemp, _dimSys*_dimSys*sizeof(double));

std::fill(_fNominal, _fNominal + _dimSys, 1e-6);
for (int j = 0, idx = 0; j < _dimSys; j++)
for (int i = 0; i < _dimSys; i++, idx++)
_fNominal[i] = std::max(std::abs(Atemp[idx]), _fNominal[i]);
Expand Down

0 comments on commit 0d0414c

Please sign in to comment.