File tree Expand file tree Collapse file tree
apps/ConjugateHeatTransfer/write Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -84,28 +84,6 @@ proc ::ConjugateHeatTransfer::write::GetProcessList { } {
8484 return $processes
8585}
8686
87-
88- proc write::GetDefaultOutputProcessDict { {appid " " } } {
89- # Output process must be placed inside json lists
90- set gid_output_process_list [list ]
91- set need_gid [write::getValue EnableGiDOutput]
92- if {[write::isBooleanTrue $need_gid ]} {
93- lappend gid_output_process_list [write::GetDefaultGiDOutput $appid ]
94- }
95-
96- set vtk_output_process_list [list ]
97- set need_vtk [write::getValue EnableVtkOutput]
98- if {[write::isBooleanTrue $need_vtk ]} {
99- lappend vtk_output_process_list [write::GetDefaultVTKOutput $appid ]
100- }
101-
102- set outputProcessesDict [dict create]
103- dict set outputProcessesDict gid_output $gid_output_process_list
104- dict set outputProcessesDict vtk_output $vtk_output_process_list
105-
106- return $outputProcessesDict
107- }
108-
10987proc ::ConjugateHeatTransfer::write::GetOutputProcessesList { } {
11088 set output_process [dict create]
11189
Original file line number Diff line number Diff line change @@ -156,12 +156,14 @@ proc write::writeGroupSubModelPartByUniqueId { cid group ConditionsMap {what "El
156156 variable submodelparts
157157 variable formats_dict
158158
159+
159160 set id_f [dict get $formats_dict ID]
160161
161162 set mid " "
162163 set what [split $what " &" ]
163164 set group [write::GetWriteGroupName $group ]
164165 if {![dict exists $submodelparts [list $cid ${group} ]]} {
166+ set null_cond_warn 0
165167 # Add the submodelpart to the catalog
166168 set good_name [write::transformGroupName $group ]
167169 set mid " ${cid} _${good_name} "
@@ -204,12 +206,15 @@ proc write::writeGroupSubModelPartByUniqueId { cid group ConditionsMap {what "El
204206 set elems [GiD_WriteCalculationFile elements -sorted -return $gdict ]
205207 for {set i 0} {$i <[llength $elems ]} {incr i} {
206208 set eid [objarray get $ConditionsMap [lindex $elems $i ]]
209+ if ($eid == 0) {set null_cond_warn 1}
207210 WriteString " ${s2} [ format $id_f $eid ] "
208211 }
209212 }
210213 WriteString " ${s1} End SubModelPartConditions"
211214 WriteString " ${s} End SubModelPart"
215+ if {$null_cond_warn } {W " $mid submodelpart contains conditions that are not in the Conditions block" }
212216 }
217+
213218 return $mid
214219}
215220
You can’t perform that action at this time.
0 commit comments