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@24384 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
OpenModelica-Hudson committed Feb 3, 2015
1 parent da36c48 commit aa21603
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion SimulationRuntime/cpp/Include/Solver/IDA/IDA.h
Expand Up @@ -207,7 +207,7 @@ double
N_Vector
_CV_y0, ///< Temp - Initial values in the ida Format
_CV_y, ///< Temp - State in ida Format
_CV_yp, ///<Temp - Stateders in ida Format
_CV_yp, ///<Temp - Stateders in ida Format
_CV_yWrite, ///< Temp - Vector for dense out
_CV_absTol;

Expand Down
16 changes: 8 additions & 8 deletions SimulationRuntime/cpp/Solver/IDA/IDA.cpp
Expand Up @@ -524,8 +524,8 @@ void Ida::IDACore()
// State variables were reinitialized, thus we have to give these values to the ida-solver
// Take care about the memory regions, _z is the same like _CV_y
_continuous_system->getContinuousStates(_z);
calcFunction(_tCurrent, NV_DATA_S(_CV_y), NV_DATA_S(_CV_yp));
calcFunction(_tCurrent, NV_DATA_S(_CV_y), NV_DATA_S(_CV_yp));

}
}

Expand Down Expand Up @@ -698,12 +698,12 @@ int Ida::calcFunction(const double& time, const double* y, double* f)
}

int Ida::CV_fCallback(double t, N_Vector y, N_Vector ydot, N_Vector resval, void *user_data)
{
double* ypval=NV_DATA_S(ydot);
double* rval=NV_DATA_S(resval);
((Ida*) user_data)->calcFunction(t, NV_DATA_S(y), NV_DATA_S(resval));
for(size_t i(0); i<((Ida*) user_data)->_dimSys; ++i) rval[i]-=ypval[i];
return 0;
{
double* ypval=NV_DATA_S(ydot);
double* rval=NV_DATA_S(resval);
((Ida*) user_data)->calcFunction(t, NV_DATA_S(y), NV_DATA_S(resval));
for(size_t i(0); i<((Ida*) user_data)->_dimSys; ++i) rval[i]-=ypval[i];
return 0;
}

void Ida::giveZeroVal(const double &t, const double *y, double *zeroValue)
Expand Down

0 comments on commit aa21603

Please sign in to comment.