Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring non-linear solvers #9065

Merged
merged 19 commits into from Jun 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions OMCompiler/SimulationRuntime/c/openmodelica_types.h
Expand Up @@ -139,6 +139,14 @@ typedef struct base_array_s base_array_t;
typedef base_array_t string_array_t;

typedef signed char modelica_boolean;
#ifndef FALSE
#define FALSE 0
#endif

#ifndef TRUE
#define TRUE 1
#endif

typedef base_array_t boolean_array_t;

typedef double modelica_real;
Expand Down
11 changes: 0 additions & 11 deletions OMCompiler/SimulationRuntime/c/simulation/solver/cvode_solver.c
Expand Up @@ -48,19 +48,8 @@
#include "epsilon.h"



#ifdef WITH_SUNDIALS

/* Macros for better readability */

#ifndef FALSE
#define FALSE 0
#endif

#ifndef TRUE
#define TRUE 1
#endif

#define CVODE_LMM_MAX 2
const char *CVODE_LMM_NAME[CVODE_LMM_MAX + 1] = {
"undefined",
Expand Down
2 changes: 2 additions & 0 deletions OMCompiler/SimulationRuntime/c/simulation/solver/dassl.c
Expand Up @@ -495,6 +495,8 @@ int printCurrentStatesVector(int logLevel, double* states, DATA* data, double ti
return 0;
}

// TODO AHeu: Remove millionths definition of a simple vector print function

/* \fn printVector(int logLevel, double* y, DATA* data, double time)
*
* \param [in] [logLevel]
Expand Down
13 changes: 0 additions & 13 deletions OMCompiler/SimulationRuntime/c/simulation/solver/ida_solver.h
Expand Up @@ -55,19 +55,6 @@
/* readability */
#define MINIMAL_SCALE_FACTOR 1e-8

#ifndef booleantype
#define booleantype int
#endif

#ifndef FALSE
#define FALSE 0
#endif

#ifndef TRUE
#define TRUE 1
#endif


typedef struct IDA_USERDATA
{
DATA* data;
Expand Down