-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
I/O of ufl
forms
#225
Comments
It would be good to have some examples of this complex processing to understand what is taking time as well (maybe there is a way of speeding it up). |
There are at least three uses cases within reduced order modelling that I have in mind:
This feature request has anyway a potentially broader audience that the specific usage 1, 2, 3 above. |
It would be great if the I/O of forms was introduced as part of newfl.
In the context of my work in reduced order modelling, in the former implementation in
RBniCS
I had several routines that took aufl
form, processed it in some way, and gave back anotherufl
form as output. The preprocessing is so complex that for problems of moderate mesh size it takes more CPU time than the assembly of the resulting vectors/matrices themselves.I have not reimplemented yet this feature in
RBniCSx
.The implementation of I/O is surely somewhat complicated, in the sense that you wouldn't want to save for instance the mesh itself, but only the expressions and the integrals. This is why, for instance, simply pickling the form doesn't work. Furthermore, also simply storing the
__repr__
of the form does not work either, since a string likeMesh #1
will typically appear in the__repr__
of a form , and when loading the form there is no guarantee that your actual mesh is still the first one.The text was updated successfully, but these errors were encountered: