-
Notifications
You must be signed in to change notification settings - Fork 95
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
Update documentation for Passing data into expressions #2928
base: master
Are you sure you want to change the base?
Update documentation for Passing data into expressions #2928
Conversation
.set("shear", shear[i])); | ||
|
||
BOUT_FOR(i, viscosity.getRegion("RGN_ALL")) { | ||
viscosity[i] = gen->generate(bout::generator::Context().set("shear", shear[i])); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will use the default Context()
constructor (https://github.com/boutproject/BOUT-dev/blob/master/include/bout/sys/generator_context.hxx#L19) so "x", "y", "z", "t" will not be defined. Recommend instead using the original Context(i, CELL_CENTRE, mesh, 0.0)
Note that the ``Context`` constructor takes the index, the cell | ||
location (e.g. staggered), a mesh, and then the time (set to 0.0 | ||
here). Additional variables can be ``set``, "shear" in this case. In | ||
the input options file (or command line) the viscosity could now be a | ||
function of ``{shear}`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tbody-cfs any reason why this has been deleted?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See also Ben's comment
Updates docs to match BOUT version used by Hermes-3 master (7d261d4)