Skip to content

Commit 648f224

Browse files
committed
fix race in get_prolongation_matrix()
1 parent 9bd70d8 commit 648f224

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

include/deal.II/fe/fe_dgq.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,6 @@ class FE_DGQ : public FE_Poly<dim, spacedim>
371371
* and embedding matrices.
372372
*/
373373
mutable Threads::Mutex restriction_matrix_mutex;
374-
mutable Threads::Mutex prolongation_matrix_mutex;
375374

376375
// Allow access from other dimensions.
377376
template <int dim1, int spacedim1>

source/fe/fe_dgq.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ FE_DGQ<dim, spacedim>::get_prolongation_matrix(
435435
// initialization upon first request
436436
if (this->prolongation[refinement_case - 1][child].n() == 0)
437437
{
438-
std::lock_guard<std::mutex> lock(prolongation_matrix_mutex);
438+
std::lock_guard<std::mutex> lock(restriction_matrix_mutex);
439439

440440
// if matrix got updated while waiting for the lock
441441
if (this->prolongation[refinement_case - 1][child].n() ==

0 commit comments

Comments
 (0)