csdms / bmi-example-python

An example of wrapping a model written in Python with a BMI
https://bmi.csdms.io
MIT License
13 stars 22 forks source link

Match bmipy #12

Closed mdpiper closed 3 years ago

mdpiper commented 3 years ago

This PR updates the BMI for the heat model to more closely match the signatures of the BMI functions from the bmi-python repo. In particular, the

functions all take an output array parameter.

As a convenience, a shape property was added to the Heat class. This makes the get_grid_rank and get_grid_size functions easier to implement.

The unit tests were updated to match the updated BMI.