Skip to content

Commit

Permalink
- fix incompatible pointer types
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@19249 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
lochel committed Feb 22, 2014
1 parent 73061b1 commit f0f56a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions SimulationRuntime/c/simulation/solver/external_input.c
Expand Up @@ -76,9 +76,9 @@ int externalInputallocate(DATA* data)
data->simulationInfo.external_input.t = (modelica_real*)calloc(data->simulationInfo.external_input.n,sizeof(modelica_real));

for(i = 0; i < data->simulationInfo.external_input.n; ++i){
c = fscanf(pFile, "%f", &data->simulationInfo.external_input.t[i]);
c = fscanf(pFile, "%lf", &data->simulationInfo.external_input.t[i]);
for(j = 0; j < m; ++j){
c = fscanf(pFile, "%f", &data->simulationInfo.external_input.u[i][j]);
c = fscanf(pFile, "%lf", &data->simulationInfo.external_input.u[i][j]);
}
if(c<0)
data->simulationInfo.external_input.n = i;
Expand Down
4 changes: 2 additions & 2 deletions SimulationRuntime/c/simulation_data.h
Expand Up @@ -157,8 +157,8 @@ typedef struct ANALYTIC_JACOBIAN
typedef struct EXTERNAL_INPUT
{
modelica_boolean active;
float** u;
float* t;
modelica_real** u;
modelica_real* t;
modelica_integer N;
modelica_integer n;
modelica_integer i;
Expand Down

0 comments on commit f0f56a3

Please sign in to comment.