File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -263,6 +263,14 @@ def get_component_name(self):
263263 """Name of the component."""
264264 return self ._name
265265
266+ def get_input_item_count (self ):
267+ """Get names of input variables."""
268+ return len (self ._input_var_names )
269+
270+ def get_output_item_count (self ):
271+ """Get names of output variables."""
272+ return len (self ._output_var_names )
273+
266274 def get_input_var_names (self ):
267275 """Get names of input variables."""
268276 return self ._input_var_names
@@ -323,6 +331,9 @@ def get_grid_node_count(self, grid):
323331 def get_grid_nodes_per_face (self , grid , nodes_per_face ):
324332 raise NotImplementedError ("get_grid_nodes_per_face" )
325333
334+ def get_grid_face_edges (self , grid , face_edges ):
335+ raise NotImplementedError ("get_grid_face_edges" )
336+
326337 def get_grid_x (self , grid , x ):
327338 raise NotImplementedError ("get_grid_x" )
328339
Original file line number Diff line number Diff line change @@ -18,6 +18,17 @@ def test_grid_var_names():
1818 assert names == ("plate_surface__temperature" ,)
1919
2020
21+ def test_grid_var_item_count ():
22+ model = BmiHeat ()
23+ model .initialize ()
24+
25+ count = model .get_input_item_count ()
26+ assert count == 1
27+
28+ count = model .get_output_item_count ()
29+ assert count == 1
30+
31+
2132def test_grid_var_units ():
2233 model = BmiHeat ()
2334 model .initialize ()
You can’t perform that action at this time.
0 commit comments