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

Be able to use datafunctions in parameter expressions #106

Open
ahellander opened this issue Jul 9, 2014 · 0 comments
Open

Be able to use datafunctions in parameter expressions #106

ahellander opened this issue Jul 9, 2014 · 0 comments
Labels
Milestone

Comments

@ahellander
Copy link
Owner

On the Python modeling API level, URDMEDataFunctions should behave like Parameters, i.e. it should be possible to do something like

self.add_data_function(MeshSize(self.mesh))

And then say:

p = pyurdme.Parameter(name="width",expression="L/h")

(where L is some other parameter and h is the str name of the datafunction). The code generated in the C level would in principle work as is now, but p would get the value None in the C file since it is not evaluable only in the namespace of the parameter list.

Solution: evaluate Parameters in a namespace that is a union of data functions and parameters prior to serializing to file.

@ahellander ahellander added the bug label Jul 9, 2014
@ahellander ahellander added this to the 1.1.0 milestone Dec 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant