Skip to content

Delete unused variable copy operations - #64

Open
boyceg wants to merge 1 commit into
masterfrom
codex/delete-variable-copy-operations
Open

Delete unused variable copy operations#64
boyceg wants to merge 1 commit into
masterfrom
codex/delete-variable-copy-operations

Conversation

@boyceg

@boyceg boyceg commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Continue the cleanup begun in #63 by replacing unused copy operations in the other variable classes with = delete and adding regression tests.

Replace the private dummy copy operations in nine Variable classes with deleted declarations. Keep IndexVariable's urgent fix separate. Add a compile-only check for explicit instantiation and noncopyability in 1D, 2D, and 3D.
CHECK_COPY_CONTROL_DIMENSIONS(SAMRAI::pdat::SideVariable)

#undef CHECK_COPY_CONTROL_DIMENSIONS
#undef CHECK_COPY_CONTROL

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this doing here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is Codex applying IBAMR's rule of "changes in the code require corresponding tests". 😆

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I appreciate the proactivity but since we don't test this project (aside from testing it against IBAMR) we can skip it in this context.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants