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@24026 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
OpenModelica-Hudson committed Jan 13, 2015
1 parent 976ec43 commit 395fbba
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Compiler/Template/CodegenCpp.tpl
Expand Up @@ -7273,11 +7273,11 @@ template initPreVars1(list<SimCodeVar.SimVar> partVars, Integer partIdx, Integer
<<
void <%className%>::initPre<%pretype%>Vars_<%partIdx%>(unordered_map<double* const,unsigned int>& vars1,unordered_map<int* const,unsigned int>& vars2,unordered_map<bool* const,unsigned int>& vars3)
{

<%(partVars |> SIMVAR(__) hasindex i0 fromindex (intAdd(startIdx,intMul(partIdx, multiplicator))) =>
'<%\t%><%varsLst%>[&<%cref1(name, simCode,extraFuncs,extraFuncsDecl,extraFuncsNamespace,contextOther,varDecls,stateDerVectorName,useFlatArrayNotation)%>]=<%i0%>;'
;separator="\n")%>;

}
>>
end initPreVars1;
Expand Down
6 changes: 3 additions & 3 deletions SimulationRuntime/cpp/Core/System/EventHandling.cpp
Expand Up @@ -34,9 +34,9 @@ void EventHandling::initialize(IEvent* system,int dim)
_mixed_system= dynamic_cast<IMixedSystem*>(_event_system);
_event_system->initPreVars(_pre_real_vars_idx,_pre_int_vars_idx,_pre_bool_vars_idx);
_pre_vars.resize((boost::extents[_pre_real_vars_idx.size()+_pre_int_vars_idx.size()+_pre_bool_vars_idx.size()]));



/*if(_dimH > 0)
{
// Initialize help vars vector
Expand Down
6 changes: 3 additions & 3 deletions SimulationRuntime/cpp/Include/Core/System/EventHandling.h
Expand Up @@ -57,7 +57,7 @@ class BOOST_EXTENSION_EVENTHANDLING_DECL EventHandling
//Handles all events occured a the same time. Returns true if a second event iteration is needed
bool IterateEventQueue(bool& state_vars_reinitialized);


bool changeDiscreteVar(double& var);
bool changeDiscreteVar(int& var);
bool changeDiscreteVar(bool& var);
Expand All @@ -67,9 +67,9 @@ class BOOST_EXTENSION_EVENTHANDLING_DECL EventHandling
//Stores all varibales occured before an event
unordered_map<double* const, unsigned int> _pre_real_vars_idx;
//stores all eventes
unordered_map<int* const, unsigned int> _pre_int_vars_idx;
unordered_map<int* const, unsigned int> _pre_int_vars_idx;
//stores all eventes
unordered_map<bool* const, unsigned int> _pre_bool_vars_idx;
unordered_map<bool* const, unsigned int> _pre_bool_vars_idx;
IEvent* _event_system;
//Helpvarsvector for discrete variables
//double* _h;
Expand Down

0 comments on commit 395fbba

Please sign in to comment.