Skip to content

Commit

Permalink
- fix bootstrapped compilation
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@12903 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Sep 12, 2012
1 parent f377493 commit c78f7e5
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Compiler/BackEnd/Uncertainties.mo
Original file line number Diff line number Diff line change
Expand Up @@ -340,30 +340,31 @@ end isApproximatedEquation3;
protected function flattenModel
input Absyn.Path className;
input Absyn.Program p;
input Env.Cache cache;
input Env.Cache icache;
output DAE.DAElist daeOut;
output Env.Cache cacheOut;
output list<Env.Frame> envOut;
algorithm
(daeOut,cacheOut,envOut):=matchcontinue(className,p,cache)
(daeOut,cacheOut,envOut):=matchcontinue(className,p,icache)
local
list<SCode.Element> p_1;
Absyn.Program ptot;
DAE.DAElist dae;
list<Env.Frame> env;
Real timeFrontend;
String resstr;
case(className,p,cache)
Env.Cache cache;
case(_,_,_)
equation
System.realtimeTick(CevalScript.RT_CLOCK_UNCERTAINTIES);
ptot = Dependency.getTotalProgram(className,p);
p_1 = SCodeUtil.translateAbsyn2SCode(ptot);
(cache,env,_,dae) = Inst.instantiateClass(cache,InnerOuter.emptyInstHierarchy,p_1,className);
(cache,env,_,dae) = Inst.instantiateClass(icache,InnerOuter.emptyInstHierarchy,p_1,className);
timeFrontend = System.realtimeTock(CevalScript.RT_CLOCK_UNCERTAINTIES);
System.realtimeTick(CevalScript.RT_CLOCK_BACKEND);
dae = DAEUtil.transformationsBeforeBackend(cache,env,dae);
then (dae,cache,env);
case(className,_,_)
else
equation
resstr = Absyn.pathStringNoQual(className);
resstr = stringAppendList({"modelEquationsUC: The model ",resstr," could not be flattened"});
Expand Down

0 comments on commit c78f7e5

Please sign in to comment.