File tree Expand file tree Collapse file tree
kratos.gid/scripts/Writing Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,8 +20,9 @@ proc write::writeGroupElementConnectivities { gNode kelemtype} {
2020 set write_properties_in mdpa
2121 if {[GetConfigurationAttribute properties_location] ne " " } {set write_properties_in [GetConfigurationAttribute properties_location]}
2222 set group [get_domnode_attribute $gNode n]
23- if { [dict exists $mat_dict $group ] && $write_properties_in eq " mdpa" } {
24- set mid [dict get $mat_dict $group MID]
23+ set submodelpart [write::GetSubModelPartName Parts $group ]
24+ if { [dict exists $mat_dict $submodelpart ] && $write_properties_in eq " mdpa" } {
25+ set mid [dict get $mat_dict $submodelpart MID]
2526 } else {
2627 set mid 0
2728 }
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ proc write::processMaterials { {alt_path ""} {last_assigned_id -1}} {
2121 set nodeApp [spdAux::GetAppIdFromNode $gNode ]
2222 set group_name [write::GetWriteGroupName [$gNode @n]]
2323 set cond_name [[$gNode parent] @n]
24- set submodelpart_id [write:GetSubModelPartName $cond_name $group_name ]
24+ set submodelpart_id [write:: GetSubModelPartName $cond_name $group_name ]
2525
2626 set material_name " material $material_number "
2727 if { ![dict exists $mat_dict $submodelpart_id ] } {
@@ -159,7 +159,7 @@ proc write::getPropertiesListByConditionXPath {cnd_xpath {write_claw_name "True"
159159 # Condition name
160160 set cond_id [get_domnode_attribute [$gNode parent] n]
161161 # We get the submodelpart name and the modelpart.submodelpart
162- set submodelpart_id [write:GetSubModelPartName $cond_id $group ]
162+ set submodelpart_id [write:: GetSubModelPartName $cond_id $group ]
163163 set submodelpart_fullname $submodelpart_id
164164 if {$model_part_name ne " " } {set submodelpart_fullname $model_part_name .$submodelpart_id }
165165 set submodelpart_id [string trim $submodelpart_id " ." ]
Original file line number Diff line number Diff line change @@ -161,15 +161,15 @@ proc write::GetSubModelPartFromCondition { base_UN condition_id } {
161161 return $submodelpart_list
162162}
163163
164- proc write:GetSubModelPartName {condid group} {
164+ proc write:: GetSubModelPartName {condid group} {
165165 set group_name [write::GetWriteGroupName $group ]
166166 set good_name [write::transformGroupName $group_name ]
167167 return " ${condid} _${good_name} "
168168}
169169
170170proc write::AddSubmodelpart {condid group} {
171171 variable submodelparts
172- set mid [write:GetSubModelPartName $condid $group ]
172+ set mid [write:: GetSubModelPartName $condid $group ]
173173 set group_name [write::GetWriteGroupName $group ]
174174 set good_name [write::transformGroupName $group_name ]
175175 if {[write::getSubModelPartId $condid $group_name ] eq 0} {
@@ -180,7 +180,8 @@ proc write::AddSubmodelpart {condid group} {
180180
181181proc write::getSubModelPartId {cid group} {
182182 variable submodelparts
183-
183+ W " $cid $group "
184+ WV submodelparts
184185 set find [list $cid ${group} ]
185186 if {[dict exists $submodelparts $find ]} {
186187 return [dict get $submodelparts [list $cid ${group} ]]
You can’t perform that action at this time.
0 commit comments