From 7b6e66f1060bf4ba79eb584a40104e306c513017 Mon Sep 17 00:00:00 2001 From: villberg Date: Mon, 8 Sep 2014 11:27:01 +0000 Subject: [PATCH] Partial update of arrays was broken refs #5224 git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@30229 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../src/fi/semantum/sysdyn/solver/Array.java | 33 +++++++++++++++++++ .../fi/semantum/sysdyn/solver/Variable.java | 9 ++++- .../semantum/sysdyn/solver/VariableBase.java | 11 ++++--- 3 files changed, 48 insertions(+), 5 deletions(-) diff --git a/fi.semantum.sysdyn.solver/src/fi/semantum/sysdyn/solver/Array.java b/fi.semantum.sysdyn.solver/src/fi/semantum/sysdyn/solver/Array.java index 12ffdf4f..e7b1959d 100644 --- a/fi.semantum.sysdyn.solver/src/fi/semantum/sysdyn/solver/Array.java +++ b/fi.semantum.sysdyn.solver/src/fi/semantum/sysdyn/solver/Array.java @@ -503,4 +503,37 @@ public class Array implements IExpression { return subscript(environment, subscripts, 0); } + public void applyPartial(Array[] indices, Array value, int pos) { + Array arr = indices[pos]; + if(Array.FULL == arr) { + for(int i=0;i