Skip to content

Commit

Permalink
- fix flattening of Modelica.Electrical.QuasiStationary.Machines.Exam…
Browse files Browse the repository at this point in the history
…ples.TransformerTestbench

- still some work to do to get it to compile (some wrong casting of non records to records)


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@17444 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Sep 30, 2013
1 parent 38514cb commit 5fe683a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Compiler/FrontEnd/Static.mo
Expand Up @@ -13070,6 +13070,15 @@ algorithm
(cache,SOME((daeExp,prop))) = elabCallArgs3(inCache,inEnv,arraytypes,inPath,inFuncArgs,{},inImpl,inSyTabOpt,inPre,inInfo);
then (cache, daeExp, prop);

// adrpo: v1 = n12 * v2; v1,v2 is array complex, n12 is real.
// see Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench
case (_, _, _ ,true, false, types, _, _, _, _, _, _, _)
equation
false = isOpElemWise(inOper);
(arraytypes, scalartypes) = List.splitOnTrue(types,isFuncWithArrayInput);
(cache,SOME((daeExp,prop))) = elabCallArgs3(inCache,inEnv,scalartypes,inPath,inFuncArgs,{},inImpl,inSyTabOpt,inPre,inInfo);
then (cache, daeExp, prop);

// the first one array the second a scalar with ELEMWISE operation
// this should be expanded.
case (_, _, _ ,true, false, types, _, _, _, _, _, _, _)
Expand Down

0 comments on commit 5fe683a

Please sign in to comment.