Skip to content

Commit

Permalink
Pass extrapolation and verbose from init2 to init3 functions (modelic…
Browse files Browse the repository at this point in the history
…a#3889)

* Pass extrapolation to init3 functions

The extrapolation funcionality was not passed to the init3 function,
whereas it used to be used by init2.

Initial report: OpenModelica/OpenModelica#8075

* FIXUP pass verbose
  • Loading branch information
sjoelund committed Nov 3, 2021
1 parent af0913b commit 565fd48
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Modelica/Resources/C-Sources/ModelicaStandardTables.c
Original file line number Diff line number Diff line change
Expand Up @@ -2081,8 +2081,8 @@ void* ModelicaStandardTables_CombiTable1D_init2(_In_z_ const char* fileName,
int extrapolation,
int verbose) {
return ModelicaStandardTables_CombiTable1D_init3(fileName, tableName,
table, nRow, nColumn, columns, nCols, smoothness, LAST_TWO_POINTS,
1 /* verbose */, ",", 0);
table, nRow, nColumn, columns, nCols, smoothness, extrapolation,
verbose, ",", 0);
}

void* ModelicaStandardTables_CombiTable1D_init3(_In_z_ const char* fileName,
Expand Down Expand Up @@ -2888,7 +2888,7 @@ void* ModelicaStandardTables_CombiTable2D_init2(_In_z_ const char* fileName,
int extrapolation,
int verbose) {
return ModelicaStandardTables_CombiTable2D_init3(fileName, tableName,
table, nRow, nColumn, smoothness, LAST_TWO_POINTS, 1 /* verbose */, ",", 0);
table, nRow, nColumn, smoothness, extrapolation, verbose, ",", 0);
}

void* ModelicaStandardTables_CombiTable2D_init3(_In_z_ const char* fileName,
Expand Down

0 comments on commit 565fd48

Please sign in to comment.