Skip to content

Commit

Permalink
- fix printMatrix
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@23047 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Willi Braun committed Oct 29, 2014
1 parent 7d7218b commit d50f4db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SimulationRuntime/c/simulation/solver/omc_math.c
Expand Up @@ -746,8 +746,9 @@ void _omc_printMatrix(_omc_matrix* mat, const char* name, const int logLevel) {
infoStreamPrint(logLevel, 1, "%s", name);
for (i = 0; i < mat->rows; ++i) {
buffer[0] = 0;
for (j = 0; i < mat->rows; ++j)
for (j = 0; j < mat->cols; ++j){
sprintf(buffer, "%s%10g ", buffer, _omc_getMatrixElement(mat, i, j));
}
infoStreamPrint(logLevel, 0, "%s", buffer);
}
messageClose(logLevel);
Expand Down

0 comments on commit d50f4db

Please sign in to comment.