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

Commit 557c017

Browse files
qichenghuaOpenModelica-Hudson
authored andcommitted
refactored Nox.cpp
1 parent 6079a86 commit 557c017

File tree

3 files changed

+222
-266
lines changed

3 files changed

+222
-266
lines changed

SimulationRuntime/cpp/Include/Solver/Nox/Nox.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,14 @@ class Nox : public IAlgLoopSolver
3030
void solverinit();
3131
void createStatusTests();
3232
void createSolverParameters();
33-
void LocaHomotopySolve(int numberofhomotopytries);
33+
void LocaHomotopySolve(const int numberofhomotopytries);
3434
NOX::StatusTest::StatusType BasicNLSsolve();
35+
void addPrintingList(const Teuchos::RCP<Teuchos::ParameterList> solverParametersPtr);
36+
void copySolution(const Teuchos::RCP<const NOX::Solver::Generic> solver,double* algLoopSolution);
37+
void printLogger();
38+
void divisionbyzerohandling(double const * const y0);
39+
bool checkwhethersolutionisnearby(double const * const y);
40+
bool isdivisionbyzeroerror(const std::exception &ex);
3541

3642
//void check4EventRetry(double* y)
3743

SimulationRuntime/cpp/Include/Solver/Nox/NoxLapackInterface.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
//somehow this is not good...
21
#include <LOCA.H>
32
#include <LOCA_LAPACK.H>
43

0 commit comments

Comments
 (0)