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@20769 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
OpenModelica-Hudson committed May 22, 2014
1 parent ecd0ae8 commit 7b886df
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions Compiler/Template/CodegenCpp.tpl
Expand Up @@ -5292,8 +5292,8 @@ case SIMCODE(modelInfo = MODELINFO(vars = vars as SIMVARS(__)))
;separator=" "; align=10;alignSeparator=" \n" )}
;separator=" "%>;
vars2 = map_list_of
<%{
(vars.algVars |> SIMVAR(__) hasindex i0 =>
Expand All @@ -5308,8 +5308,8 @@ case SIMCODE(modelInfo = MODELINFO(vars = vars as SIMVARS(__)))
;separator=" ";align=10;alignSeparator=" \n"
%>;
}
>>
end initPrevars;
Expand Down Expand Up @@ -5343,7 +5343,7 @@ case SIMCODE(modelInfo = MODELINFO(vars = vars as SIMVARS(__)))
<<
void <%lastIdentOfPath(modelInfo.name)%>::saveDiscreteVars()
{
unsigned int n = <%n_vars%>;
unsigned int n = <%n_vars%>;
double pre_vars[] = {
<%{
(vars.algVars |> SIMVAR(__) =>
Expand Down
6 changes: 3 additions & 3 deletions SimulationRuntime/cpp/Core/System/EventHandling.cpp
Expand Up @@ -126,7 +126,7 @@ double EventHandling::pre(double var,string key)
{
unsigned int i = _pre_vars_idx[key];
return _pre_vars[i];

}
/**
Implementation of the Modelica edge operator
Expand All @@ -149,13 +149,13 @@ void EventHandling::saveDiscreteVar(double var,string key)
{
unsigned int i = _pre_discrete_vars_idx[key];
_pre_discrete_vars[i]=var;

}
bool EventHandling::changeDiscreteVar(double var,string key)
{
unsigned int i = _pre_discrete_vars_idx[key];
return var != _pre_discrete_vars[i];

}


Expand Down
2 changes: 1 addition & 1 deletion SimulationRuntime/cpp/Include/Core/System/EventHandling.h
Expand Up @@ -24,7 +24,7 @@ class BOOST_EXTENSION_EVENTHANDLING_DECL EventHandling
//int getDimHelpVars() const;



//saves a variable in _pre_vars vector
void save(double var,string key);
void savePreVars(double vars [], unsigned int n);
Expand Down

0 comments on commit 7b886df

Please sign in to comment.