Skip to content

Commit

Permalink
move init to constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
jh66637 committed Sep 15, 2023
1 parent 950b851 commit fdc40c2
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions tests/remote_point_evaluation/fe_remote_evaluation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ struct NonmatchingFaceLoop
NonmatchingFaceLoop(
const MatrixFree<dim> &matrix_free,
std::vector<std::pair<unsigned int, unsigned int>> face_pairs)
: matrix_free(matrix_free)
: matrix_free(matrix_free),
fe_remote_integrator(nonmatching_comm,
matrix_free
.get_dof_handler())
{
for (const auto &face_pair : face_pairs)
nonmatching_faces.insert(face_pair.first);
Expand Down Expand Up @@ -131,14 +134,12 @@ struct NonmatchingFaceLoop
nonmatching_faces.end();
}

const MatrixFree<dim> &matrix_free;
std::set<unsigned int> nonmatching_faces;
const MatrixFree<dim> &matrix_free;
NonmatchingCommunicator nonmatching_comm;
// mutable because reinit sets an unsigned integer
mutable NonmatchingIntegratorOuter fe_remote_integrator;

NonmatchingCommunicator nonmatching_comm;
mutable NonmatchingIntegratorOuter fe_remote_integrator{
nonmatching_comm,
matrix_free
.get_dof_handler()}; // mutable because reinit sets an unsigned integer
std::set<unsigned int> nonmatching_faces;
};


Expand Down

0 comments on commit fdc40c2

Please sign in to comment.