diff --git a/frameworks/fmi2api/src/main/java/org/intocps/maestro/framework/fmi2/api/mabl/scoping/ScopeFmi2Api.java b/frameworks/fmi2api/src/main/java/org/intocps/maestro/framework/fmi2/api/mabl/scoping/ScopeFmi2Api.java index bd133776..7a5ae4f7 100644 --- a/frameworks/fmi2api/src/main/java/org/intocps/maestro/framework/fmi2/api/mabl/scoping/ScopeFmi2Api.java +++ b/frameworks/fmi2api/src/main/java/org/intocps/maestro/framework/fmi2/api/mabl/scoping/ScopeFmi2Api.java @@ -654,8 +654,7 @@ public void addTransferAs(String... names) { @Override public Var copy(String name, Var variable) { - if (variable instanceof BooleanVariableFmi2Api || variable instanceof DoubleVariableFmi2Api || variable instanceof IntVariableFmi2Api || - variable instanceof StringVariableFmi2Api) { + if (!(variable instanceof ArrayVariableFmi2Api) && variable instanceof VariableFmi2Api) { String varName = builder.getNameGenerator().getName(name); PStm variableDeclaration = newVariable(varName, variable.getType(), variable.getReferenceExp().clone()); add(variableDeclaration);