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@24946 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
OpenModelica-Hudson committed Mar 5, 2015
1 parent 01ea458 commit 2c510ca
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions SimulationRuntime/c/simulation/solver/nonlinearSolverHomotopy.c
Expand Up @@ -58,7 +58,7 @@ typedef struct DATA_HOMOTOPY

double xtol; /* tolerance for updating solution vector */
double ftol; /* tolerance fo accepting accuracy */

double error_f;

double* resScaling; /* residual scaling */
Expand Down Expand Up @@ -145,9 +145,9 @@ int allocateHomotopyData(int size, void** voiddata)
data->m = size + 1;
data->xtol = 1e-24;
data->ftol = 1e-24;

data->error_f = 0;

data->maxNumberOfIterations = size*100;
data->numberOfIterations = 0;
data->numberOfFunctionEvaluations = 0;
Expand Down Expand Up @@ -1742,7 +1742,7 @@ int solveHomotopy(DATA *data, int sysNumber)
debugVectorDouble(LOG_NLS_V,"Solution", solverData->x0, solverData->n);
/* reset continous flag */
((DATA*)data)->simulationInfo.solveContinuous = 0;

free(relationsPreBackup);

/* write statistics */
Expand Down Expand Up @@ -1822,7 +1822,7 @@ int solveHomotopy(DATA *data, int sysNumber)
vecCopy(solverData->n, solverData->x0, solverData->x);
vecCopy(solverData->n, solverData->fx0, solverData->f1);
vecCopy(solverData->n*solverData->m, solverData->fJacx0, solverData->fJac);

/* calculate scaling factor of residuals */
matVecMultAbsBB(solverData->n, solverData->fJac, solverData->ones, solverData->resScaling);
scaleMatrixRows(solverData->n, solverData->m, solverData->fJac);
Expand Down

0 comments on commit 2c510ca

Please sign in to comment.