﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2108	OMedit alters code	massimo ceraolo	Adeel Asghar	"I have the following code in a file:

{{{
model AlgebraicInv ""Algebraic part of functional lossless inverter""
  Modelica.Electrical.Analog.Interfaces.Pin pin_p;
  Modelica.Electrical.Analog.Interfaces.NegativePin pin_n;
  Modelica.Electrical.MultiPhase.Interfaces.NegativePlug plug_n;
  Modelica.Electrical.MultiPhase.Interfaces.PositivePlug plug_p;
  Modelica.SIunits.Power Power;
  //  Modelica.SIunits.Voltage Udc;
  Modelica.Blocks.Interfaces.RealInput u[3] annotation(Placement(visible = true, transformation(origin = {3,-120}, extent = {{20,-20},{-20,20}}, rotation = 90), iconTransformation(origin = {3,-120}, extent = {{20,-20},{-20,20}}, rotation = 90)));
equation
  plug_p.pin[1:3].i = -plug_n.pin[1:3].i;
  pin_p.i + pin_n.i = 0;
  plug_p.pin[1:3].v - plug_n.pin[1:3].v = u[1:3];
  Power = sum(plug_p.pin[i].v * plug_p.pin[i].i for i in 1:3);
  (pin_p.v - pin_n.v) * pin_p.i + Power = 0;
end AlgebraicInv;

}}}
When it is loaded by OMedit a row is changed. From:

{{{
Modelica.Blocks.Interfaces.RealInput u[3]; 
}}}
 into
{{{
Modelica.Blocks.Interfaces.RealInput u; 
}}}

that makes the code incorrect.


"	defect	closed	high	1.9.0	OMEdit	trunk	fixed		
