Skip to content

Commit 11e27ea

Browse files
committed
- Move f2c.h includes to implementation files. Should not be part of the default headers.
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@15753 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent cf01109 commit 11e27ea

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

SimulationRuntime/c/simulation/solver/dassl.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
#include "model_help.h"
4242

4343
#include "dassl.h"
44+
#include "f2c.h"
4445

4546
static const char *dasslMethodStr[DASSL_MAX] = {"unknown",
4647
"dassl",

SimulationRuntime/c/simulation/solver/linearSystem.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
#include "omc_error.h"
3838
#include "linearSystem.h"
3939
#include "linearSolverLapack.h"
40+
#include "blaswrap.h"
41+
#include "f2c.h"
4042

4143
/*! \fn int allocatelinearSystem(DATA *data)
4244
*

SimulationRuntime/c/simulation/solver/linearSystem.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@
4242
extern "C" {
4343
#endif
4444

45-
#include "blaswrap.h"
46-
#include "f2c.h"
47-
4845
#ifdef VOID
4946
#undef VOID
5047
#endif

SimulationRuntime/c/simulation/solver/nonlinearSolverNewton.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343

4444
#include "nonlinearSystem.h"
4545
#include "nonlinearSolverNewton.h"
46+
#include "f2c.h"
4647

4748
typedef struct DATA_NEWTON
4849
{

SimulationRuntime/c/simulation/solver/nonlinearSystem.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@
3939
#include "kinsolSolver.h"
4040
#include "nonlinearSolverHybrd.h"
4141
#include "nonlinearSolverNewton.h"
42+
#include "blaswrap.h"
43+
#include "f2c.h"
44+
45+
extern doublereal enorm_(integer *n, doublereal *x);
4246

4347
/*! \fn int allocateNonlinearSystem(DATA *data)
4448
*

SimulationRuntime/c/simulation/solver/nonlinearSystem.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,10 @@
4242
extern "C" {
4343
#endif
4444

45-
#include "blaswrap.h"
46-
#include "f2c.h"
47-
4845
#ifdef VOID
4946
#undef VOID
5047
#endif
5148

52-
extern doublereal enorm_(integer *n, doublereal *x);
53-
5449
#ifdef __cplusplus
5550
}
5651
#endif

0 commit comments

Comments
 (0)