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

Introduce Solver class #239

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Introduce Solver class #239

wants to merge 3 commits into from

Conversation

ddundo
Copy link
Member

@ddundo ddundo commented Nov 23, 2024

Closes #238.

TODO (open for discussion):

  • Strip out everything solver-related from MeshSeq (e.g. solve_forward, solve_adjoint) and pass the MeshSeq to the Solver object, instead of vice-versa
  • Rename Solver and its methods? Maybe Model would be better and then rename get_initial_condition to initial_condition, etc.?
  • Pass field_names and field_types to Solver so that it's self-contained
  • Add class AdjointSolver(Solver)

@ddundo
Copy link
Member Author

ddundo commented Nov 29, 2024

@acse-ej321 we very briefly discussed this on the meeting and @jwallwork23 is in principle in favour of this. If you are as well, maybe you could try this approach for your enriched mesh seq issue and see if that solves it? I think it should since the two are now separated :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor A suggested reworking of the code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Introduce a helper Solver class
1 participant