Skip to content

Commit

Permalink
[Janitor mode] Fix whitespace
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@21004 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
OpenModelica-Hudson committed Jun 6, 2014
1 parent 4281648 commit 9a672be
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions SimulationRuntime/cpp/Solver/Kinsol/Kinsol.cpp
Expand Up @@ -139,7 +139,7 @@ void Kinsol::initialize()

idid = KINSetFuncNormTol(_kinMem, _fnormtol);
idid = KINSetScaledStepTol(_kinMem, _scsteptol);
idid = KINSetRelErrFunc(_kinMem, 1e-13);
idid = KINSetRelErrFunc(_kinMem, 1e-13);

_counter = 0;

Expand Down Expand Up @@ -522,10 +522,10 @@ void Kinsol::solveNLS()
// Other failures (setup etc) -> directly break
default:
KINGetFuncNorm(_kinMem, &_fnorm);
if(_fnorm < _fnormtol) // Initial guess may be the solution
_iterationStatus = DONE;
else
_iterationStatus = SOLVERERROR;
if(_fnorm < _fnormtol) // Initial guess may be the solution
_iterationStatus = DONE;
else
_iterationStatus = SOLVERERROR;
break;
}
}
Expand Down

0 comments on commit 9a672be

Please sign in to comment.