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

Commit 8ea3763

Browse files
qichenghuaOpenModelica-Hudson
authored andcommitted
refactored nox.solve()
1 parent eccaa1f commit 8ea3763

File tree

4 files changed

+90
-279
lines changed

4 files changed

+90
-279
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,5 +94,7 @@ class Nox : public IAlgLoopSolver
9494
bool _firstCall;
9595
bool _generateoutput;
9696
bool _useDomainScaling;
97+
98+
bool _OutOfProperMethods;
9799
};
98100
/** @} */ // end of solverNox

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class NoxLapackInterface : public LOCA::LAPACK::Interface {
66
public:
77

88
//! Constructor
9-
NoxLapackInterface(INonLinearAlgLoop *algLoop, int numberofhomotopytries);
9+
NoxLapackInterface(INonLinearAlgLoop *algLoop);
1010

1111
//! Destructor
1212
~NoxLapackInterface();
@@ -17,6 +17,9 @@ class NoxLapackInterface : public LOCA::LAPACK::Interface {
1717

1818
bool computeJacobian(NOX::LAPACK::Matrix<double>& J, const NOX::LAPACK::Vector & x);
1919

20+
void setNumberOfHomotopyTries(const int & number);
21+
int getMaxNumberOfHomotopyTries();
22+
2023
//! Sets parameters
2124
void setParams(const LOCA::ParameterVector& p);
2225

0 commit comments

Comments
 (0)