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
Default value for optional coupling #2358
Labels
Comments
ghost
assigned friedmud
Feb 14, 2014
In b9491b2:
|
In a3b2947:
|
In b0eeeed:
|
In b1baaf7:
|
In f3b4be0:
|
In 715c5e0:
|
In c689b96:
|
In f0c0460:
|
friedmud
added a commit
that referenced
this issue
Feb 14, 2014
friedmud
added a commit
that referenced
this issue
Feb 14, 2014
permcody
added a commit
that referenced
this issue
Feb 14, 2014
permcody
added a commit
that referenced
this issue
Feb 14, 2014
friedmud
added a commit
that referenced
this issue
Feb 14, 2014
friedmud
added a commit
to friedmud/moose
that referenced
this issue
Apr 30, 2014
friedmud
added a commit
to friedmud/moose
that referenced
this issue
Apr 30, 2014
aeslaughter
pushed a commit
to aeslaughter/moose
that referenced
this issue
Apr 30, 2014
aeslaughter
pushed a commit
to aeslaughter/moose
that referenced
this issue
May 1, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We've talked in the past about doing something better for optional coupling (like #1483 ) - but I think I have a better idea.
Right now we provide a default value for all other kinds of parameters... why not for optional coupling? So it would look like this:
params.addCoupledVar("name", 3.0, "Documentation");
Then - if that coupling is not set up in the input file then that "variable" will automatically get a value of 3. So in the constructor you would just do this:
_var_value(coupledValue("name"))
And it would either give you the value of the coupled variable or 3....
We could either deprecate the old syntax ( addCoupledVar("name", "Docs") ) or we could leave it and it just implies 0.
The text was updated successfully, but these errors were encountered: