Skip to content

Fix two places where we modify a ghosted vector. - #254

Merged
marcfehling merged 1 commit into
dealii:masterfrom
bangerth:fixes
Jul 6, 2026
Merged

Fix two places where we modify a ghosted vector.#254
marcfehling merged 1 commit into
dealii:masterfrom
bangerth:fixes

Conversation

@bangerth

@bangerth bangerth commented Jul 3, 2026

Copy link
Copy Markdown
Member

See #252 (comment) One could perhaps do that differently, but I think these are acceptable approached.

There is one more place (at least) to fix, see the other comments in #252, but it's too late here.

@maieneuro FYI.

Comment on lines 43 to 62
current_increment.reinit(
dof_system.locally_owned_dofs,
dof_system.locally_relevant_dofs,
mpi_communicator);
Newton_step_residual.reinit(
dof_system.locally_owned_dofs,
mpi_communicator);
previous_deformation.reinit(
dof_system.locally_owned_dofs,
dof_system.locally_relevant_dofs,
mpi_communicator);

previous_time_derivative.reinit(
dof_system.locally_owned_dofs,
dof_system.locally_relevant_dofs,
mpi_communicator);
previous_second_time_derivative.reinit(
dof_system.locally_owned_dofs,
dof_system.locally_relevant_dofs,
mpi_communicator);

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Not strictly necessary, but we have been using the two-indexset form of these functions.

@maieneuro

Copy link
Copy Markdown
Contributor

I added a second commit to this: #255

@marcfehling
marcfehling merged commit 6c6caa3 into dealii:master Jul 6, 2026
5 checks passed
@bangerth
bangerth deleted the fixes branch July 6, 2026 14:51
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.

3 participants