Skip to content

Commit

Permalink
- split Inst.mo into more packages to make it more manageable:
Browse files Browse the repository at this point in the history
  + Inst.mo         -> instClass*, partialInst* functions
  + InstVar.mo      -> instVar* functions
  + InstFunction.mo -> instFunction* functions
  + InstDAE.mo      -> daeDeclare* functions
  + InstBinding.mo  -> makeBinding*, instBinding* functions
  + InstUtil.mo     -> all other functions that are just support for instantiation


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@17568 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Oct 7, 2013
1 parent a3aaa0b commit c763ad5
Show file tree
Hide file tree
Showing 18 changed files with 15,402 additions and 15,001 deletions.
1 change: 0 additions & 1 deletion Compiler/BackEnd/BackendDAE.mo
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ public import SCode;
public import Values;
public import HashTable3;
public import HashTableCG;
public import CheckModel;

public
type Type = .DAE.Type
Expand Down
6 changes: 4 additions & 2 deletions Compiler/FrontEnd/Ceval.mo
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ protected import ExpressionDump;
protected import ExpressionSimplify;
protected import Flags;
protected import Inst;
protected import InstBinding;
protected import InstUtil;
protected import List;
protected import Mod;
protected import ModelicaExternalC;
Expand Down Expand Up @@ -1476,7 +1478,7 @@ algorithm

case (cache,env,DAE.CREF(componentRef = cr,ty = expTp),dimExp,(impl as false),st,msg,_)
equation
(cache,dims) = Inst.elabComponentArraydimFromEnv(cache,env,cr,Absyn.dummyInfo)
(cache,dims) = InstUtil.elabComponentArraydimFromEnv(cache,env,cr,Absyn.dummyInfo)
"If component not instantiated yet, recursive definition.
For example,
Real x[:](min=fill(1.0,size(x,1))) = {1.0}
Expand Down Expand Up @@ -5004,7 +5006,7 @@ algorithm
(DAE.T_COMPLEX(complexClassType = ClassInf.RECORD(path = tpath),
varLst = vl)) = Types.arrayElementType(ty);
true = Types.allHaveBindings(vl);
binding = Inst.makeRecordBinding(cache, env, tpath, ty, vl, {}, info);
binding = InstBinding.makeRecordBinding(cache, env, tpath, ty, vl, {}, info);
(cache, res) = cevalCrefBinding(cache, env, inComponentRef, binding, inBoolean, inMsg, numIter+1);
then
(cache, res);
Expand Down

0 comments on commit c763ad5

Please sign in to comment.