﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3783	OMEdit parameter changes overwrite existing arguments	Christoph <buchner@…>	Adrian Pop	"Let's say I start putting together a simple Modelica.Fluid system, with just a source for now (annotations omitted):

{{{
model test_overwritten_args
  replaceable package liquid = Modelica.Media.Water.StandardWater;
  Modelica.Fluid.Sources.FixedBoundary boundary(redeclare package Medium = liquid)
end test_overwritten_args;
}}}
Checking the model works fine. Now, let's use OMEdit to change the FixedBoundary pressure to what we actually need: Diagram view - double-click - put 10e5 into the p field - OK - save - Check model.

Funny, we get an error message:

{{{
[2] 11:18:17 Translation Error
[test_overwritten_args: 3:3-3:204]: component boundary contains the definition of a partial class Medium.
Please redeclare it to any package compatible with Modelica.Media.Interfaces.PartialMedium.

[3] 11:18:17 Translation Error
Error occurred while flattening model test_overwritten_args
}}}
Let's check the source:
{{{
  Modelica.Fluid.Sources.FixedBoundary boundary(p = 10e5)
}}}
The pressure was added, but surprisingly, the medium redeclaration was deleted!
This happens on every change of a parameter, as far as I can see, so on every change I have to go into text view and re-do the redeclare argument, which is '''very annoying'''!

Using OMEdit 1.9.4 on Windows 10 64bit."	defect	closed	blocker		Interactive Environment		fixed		
