Skip to content

Commit

Permalink
[Janitor mode] Fix whitespace
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@24594 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
OpenModelica-Hudson committed Feb 16, 2015
1 parent 112fcfc commit c00de9f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions SimulationRuntime/c/simulation/solver/linearSolverLis.c
Expand Up @@ -100,7 +100,7 @@ freeLisData(void **voiddata)
lis_vector_destroy(data->b);
lis_vector_destroy(data->x);
lis_solver_destroy(data->solver);

free(data->work);

return 0;
Expand Down Expand Up @@ -226,7 +226,7 @@ solveLis(DATA *data, int sysNumber)
systemData->setb(data, systemData);

} else {

lis_matrix_set_size(solverData->A, solverData->n_row, 0);
/* calculate jacobian -> matrix A*/
if(systemData->jacobianIndex != -1){
Expand Down
8 changes: 4 additions & 4 deletions SimulationRuntime/c/simulation/solver/linearSolverUmfpack.c
Expand Up @@ -186,8 +186,8 @@ solveUmfPack(DATA *data, int sysNumber)
int i, j, status = UMFPACK_OK, success = 0, ni=0, n = systemData->size, eqSystemNumber = systemData->equationIndex, indexes[2] = {1,eqSystemNumber};

infoStreamPrintWithEquationIndexes(LOG_LS, 0, indexes, "Start solving Linear System %d (size %d) at time %g with UMFPACK Solver",
eqSystemNumber, (int) systemData->size,
data->localData[0]->timeValue);
eqSystemNumber, (int) systemData->size,
data->localData[0]->timeValue);


rt_ext_tp_tick(&(solverData->timeClock));
Expand Down Expand Up @@ -253,8 +253,8 @@ solveUmfPack(DATA *data, int sysNumber)
/* symbolic pre-ordering of A to reduce fill-in of L and U */
if (0 == solverData->numberSolving)
{
status = umfpack_di_symbolic(solverData->n_col, solverData->n_row, solverData->Ap, solverData->Ai, solverData->Ax, &(solverData->symbolic), solverData->control, solverData->info);
}
status = umfpack_di_symbolic(solverData->n_col, solverData->n_row, solverData->Ap, solverData->Ai, solverData->Ax, &(solverData->symbolic), solverData->control, solverData->info);
}

/* compute the LU factorization of A */
if (0 == status){
Expand Down

0 comments on commit c00de9f

Please sign in to comment.