From: villberg Date: Mon, 8 Sep 2014 11:27:01 +0000 (+0000) Subject: Partial update of arrays was broken X-Git-Tag: v1.29.0~188 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=7b6e66f1060bf4ba79eb584a40104e306c513017;p=simantics%2Fsysdyn.git 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 --- 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