-
Notifications
You must be signed in to change notification settings - Fork 106
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
Move all of pyMOR's PDE toolkit to discretizers.builtin #847
Conversation
I get an error when running |
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.
Looks good!
discretize_stationary_fv, discretize_instationary_fv, | ||
OnedGrid, TriaGrid, RectGrid, load_gmsh) | ||
from pymor.discretizers.builtin.domaindiscretizers.default import discretize_domain_default | ||
from pymor.discretizers.builtin.grids.boundaryinfos import EmptyBoundaryInfo, GenericBoundaryInfo, AllDirichletBoundaryInfo |
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.
we could even drop this and add some pymor.discretizers.basic
which would result in
from pymor.basic import *
from pymor.discretizers.basic import *
Its only one additional line in interactive sessions but would further document the splitting.
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.
Or just
from pymor.basic import *
from pymor.discretizers.builtin import *
I can't reproduce this. Could you try with a fresh build environment? |
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.
It seems the issue was that I forgot to run python setup.py build_ext --inplace
...
Codecov Report
|
This moves all components of pyMOR's builtin discretization toolkit to
pymor.discretizers.builtin
. The rationale:pymor.domaindescriptions
intopymor.analyticalproblems
.discretizers.fenics
anddiscretizers.ngsolve
modules with discretizers that take the sameanalyticalproblems
as input as the builtin toolkit. For that we will need to makeFunctions
interoperable between different PDE solvers, probably using sympy expressions which are converted to the appropriate format.There is still
pymor.discretizers.disk
which seems misplaced. (It does not discretize anything.) I would like to completly ditch the current implementation and have a YAML-based input file format that is shared by allModels
that can be read from disk. I will discuss this in another issue, however.I want to merge this PR soon in order to have time for letting things settle before the next release.