Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- Fix table initialization. Seems to be a scope typo (indentation correct, curlies not).


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@12696 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Aug 28, 2012
1 parent 38186ad commit 99066b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SimulationRuntime/c/ModelicaExternalC/tables.c
Expand Up @@ -1489,12 +1489,12 @@ void InterpolationTable2D_checkValidityOfData(InterpolationTable2D *tpl)
/* check if table has values */
ASSERT2((tpl->rows > 1) && (tpl->cols > 1),"Table %s from file %s has no data!",tpl->tablename,tpl->filename);
/* check that first row and column are strictly monotonous */
for(i=2; i < tpl->rows; ++i)
{
for(i=2; i < tpl->rows; ++i) {
if (InterpolationTable2D_getElt(tpl,i-1,0) >= InterpolationTable2D_getElt(tpl,i,0))
THROW3("Table: %s independent variable u1 not strictly \
monotonous: %g >= %g.",tpl->tablename, InterpolationTable2D_getElt(tpl,i-1,0), InterpolationTable2D_getElt(tpl,i,0));
for(i=2; i < tpl->cols; ++i)
}
for(i=2; i < tpl->cols; ++i) {
if (InterpolationTable2D_getElt(tpl,0,i-1) >= InterpolationTable2D_getElt(tpl,0,i))
THROW3("Table: %s independent variable u2 not strictly \
monotonous: %g >= %g.",tpl->tablename, InterpolationTable2D_getElt(tpl,0,i-1), InterpolationTable2D_getElt(tpl,0,i));
Expand Down

0 comments on commit 99066b7

Please sign in to comment.