Skip to content

Commit

Permalink
fix MSVC compilation of new added solver
Browse files Browse the repository at this point in the history
- remove jacobian variable (not used)
- MSVC 2010 does not support definition of variables with size from local or stack variables, use malloc/free instead
  • Loading branch information
adrpo authored and OpenModelica-Hudson committed Feb 3, 2017
1 parent 8ce7212 commit 79d3e32
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion SimulationRuntime/c/simulation/solver/irksco.c
Expand Up @@ -568,7 +568,6 @@ void irksco_first_step(DATA* data, threadData_t* threadData, SOLVER_INFO* solver
SIMULATION_DATA *sDataOld = (SIMULATION_DATA*)data->localData[1];
DATA_IRKSCO* userdata = (DATA_IRKSCO*)solverInfo->solverData;
const int n = data->modelData->nStates;
double jacobian[n*n];
modelica_real* stateDer = sData->realVars + data->modelData->nStates;
double sc, d, d0 = 0.0, d1 = 0.0, d2 = 0.0, h0, h1, delta_ti, infNorm, sum = 0;
double Atol = 1e-6, Rtol = 1e-3;
Expand Down

0 comments on commit 79d3e32

Please sign in to comment.