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

Commit

Permalink
Fix homotopy for source code FMUs
Browse files Browse the repository at this point in the history
  • Loading branch information
lochel authored and OpenModelica-Hudson committed Jul 28, 2017
1 parent 42663b6 commit d0deadf
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
#if defined(OMC_NUM_NONLINEAR_SYSTEMS) && OMC_NUM_NONLINEAR_SYSTEMS==0
#define check_nonlinear_solutions(X,Y) 0
#define updateStaticDataOfNonlinearSystems(X,Y)
extern int init_lambda_steps;
#else
#include "simulation/solver/nonlinearSystem.h"
#endif
Expand All @@ -74,6 +73,8 @@ extern int init_lambda_steps;
#include <math.h>
#include <string.h>

int init_lambda_steps = 1;

/*! \fn void dumpInitializationStatus(DATA *data)
*
* \param [in] [data]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ extern "C"
{
#endif

extern int init_lambda_steps;

void initSample(DATA *data, threadData_t *threadData, double start, double stop);
extern int initialization(DATA *data, threadData_t *threadData, const char* pInitMethod, const char* pInitFile, double initTime);
extern int importStartValues(DATA *data, threadData_t *threadData, const char *pInitFile, const double initTime);
Expand Down
2 changes: 1 addition & 1 deletion SimulationRuntime/c/simulation/solver/nonlinearSystem.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

int check_nonlinear_solution(DATA *data, int printFailingSystems, int sysNumber);

int init_lambda_steps = 1;
extern int init_lambda_steps;

struct dataNewtonAndHybrid
{
Expand Down
2 changes: 0 additions & 2 deletions SimulationRuntime/c/simulation/solver/nonlinearSystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ extern "C" {
#undef VOID
#endif

extern int init_lambda_steps;

typedef void* NLS_SOLVER_DATA;

void cleanUpOldValueListAfterEvent(DATA *data, double time);
Expand Down

0 comments on commit d0deadf

Please sign in to comment.