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

Add abstract method copy to base class FemSpace #379

Open
4 tasks
yguclu opened this issue Feb 20, 2024 · 0 comments
Open
4 tasks

Add abstract method copy to base class FemSpace #379

yguclu opened this issue Feb 20, 2024 · 0 comments
Labels
FEM API Objects describing finite element concepts

Comments

@yguclu
Copy link
Member

yguclu commented Feb 20, 2024

This is especially useful when the H^1-conforming scalar space is extracted from the mapping, and its dtype (which should be called codomain_type) is changed from float to complex in order to accommodate complex-valued fields.

TO DO:

  • Add abstract method copy(self, dtype=None), which changes the dtype if required, to base class FemSpace.
  • Implement method in concrete classes SplineSpace, TensorFemSpace, VectorFemSpace, and ProductFemSpace.
  • Remove function change_dtype from psydac.api.discretization, as this was used to replace the vector space of coefficients in place (very dangerous).
  • Fix any bugs exposed by the previous changes.
@yguclu yguclu added the FEM API Objects describing finite element concepts label Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FEM API Objects describing finite element concepts
Projects
None yet
Development

No branches or pull requests

1 participant