-
Notifications
You must be signed in to change notification settings - Fork 5
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
Allow the reordering of a DiscreteDomain #420
Conversation
I think it should already be addressed by existing constructors. Can you provide an example that does not compile ? |
Hmm, it seems that you are right. The tests I have added already work on the main branch. The assignment operator doesn't work: DDomZYX const dom_z_y_x = dom_x_y_z; but maybe this is intentional? |
I see, I do not see a good reason to not support this assignment operator, it seems to be an equivalent of the reordering & slicing constructor. |
Actually this syntax is not related to the assignment operator. It only involves either the constructor or a cast operator. That being said, I think it is worth having an equivalent assignement operator of the slicing and reordering constructor. |
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.
Thanks, do we really need both the 2D and 3D versions then ?
06e8969
to
e722ab8
Compare
Co-authored-by: Thomas Padioleau <thomas.padioleau@cea.fr>
I don't think so, 3D should be sufficient. I will remove the 2D version |
Add a function to initialise a
DiscreteDomain
from aDiscreteDomain
with a different ordering. Fixes #419