File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,9 +7,11 @@ proc Buoyancy::examples::Init { } {
77}
88
99proc Buoyancy::examples::UpdateMenus { } {
10- GiDMenu::InsertOption " Kratos" [list " ---" ] 8 PRE " " " " " " insertafter =
11- GiDMenu::InsertOption " Kratos" [list " Heated square" ] 8 PRE [list ::Buoyancy::examples::HeatedSquare] " " " " insertafter =
12- GiDMenu::UpdateMenus
10+ if {$::Model::SpatialDimension eq " 2D" } {
11+ GiDMenu::InsertOption " Kratos" [list " ---" ] 8 PRE " " " " " " insertafter =
12+ GiDMenu::InsertOption " Kratos" [list " Heated square" ] 8 PRE [list ::Buoyancy::examples::HeatedSquare] " " " " insertafter =
13+ GiDMenu::UpdateMenus
14+ }
1315}
1416
1517Buoyancy::examples::Init
Original file line number Diff line number Diff line change @@ -58,7 +58,10 @@ proc ::Buoyancy::GetAttribute {name} {
5858
5959proc ::Buoyancy::CustomToolbarItems { } {
6060 variable dir
61- Kratos::ToolbarAddItem " Example" " example.png" [list -np- ::Buoyancy::examples::HeatedSquare] [= " Example\n Buoyancy driven cavity flow (Ra = 1e6 - Pr = 0.71)" ]
61+
62+ if {$::Model::SpatialDimension eq " 2D" } {
63+ Kratos::ToolbarAddItem " Example" " example.png" [list -np- ::Buoyancy::examples::HeatedSquare] [= " Example\n Buoyancy driven cavity flow (Ra = 1e6 - Pr = 0.71)" ]
64+ }
6265}
6366
6467::Buoyancy::Init
You can’t perform that action at this time.
0 commit comments