Skip to content

Commit

Permalink
ANSI C needed for stupid compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
adrpo committed Apr 12, 2016
1 parent 26d5e8f commit 81787f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions SimulationRuntime/c/simulation/solver/solver_main.c
Expand Up @@ -315,9 +315,10 @@ int initializeSolverData(DATA* data, threadData_t *threadData, SOLVER_INFO* solv
}
case S_IDA:
{
/* Allocate Lobatto6 IIIA work arrays */
IDA_SOLVER* idaData = NULL;
/* Allocate Lobatto6 IIIA work arrays */
infoStreamPrint(LOG_SOLVER, 0, "Initializing IDA DAE Solver");
IDA_SOLVER* idaData = (IDA_SOLVER*) malloc(sizeof(IDA_SOLVER));
idaData = (IDA_SOLVER*) malloc(sizeof(IDA_SOLVER));
retValue = ida_solver_initial(data, threadData, solverInfo, idaData);
solverInfo->solverData = idaData;
break;
Expand Down

0 comments on commit 81787f3

Please sign in to comment.