From 565fd48ff28fde4c0d2dc41278c4dae2ca06c99d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Sj=C3=B6lund?= Date: Wed, 3 Nov 2021 11:41:36 +0100 Subject: [PATCH] Pass extrapolation and verbose from init2 to init3 functions (#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: https://github.com/OpenModelica/OpenModelica/issues/8075 * FIXUP pass verbose --- Modelica/Resources/C-Sources/ModelicaStandardTables.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Modelica/Resources/C-Sources/ModelicaStandardTables.c b/Modelica/Resources/C-Sources/ModelicaStandardTables.c index 33637dbf8a..e0cca82cc3 100644 --- a/Modelica/Resources/C-Sources/ModelicaStandardTables.c +++ b/Modelica/Resources/C-Sources/ModelicaStandardTables.c @@ -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, @@ -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,