File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -454,7 +454,9 @@ proc Kratos::Event_BeforeMeshGeneration {elementsize} {
454454 }
455455
456456 # Change the mesh settings depending on the element requirements
457- catch {Kratos::CheckMeshCriteria $elementsize }
457+ if {[Kratos::CheckMeshCriteria $elementsize ]<0} {
458+ return " -cancel-"
459+ }
458460
459461 # Maybe the current application needs to do some extra job
460462 set ret [apps::ExecuteOnCurrentApp BeforeMeshGeneration $elementsize ]
Original file line number Diff line number Diff line change @@ -311,7 +311,8 @@ proc Kratos::CheckMeshCriteria { elementsize } {
311311 } else {
312312 if {$forced_mesh_order ne $element_forces } {
313313 # W "The element $element_id requires a different mesh order"
314- error " Incompatible mesh orders in elements"
314+ W " Incompatible mesh orders in elements"
315+ return -1
315316 }
316317 }
317318 }
You can’t perform that action at this time.
0 commit comments