-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Align variable types with intent
used by xarray-simlab
#65
Comments
In response to @xaviernogueira's #50 (comment), I wrote #50 (comment):
|
In support of my reasoning, @PeterKlaver emailed me the following comments:
|
The current design separates variables into three types based on the
use
attribute: 'static', 'state', or 'dynamic'. This can lead to substantial confusion.I much prefer the variable
intent
as defined by xarray-simlab, where the three options are:intent='in'
if needed as input to a process, but not modified (read-only)intent='inout'
if updated by a process (read & write)intent='out'
if computed by a process (write only)This is much less ambiguous, and more clearly aligns with modeling language describing inputs and outputs (and variables that are both).
As more background, the term "state variable" means something very specific to chemists, which does not align with the current use of that term by this library. Remember that these are water quality modules, so I would really like to move back toward using that term in a way that doesn't conflict with how it is used by chemists. See:
This issue started out as a side thread under the following:
NOTE: I do not think this change will deeply affect core functionality, although a deeper exploration of impacts will be required. @xaviernogueira explained some potential complications with his #50 (comment)
The text was updated successfully, but these errors were encountered: