Skip to content

Commit ce5c297

Browse files
committed
Fixing nesting parse of submdpas
1 parent 35e7935 commit ce5c297

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

js/nodes/parsed_model_part.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ class ParsedModelPart {
5656
sub_mdpa_namepath = `${sub_mdpa_namepath}.${match[3]}`;
5757
this.properties["submodelpart_list"].push(sub_mdpa_namepath);
5858
}
59+
60+
if (match[0].includes("End")) {
61+
sub_mdpa_namepath = sub_mdpa_namepath.split(".");
62+
sub_mdpa_namepath.pop();
63+
sub_mdpa_namepath = sub_mdpa_namepath.join(".");
64+
}
5965
}
6066

6167
// Populate the outputs

0 commit comments

Comments
 (0)