Skip to content

Commit

Permalink
Fix two bugs in matrix-free code
Browse files Browse the repository at this point in the history
  • Loading branch information
kronbichler committed Jan 5, 2020
1 parent d7e237b commit 2f3a0b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/deal.II/matrix_free/fe_evaluation.h
Expand Up @@ -7417,11 +7417,11 @@ FEFaceEvaluation<dim,
.normal_vectors[offsets];
this->jacobian = &this->matrix_info->get_mapping_info()
.face_data_by_cells[this->quad_no]
.jacobians[!this->is_minus_face][offsets];
.jacobians[!this->is_interior_face][offsets];
this->normal_x_jacobian =
&this->matrix_info->get_mapping_info()
.face_data_by_cells[this->quad_no]
.normals_times_jacobians[!this->is_minus_face][offsets];
.normals_times_jacobians[!this->is_interior_face][offsets];

# ifdef DEBUG
this->dof_values_initialized = false;
Expand Down
4 changes: 3 additions & 1 deletion include/deal.II/matrix_free/mapping_info.templates.h
Expand Up @@ -2049,7 +2049,9 @@ namespace internal
fe_val.reinit(cell_it, face);

const bool is_local =
cell_it->is_locally_owned() &&
(cell_it->active() ?
cell_it->is_locally_owned() :
cell_it->is_locally_owned_on_level()) &&
(!cell_it->at_boundary(face) ||
(cell_it->at_boundary(face) &&
cell_it->has_periodic_neighbor(face)));
Expand Down

0 comments on commit 2f3a0b9

Please sign in to comment.