Skip to content

Commit

Permalink
- remove some extra checks.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@12123 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Jun 19, 2012
1 parent 95145e0 commit 3462e9e
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions SimulationRuntime/OpenTurns/wrapper_template.c
Expand Up @@ -246,12 +246,13 @@ long callOpenModelicaModel(STATE p_state, INPOINT inPoint, OUTPOINT outPoint, EX
ModelicaMatVariable_t *matVar = omc_matlab4_find_var(&matReader, variableName);
omc_matlab4_val(&variableValue, &matReader, matVar, stopTime);
// y=F*L^3/(3.0*E*I)
F = inPoint->data_[0];
L = inPoint->data_[1];
E = inPoint->data_[2];
I = inPoint->data_[3];
y = (F*L*L*L)/(3*E*I);
fprintf(stderr, "%s=%.15g [%g] at time %g, ", variableName, variableValue, y, stopTime);
// F = inPoint->data_[0];
// L = inPoint->data_[1];
// E = inPoint->data_[2];
// I = inPoint->data_[3];
// y = (F*L*L*L)/(3*E*I);
// fprintf(stderr, "%s=%.15g [%g] at time %g, ", variableName, variableValue, y, stopTime);
fprintf(stderr, "%s=%.15g at time %g, ", variableName, variableValue, stopTime);
idx++;
}
/* move to next */
Expand Down

0 comments on commit 3462e9e

Please sign in to comment.