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

Use proxy types that are passed to P4estMesh to allow to dispatch on the first argument? #694

Open
efaulhaber opened this issue Jul 1, 2021 · 0 comments

Comments

@efaulhaber
Copy link
Member

This is more of a general remark. The P4estMesh has many different options of generating meshes: structured, INP, now cubed sphere. Possibly soon also UnstructuredQuadMesh. Instead of differentiating by the arguments to the constructor, what about using proxy types that are passed to P4estMesh that allows to dispatch on the first argument?

For example (names can/must be optimized),

  • Abaqus
  • Structured
  • CubedSphere
    Such that you could just call
P4estMesh(CubedSphere(3, 2, 0.5, 0.2), ...)

I am not sure if this needs to be done in this PR, I just wanted to put this out as an idea.

Originally posted by @sloede in #689 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant