Skip to content
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

referencing values in input #2938

Open
dschwoerer opened this issue Jul 8, 2024 · 1 comment
Open

referencing values in input #2938

dschwoerer opened this issue Jul 8, 2024 · 1 comment

Comments

@dschwoerer
Copy link
Contributor

The documentation says it is possible to reference values in the input file.

However, that is only true for numerical values.
For string values, that is not possible.

It would be nice to add the functionality to reference other values, however I am not sure what syntax should be used.

a = "some_file.nc"
b = :a
b = `a`
b = ???

Any opinions?

@bendudson
Copy link
Contributor

Simple uses should be ok e.g.

b = a

(or other simple lookup like b = mesh:name)
but if we want to do more complicated things like string concatenation

b = a + "_something"

then the parser will need to be more complicated: Every expression has BoutReal type currently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants