# BMI Version 3 Roadmap

**URL:** <https://forum.csdms.io/t/bmi-version-3-roadmap/105>\
**Category:** BMI\
**Tags:** bmi\
**Created:** [March 17, 2025, 5:32pm UTC](https://forum.csdms.io/t/bmi-version-3-roadmap/105 "2025-03-17T17:32:42Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![PhilMiller](https://yyz2.discourse-cdn.com/flex012/user_avatar/forum.csdms.io/philmiller/32/40_2.png) [@PhilMiller](https://forum.csdms.io/u/PhilMiller)\
**Post date:** [March 17, 2025, 5:32pm UTC](https://forum.csdms.io/t/bmi-version-3-roadmap/105/1 "2025-03-17T17:32:42Z")

</div>

Following the recent [BMI Council meeting](https://forum.csdms.io/t/bmi-council-meeting/101/5), I wanted to open the online discussion of plans for a BMI version 3.

The two big changes that the meeting attendees generally concluded were necessary were

- Generalizing from the sets of ‘input’ and ‘output’ variables to variables that fill various **roles**
- Supporting **extensions** in a way that supports an interoperable, open-ended ecosystem of BMI-supporting models and consumers

I’ll put some initial points about each of these in reply posts

---

<div class="post-metadata">

**Author:** ![PhilMiller](https://yyz2.discourse-cdn.com/flex012/user_avatar/forum.csdms.io/philmiller/32/40_2.png) [@PhilMiller](https://forum.csdms.io/u/PhilMiller)\
**Post date:** [March 17, 2025, 5:35pm UTC](https://forum.csdms.io/t/bmi-version-3-roadmap/105/2 "2025-03-17T17:35:28Z")

</div>

# Roles of Exposed Variables

Besides _input_ and _output_, participants identified several other meaningful roles of variables that BMI models may wish to expose:

- model state (e.g. for serialization)
- dimension parameters
- calibration parameters
- iterative solution input/output/control

Scott Peckham and Jessica Garrett did a more [in-depth study](https://github.com/NOAA-OWP/topmodel/blob/master/docs/VARIABLE_ROLES.md) on applications of this idea as part of their work on NOAA’s National Water Model.

---

<div class="post-metadata">

**Author:** ![PhilMiller](https://yyz2.discourse-cdn.com/flex012/user_avatar/forum.csdms.io/philmiller/32/40_2.png) [@PhilMiller](https://forum.csdms.io/u/PhilMiller)\
**Post date:** [March 17, 2025, 5:40pm UTC](https://forum.csdms.io/t/bmi-version-3-roadmap/105/3 "2025-03-17T17:40:36Z")

</div>

# Extensions

To support extensions, BMI models need at a minimum a way to expose the set of extensions that they implement, and to give consumers access to the functionality of each such extension

For inter-operability reasons, extensions can not be implemented as modifications of the base BMI object signature, which is necessarily static in C, C++, and Fortran.

---

<div class="post-metadata">

**Author:** ![PhilMiller](https://yyz2.discourse-cdn.com/flex012/user_avatar/forum.csdms.io/philmiller/32/40_2.png) [@PhilMiller](https://forum.csdms.io/u/PhilMiller)\
**Post date:** [March 17, 2025, 5:52pm UTC](https://forum.csdms.io/t/bmi-version-3-roadmap/105/4 "2025-03-17T17:52:34Z")

</div>

They also did [a prospective implementation](https://github.com/NOAA-OWP/cfe/compare/master...owp-bmi-enhance) demonstrating variable roles for one small-ish model

---

<div class="post-metadata">

**Author:** ![PhilMiller](https://yyz2.discourse-cdn.com/flex012/user_avatar/forum.csdms.io/philmiller/32/40_2.png) [@PhilMiller](https://forum.csdms.io/u/PhilMiller)\
**Post date:** [March 17, 2025, 5:56pm UTC](https://forum.csdms.io/t/bmi-version-3-roadmap/105/5 "2025-03-17T17:56:52Z")

</div>

One question about variable roles that I think warrants discussion is the set structure they define. Are different roles disjoint, or can they overlap? Can the set of roles and/or their contents change during a run, or should they be fixed after initialization?

---

<div class="post-metadata">

**Author:** ![PhilMiller](https://yyz2.discourse-cdn.com/flex012/user_avatar/forum.csdms.io/philmiller/32/40_2.png) [@PhilMiller](https://forum.csdms.io/u/PhilMiller)\
**Post date:** [March 17, 2025, 8:20pm UTC](https://forum.csdms.io/t/bmi-version-3-roadmap/105/6 "2025-03-17T20:20:54Z")

</div>

Two subjects of immediate interest for extensions, that the meeting attendees tentatively agreed could work in that form, were MPI parallelization and driving an iterative solution process that may couple models within a time step (as was done in XMI).

---

<div class="post-metadata">

**Author:** ![samharrison7](https://yyz2.discourse-cdn.com/flex012/user_avatar/forum.csdms.io/samharrison7/32/9_2.png) [@samharrison7](https://forum.csdms.io/u/samharrison7)\
**Post date:** [March 21, 2025, 9:30am UTC](https://forum.csdms.io/t/bmi-version-3-roadmap/105/7 "2025-03-21T09:30:35Z")

</div>

> [@PhilMiller](#):
>
> One question about variable roles that I think warrants discussion is the set structure they define. Are different roles disjoint, or can they overlap? Can the set of roles and/or their contents change during a run, or should they be fixed after initialization?

This sounds like a really useful update! My instinct is that it would be useful to have variables in different roles. For example, if you have a state variable (e.g. used for checkpointing), this could well be an output variable too, with the final value for the output variable being the value of the state variable after the final timestep.

On the second point about whether roles and their contents can change during runtime, I’m not sure! I can’t immediatedly think of a use case for this, but I’m sure there is one. I can imagine that bringing all sorts of complexity though.

As a side question, what is the best way of feeding in suggestions to the v3 roadmap? Via this thread?

---

<div class="post-metadata">

**Author:** ![PhilMiller](https://yyz2.discourse-cdn.com/flex012/user_avatar/forum.csdms.io/philmiller/32/40_2.png) [@PhilMiller](https://forum.csdms.io/u/PhilMiller)\
**Post date:** [March 21, 2025, 1:59pm UTC](https://forum.csdms.io/t/bmi-version-3-roadmap/105/8 "2025-03-21T13:59:52Z")

</div>

> [@samharrison7](#):
>
> As a side question, what is the best way of feeding in suggestions to the v3 roadmap? Via this thread?

For now, I think this thread, and eventually attending the next meeting. I think that’s being arranged for June.

---

<div class="post-metadata">

**Author:** ![gregtucker](https://yyz2.discourse-cdn.com/flex012/user_avatar/forum.csdms.io/gregtucker/32/24_2.png) [@gregtucker](https://forum.csdms.io/u/gregtucker)\
**Post date:** [June 2, 2025, 2:10pm UTC](https://forum.csdms.io/t/bmi-version-3-roadmap/105/9 "2025-06-02T14:10:04Z")

</div>

Just as a reminder, we have a working draft document defining and describing extensions here:

> **[Defining BMI Extensions](https://docs.google.com/document/d/1vbWgyaVbIrDifWNzxeiG-sR5Jt9CvgQkKgaNvClM93Y/edit?usp=sharing)**
>
> Defining BMI Extensions This is a first, rough outline-level stab at some text that defines what an Extension is and how Extensions are proposed, reviewed, and ultimately added to the overall BMI Standard. What are BMI Extensions? The Basic Model...

I recommend using “suggesting” mode for additions or edits.

---

<div class="post-metadata">

**Author:** ![PhilMiller](https://yyz2.discourse-cdn.com/flex012/user_avatar/forum.csdms.io/philmiller/32/40_2.png) [@PhilMiller](https://forum.csdms.io/u/PhilMiller)\
**Post date:** [August 19, 2025, 10:20pm UTC](https://forum.csdms.io/t/bmi-version-3-roadmap/105/10 "2025-08-19T22:20:04Z")

</div>

Another couple extensions that Nels is interested in specifying are

- ‘calibratable parameters’ as an indication that the above variable role will be used, and what to expect to find in it
- ‘mass balance’ or ‘conserved quantity’ tracking variables, again indicating the presence of some ‘role’ as mentioned above, and what to expect of variables defined therein
